Class ImageTrapeziumBaselineReducer

java.lang.Object
org.dawnsci.multidimensional.ui.hyper.ImageTrapeziumBaselineReducer
All Implemented Interfaces:
IDatasetROIReducer, IProvideReducerActions

public class ImageTrapeziumBaselineReducer extends Object implements IDatasetROIReducer, IProvideReducerActions
  • Constructor Details

    • ImageTrapeziumBaselineReducer

      public ImageTrapeziumBaselineReducer()
  • 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
    • isSubtractBaseline

      public boolean isSubtractBaseline()
    • setSubtractBaseline

      public void setSubtractBaseline(boolean subtractBaseline)
    • 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:
    • getActions

      public List<org.eclipse.jface.action.IAction> getActions(IPlottingSystem<?> system)
      Specified by:
      getActions in interface IProvideReducerActions