Package ij.plugin
Class ImageCalculator
- java.lang.Object
-
- ij.plugin.ImageCalculator
-
- All Implemented Interfaces:
PlugIn
public class ImageCalculator extends java.lang.Object implements PlugIn
This plugin implements the Process/Image Calculator command.// test script imp1 = IJ.openImage("http://imagej.nih.gov/ij/images/boats.gif") imp2 = IJ.openImage("http://imagej.nih.gov/ij/images/bridge.gif") ic = new ImageCalculator() imp3 = ic.run("Average create", imp1, imp2) imp3.show()
-
-
Constructor Summary
Constructors Constructor Description ImageCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
calculate(java.lang.String params, ImagePlus img1, ImagePlus img2)
Deprecated.replaced by run(String,ImagePlus,ImagePlus)void
run(java.lang.String arg)
This method is called when the plugin is loaded.ImagePlus
run(java.lang.String params, ImagePlus img1, ImagePlus img2)
-
-
-
Method Detail
-
run
public void run(java.lang.String arg)
Description copied from interface:PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
-