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 TypeMethodDescriptiondefault booleanWhether the Region/ROI for this reducer needs to be created or will be created by an external listenerList<org.eclipse.january.dataset.IDataset> getAxes()Get the axes of the reduced datagetInitialROI(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 lazydatasetbooleanWhether the reducer produces 1D (a line plot) or 2D (an image) dataorg.eclipse.january.dataset.IDatasetreduce(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.booleanThat 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 datasetaxes- - a list of the axes, the order in the list corresponds to the order arrayroi- - the ROI to use for slicingslices- - how the data is sliced to generate the sub-datasetorder- - how the dimensions are mapped to the output datamonitor-- Returns:
- Throws:
Exception
-
getSupportedRegionType
List<IRegion.RegionType> getSupportedRegionType() -
getInitialROI
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:
-