ij.plugin
Class ImageCalculator
java.lang.Object
ij.plugin.ImageCalculator
- All Implemented Interfaces:
- PlugIn
public class ImageCalculator
- extends 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()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageCalculator
public ImageCalculator()
run
public void run(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.
- Specified by:
run
in interface PlugIn
run
public ImagePlus run(String params,
ImagePlus img1,
ImagePlus img2)
calculate
public void calculate(String params,
ImagePlus img1,
ImagePlus img2)
- Deprecated. replaced by run(String,ImagePlus,ImagePlus)
Copyright © 1997–2016 NIH. All rights reserved.