public interface ROIFinder extends ObjectMap
Modifier and Type | Method and Description |
---|---|
static ROIFinder |
fromFile(java.io.File inFile,
java.lang.Class<? extends ROIFinder> clz)
Loads a Region of Interest finder from disk.
|
boolean |
isROI(Dataset dataset)
Examine a dataset and return whether or not it seems to contain a region of interest (ROI)
|
boolean |
isROI(double[] data)
Examine an array of data and report whether it appears to contain a region of interest (ROI)
|
getObjectMap, getSerializationVersion, getVersion, init, initCurrentVersion, initPreviousVersion, initUnknownVersion, load, read, save, write
boolean isROI(double[] data)
data
- raw data to examineboolean isROI(Dataset dataset)
dataset
- data to examinestatic ROIFinder fromFile(java.io.File inFile, java.lang.Class<? extends ROIFinder> clz) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.io.IOException
inFile
- input fileclz
- class of ROIFinderjava.lang.InstantiationException
- error instantiating the ROIFinder (abstract, interface, etc.)java.lang.IllegalAccessException
- constructor isn't accessiblejava.io.IOException
- if an I/O error occurs reading the input file