org.shapelogic.imageutil
Class PlugInFilterCaller

java.lang.Object
  extended by org.shapelogic.imageutil.PlugInFilterCaller
All Implemented Interfaces:
ij.plugin.filter.PlugInFilter

public class PlugInFilterCaller
extends java.lang.Object
implements ij.plugin.filter.PlugInFilter

Shows how how to call one PlugInFilter from another.
Used to be called org.shapelogic.imageutil.PlugInFilterCaller_, but that caused it to show up in the ImageJ memu.
This is important for unit testing.

Author:
Sami Badawi

Field Summary
 
Fields inherited from interface ij.plugin.filter.PlugInFilter
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
 
Constructor Summary
PlugInFilterCaller()
          Default is to call ShapeLogic segmenter.
PlugInFilterCaller(java.lang.String pluginName, java.lang.String arg, int returnValueForSetup)
          Use this to setup your own plugin runner.
 
Method Summary
 void run(ij.process.ImageProcessor ip)
          Empty everything is done in setup
 int setup(java.lang.String arg, ij.ImagePlus imp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlugInFilterCaller

public PlugInFilterCaller()
Default is to call ShapeLogic segmenter.


PlugInFilterCaller

public PlugInFilterCaller(java.lang.String pluginName,
                          java.lang.String arg,
                          int returnValueForSetup)
Use this to setup your own plugin runner.

Method Detail

run

public void run(ij.process.ImageProcessor ip)
Empty everything is done in setup

Specified by:
run in interface ij.plugin.filter.PlugInFilter

setup

public int setup(java.lang.String arg,
                 ij.ImagePlus imp)
Specified by:
setup in interface ij.plugin.filter.PlugInFilter


Copyright © 2009. All Rights Reserved.