adams.data.imagej.transformer
Class AbstractImageJTransformer
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.image.AbstractImageTransformer<ImagePlusContainer>
adams.data.imagej.transformer.AbstractImageJTransformer
- All Implemented Interfaces:
- CleanUpHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable, Comparable
- Direct Known Subclasses:
- Command, Gray8, Macro, NamedSetup, PassThrough, PlugInFilter, Resize
public abstract class AbstractImageJTransformer
- extends AbstractImageTransformer<ImagePlusContainer>
Abstract base class for ImageJ transformations.
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: 4753 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
AbstractImageJTransformer
public AbstractImageJTransformer()
getTransformations
public static String[] getTransformations()
- Returns a list with classnames of transformations.
- Returns:
- the transformation classnames
forName
public static AbstractImageJTransformer 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 AbstractImageJTransformer 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.