Package ij.plugin

Class 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()
    
    • Constructor Detail

      • ImageCalculator

        public ImageCalculator()
    • Method Detail

      • 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
      • calculate

        public void calculate​(String params,
                              ImagePlus img1,
                              ImagePlus img2)
        Deprecated.
        replaced by run(String,ImagePlus,ImagePlus)