Class MapTo2D
java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.MapTo2D
- All Implemented Interfaces:
DatasetToDatasetFunction
Map a N-D dataset from one Cartesian system to another and return that remapped 2D dataset
-
Constructor Summary
ConstructorsConstructorDescriptionMapTo2D(double[] point, double[] step0, double[] step1, int n0, int n1) Set up mapping of 2D dataset -
Method Summary
-
Constructor Details
-
MapTo2D
public MapTo2D(double[] point, double[] step0, double[] step1, int n0, int n1) Set up mapping of 2D dataset- Parameters:
point- origin point for 2d datasetstep0- direction vector for step in 0th dimension (axis down column)step1- direction vector for step in 1st dimension (axis along row)n0- number of rowsn1- number of columns
-
-
Method Details
-
value
public List<org.eclipse.january.dataset.Dataset> value(org.eclipse.january.dataset.IDataset... datasets) The class implements mapping of a Cartesian lattice sampled data (pixels) to another Cartesian grid- Specified by:
valuein interfaceDatasetToDatasetFunction- Parameters:
datasets- input N-D dataset- Returns:
- a 2D dataset
-