Class MapToRotatedCartesianAndIntegrate
java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.MapToRotatedCartesianAndIntegrate
- All Implemented Interfaces:
DatasetToDatasetFunction
Map and integrate a 2D dataset from Cartesian to rotated Cartesian coordinates, sum over each axis
and return those sums and the corresponding sums for an unclipped unit version (for clipping compensation)
-
Constructor Summary
ConstructorsConstructorDescriptionMapToRotatedCartesianAndIntegrate(int x, int y, int width, int height, double angle) Set up mapping of rotated 2D datasetMapToRotatedCartesianAndIntegrate(int x, int y, int width, int height, double angle, boolean isDegrees) -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.january.dataset.Dataset> maxValue(org.eclipse.january.dataset.IDataset... datasets) voidsetMask(org.eclipse.january.dataset.Dataset mask) Set detector mask used profile calculationsList<org.eclipse.january.dataset.Dataset> value(org.eclipse.january.dataset.IDataset... datasets) The class implements mapping of a Cartesian grid sampled data (pixels) to another Cartesian grid
-
Constructor Details
-
MapToRotatedCartesianAndIntegrate
public MapToRotatedCartesianAndIntegrate(int x, int y, int width, int height, double angle) Set up mapping of rotated 2D dataset- Parameters:
x- top left x (in pixel coordinates)y- top left ywidth- size along major axisheight- size along minor axisangle- in degrees (clockwise from positive x axis)
-
MapToRotatedCartesianAndIntegrate
public MapToRotatedCartesianAndIntegrate(int x, int y, int width, int height, double angle, boolean isDegrees) - Parameters:
x-y-width- size along major axisheight- size along minor axisangle-isDegrees-
-
MapToRotatedCartesianAndIntegrate
- Parameters:
roi-
-
-
Method Details
-
setMask
public void setMask(org.eclipse.january.dataset.Dataset mask) Set detector mask used profile calculations- Parameters:
mask-
-
value
public List<org.eclipse.january.dataset.Dataset> value(org.eclipse.january.dataset.IDataset... datasets) The class implements mapping of a Cartesian grid sampled data (pixels) to another Cartesian grid- Specified by:
valuein interfaceDatasetToDatasetFunction- Parameters:
datasets- input 2D dataset- Returns:
- two pairs of 1D dataset for column (or minor axis) and row (or major axis) integration of a rotated dataset (second pair is for unclipped unit version of input dataset)
-
maxValue
public List<org.eclipse.january.dataset.Dataset> maxValue(org.eclipse.january.dataset.IDataset... datasets) - Parameters:
datasets-- Returns:
- maximum value in
-