Class MapToShiftedCartesian

java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.MapToShiftedCartesian
All Implemented Interfaces:
DatasetToDatasetFunction

public class MapToShiftedCartesian extends Object implements DatasetToDatasetFunction
Map a 2D dataset from Cartesian to Cartesian coordinates and return that remapped dataset
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapToShiftedCartesian(double x0, double x1)
    Set up mapping of rotated 2D dataset
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapToShiftedCartesian

      public MapToShiftedCartesian(double x0, double x1)
      Set up mapping of rotated 2D dataset
      Parameters:
      x0 - shift in first dimension
      x1 - shift in second dimension
  • Method Details

    • 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:
      value in interface DatasetToDatasetFunction
      Parameters:
      datasets - input 2D dataset
      Returns:
      a shifted 2D dataset