adams.data.imagej.flattener
Class AbstractImageJFlattener
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.image.AbstractImageFlattener<ImagePlusContainer>
adams.data.imagej.flattener.AbstractImageJFlattener
- All Implemented Interfaces:
- CleanUpHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable, Comparable
- Direct Known Subclasses:
- Histogram, NamedSetup, Pixels
public abstract class AbstractImageJFlattener
- extends AbstractImageFlattener<ImagePlusContainer>
Abstract base class for ImageJ flattening operations.
Derived classes only have to override the doProcess(ImagePlus)
method. The reset() method can be used to reset an
algorithms internal state, e.g., after setting options.
- Version:
- $Revision: 6067 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.data.image.AbstractImageFlattener |
cleanUp, compareTo, createHeader, defineOptions, destroy, doFlatten, equals, fieldsTipText, flatten, getFields, getNotes, newArray, notesTipText, postProcessHeader, postProcessInstance, reset, setFields, setNotes, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
AbstractImageJFlattener
public AbstractImageJFlattener()
checkImage
protected void checkImage(ImagePlusContainer img)
- Optional checks of the image.
Ensures that ImageJ plugins path is set.
- Overrides:
checkImage in class AbstractImageFlattener<ImagePlusContainer>
- Parameters:
img - the image to check
getFlatteners
public static String[] getFlatteners()
- Returns a list with classnames of transformations.
- Returns:
- the transformation classnames
forName
public static AbstractImageJFlattener forName(String classname,
String[] options)
- Instantiates the transformation with the given options.
- Parameters:
classname - the classname of the transformation to instantiateoptions - the options for the transformation
- Returns:
- the instantiated transformation or null if an error occurred
forCommandLine
public static AbstractImageJFlattener forCommandLine(String cmdline)
- Instantiates the transformation from the given commandline
(i.e., classname and optional options).
- Parameters:
cmdline - the classname (and optional options) of the
transformation to instantiate
- Returns:
- the instantiated transformation
or null if an error occurred
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.