Class TraceLineReducer
java.lang.Object
org.dawnsci.multidimensional.ui.hyper.TraceLineReducer
- All Implemented Interfaces:
IDatasetROIReducer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<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 imageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:IDatasetROIReducerThis 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:
reducein interfaceIDatasetROIReducer- 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 data- Returns:
- Throws:
Exception
-
isOutput1D
public boolean isOutput1D()Description copied from interface:IDatasetROIReducerWhether the reducer produces 1D (a line plot) or 2D (an image) data- Specified by:
isOutput1Din interfaceIDatasetROIReducer- Returns:
- is1D
-
getSupportedRegionType
- Specified by:
getSupportedRegionTypein interfaceIDatasetROIReducer
-
getInitialROI
Description copied from interface:IDatasetROIReducerBuild 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:
getInitialROIin interfaceIDatasetROIReducer- Parameters:
axes-order-- Returns:
-
supportsMultipleRegions
public boolean supportsMultipleRegions()Description copied from interface:IDatasetROIReducerThat the reducer supports multiple regions Usually means that the output is a line, not an image- Specified by:
supportsMultipleRegionsin interfaceIDatasetROIReducer- Returns:
-
getAxes
Description copied from interface:IDatasetROIReducerGet the axes of the reduced data- Specified by:
getAxesin interfaceIDatasetROIReducer- Returns:
-