Class TraceLineReducer

java.lang.Object
org.dawnsci.multidimensional.ui.hyper.TraceLineReducer
All Implemented Interfaces:
IDatasetROIReducer

public class TraceLineReducer extends Object implements IDatasetROIReducer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.january.dataset.IDataset>
    Get the axes of the reduced data
    getInitialROI(List<org.eclipse.january.dataset.IDataset> axes, int[] order)
    Build the initial ROI for the reducer Order of the axes list here matches the re-arranged order, not the same as the lazydataset
     
    boolean
    Whether the reducer produces 1D (a line plot) or 2D (an image) data
    org.eclipse.january.dataset.IDataset
    reduce(org.eclipse.january.dataset.ILazyDataset data, List<org.eclipse.january.dataset.IDataset> axes, IROI roi, org.eclipse.january.dataset.Slice[] slices, int[] order)
    This is the bit that does the juice.
    boolean
    That the reducer supports multiple regions Usually means that the output is a line, not an image

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.dawnsci.multidimensional.ui.hyper.IDatasetROIReducer

    createROI
  • Constructor Details

    • TraceLineReducer

      public TraceLineReducer()
  • Method Details

    • reduce

      public org.eclipse.january.dataset.IDataset reduce(org.eclipse.january.dataset.ILazyDataset data, List<org.eclipse.january.dataset.IDataset> axes, IROI roi, org.eclipse.january.dataset.Slice[] slices, int[] order) throws Exception
      Description copied from interface: IDatasetROIReducer
      This is the bit that does the juice. Pass in a non-null IMonitor so that it can be passed down to the slicing. The slicing should be operated from the UI with a cancelable IMonitor because it can create "infinitely" running jobs when the ILazyDataset is operating a directory of images.
      Specified by:
      reduce in interface IDatasetROIReducer
      Parameters:
      data - - The multi dimensional dataset
      axes - - a list of the axes, the order in the list corresponds to the order array
      roi - - the ROI to use for slicing
      slices - - how the data is sliced to generate the sub-dataset
      order - - how the dimensions are mapped to the output data
      Returns:
      Throws:
      Exception
    • isOutput1D

      public boolean isOutput1D()
      Description copied from interface: IDatasetROIReducer
      Whether the reducer produces 1D (a line plot) or 2D (an image) data
      Specified by:
      isOutput1D in interface IDatasetROIReducer
      Returns:
      is1D
    • getSupportedRegionType

      public List<IRegion.RegionType> getSupportedRegionType()
      Specified by:
      getSupportedRegionType in interface IDatasetROIReducer
    • getInitialROI

      public IROI getInitialROI(List<org.eclipse.january.dataset.IDataset> axes, int[] order)
      Description copied from interface: IDatasetROIReducer
      Build the initial ROI for the reducer Order of the axes list here matches the re-arranged order, not the same as the lazydataset
      Specified by:
      getInitialROI in interface IDatasetROIReducer
      Parameters:
      axes -
      order -
      Returns:
    • supportsMultipleRegions

      public boolean supportsMultipleRegions()
      Description copied from interface: IDatasetROIReducer
      That the reducer supports multiple regions Usually means that the output is a line, not an image
      Specified by:
      supportsMultipleRegions in interface IDatasetROIReducer
      Returns:
    • getAxes

      public List<org.eclipse.january.dataset.IDataset> getAxes()
      Description copied from interface: IDatasetROIReducer
      Get the axes of the reduced data
      Specified by:
      getAxes in interface IDatasetROIReducer
      Returns: