Interface IDatasetROIReducer

All Known Implementing Classes:
AbstractHyper4DMapReducer, ArpesMainImageReducer, ArpesSideImageReducer, ArpesXImageReducer, Hyper4DImageReducer, Hyper4DMapReducer, ImageTrapeziumBaselineReducer, TraceLineReducer, TraceReducer

public interface IDatasetROIReducer
Interface for creating an object to reduce an ND array for display in the Hyperwindow
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Whether the Region/ROI for this reducer needs to be created or will be created by an external listener
    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
  • Method Details

    • isOutput1D

      boolean isOutput1D()
      Whether the reducer produces 1D (a line plot) or 2D (an image) data
      Returns:
      is1D
    • reduce

      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
      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.
      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
      monitor -
      Returns:
      Throws:
      Exception
    • getSupportedRegionType

      List<IRegion.RegionType> getSupportedRegionType()
    • getInitialROI

      IROI 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
      Parameters:
      axes -
      order -
      Returns:
    • supportsMultipleRegions

      boolean supportsMultipleRegions()
      That the reducer supports multiple regions Usually means that the output is a line, not an image
      Returns:
    • getAxes

      List<org.eclipse.january.dataset.IDataset> getAxes()
      Get the axes of the reduced data
      Returns:
    • createROI

      default boolean createROI()
      Whether the Region/ROI for this reducer needs to be created or will be created by an external listener
      Returns: