|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.image.AbstractImageTransformer<ImagePlusContainer>
adams.data.imagej.transformer.AbstractImageJTransformer
adams.data.imagej.transformer.PlugInFilter
public class PlugInFilter
A transformer that allows the use of ImageJ's plug-in filters.
Notes:
- the filter must implement 'ij.plugin.filter.PlugInFilter'
- the filter can pop-up a window to enter additional parameters,
the first time it is executed, depending on the filter implementation
(you can suppress this with supplying the options manually)
- the manual options string can be obtained when recording macros
in ImageJ
- the filter must be in the classpath of the application
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-filter <java.lang.String> (property: plugInFilter) The classname of the plug-in filter to use. default: ij.plugin.filter.FFTFilter
-suppress-plugin-dialog (property: suppressPlugInDialog) If enabled, the plugin dialog is suppressed using the supplied plugin options.
-plugin-options <java.lang.String> (property: plugInOptions) The options for the plug-in if the dialog gets suppressed. default:
| Field Summary | |
|---|---|
protected ij.plugin.filter.PlugInFilter |
m_ActualFilter
the actual filter. |
protected String |
m_PlugInFilter
the classname of the plugin-filter. |
protected String |
m_PlugInOptions
the options for the plugin (if dialog suppressed). |
protected boolean |
m_SuppressPlugInDialog
whether to suppress the plugin dialog. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
PlugInFilter()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up data structures, frees up memory. |
void |
defineOptions()
Adds options to the internal list of options. |
protected ImagePlusContainer[] |
doTransform(ImagePlusContainer img)
Performs no transformation at all, just returns the input. |
protected ij.plugin.filter.PlugInFilter |
getFilter(ImagePlusContainer img)
Returns the filter to use. |
String |
getPlugInFilter()
Returns the classname of the plugin filter in use. |
String |
getPlugInOptions()
Returns the options for the plug-in if the dialog gets suppressed. |
boolean |
getSuppressPlugInDialog()
Returns whether to suppress the plugin dialog. |
String |
globalInfo()
Returns a string describing the object. |
String |
plugInFilterTipText()
Returns the tip text for this property. |
String |
plugInOptionsTipText()
Returns the tip text for this property. |
protected void |
reset()
Resets the scheme. |
void |
setPlugInFilter(String value)
Sets the classname of the plugin filter to use. |
void |
setPlugInOptions(String value)
Sets the options for the plug-in if the dialog gets suppressed. |
void |
setSuppressPlugInDialog(boolean value)
Sets whether to suppress the plugin dialog. |
String |
suppressPlugInDialogTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.imagej.transformer.AbstractImageJTransformer |
|---|
forCommandLine, forName, getTransformations |
| Methods inherited from class adams.data.image.AbstractImageTransformer |
|---|
checkImage, compareTo, destroy, equals, shallowCopy, shallowCopy, transform |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String m_PlugInFilter
protected ij.plugin.filter.PlugInFilter m_ActualFilter
protected boolean m_SuppressPlugInDialog
protected String m_PlugInOptions
| Constructor Detail |
|---|
public PlugInFilter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerprotected void reset()
reset in class AbstractOptionHandlerpublic void setPlugInFilter(String value)
value - the classnamepublic String getPlugInFilter()
public String plugInFilterTipText()
public void setSuppressPlugInDialog(boolean value)
value - true if to suppress the dialogpublic boolean getSuppressPlugInDialog()
public String suppressPlugInDialogTipText()
public void setPlugInOptions(String value)
value - the optionspublic String getPlugInOptions()
public String plugInOptionsTipText()
protected ij.plugin.filter.PlugInFilter getFilter(ImagePlusContainer img)
img - the image used for setting up
protected ImagePlusContainer[] doTransform(ImagePlusContainer img)
doTransform in class AbstractImageTransformer<ImagePlusContainer>img - the image to process (can be modified, since it is a copy)
public void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in class AbstractImageTransformer<ImagePlusContainer>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||