ij.plugin
Class ImageCalculator

java.lang.Object
  extended by ij.plugin.ImageCalculator
All Implemented Interfaces:
PlugIn

public class ImageCalculator
extends java.lang.Object
implements PlugIn

This plugin implements the Process/Image Calculator command.


Constructor Summary
ImageCalculator()
           
 
Method Summary
(package private)  void calculate(ImagePlus img1, ImagePlus img2, boolean apiCall)
           
 void calculate(java.lang.String params, ImagePlus img1, ImagePlus img2)
           
(package private)  ImageProcessor createNewImage(ImageProcessor ip1, ImageProcessor ip2, ij.measure.Calibration cal)
           
(package private)  void doOperation(ImagePlus img1, ImagePlus img2)
           
(package private)  void doStackOperation(ImagePlus img1, ImagePlus img2)
          img1 = img2 op img2 (e.g. img1 = img2/img1)
(package private)  ImagePlus duplicateStack(ImagePlus img1)
           
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCalculator

public ImageCalculator()
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.

Specified by:
run in interface PlugIn

calculate

public void calculate(java.lang.String params,
                      ImagePlus img1,
                      ImagePlus img2)

calculate

void calculate(ImagePlus img1,
               ImagePlus img2,
               boolean apiCall)

doStackOperation

void doStackOperation(ImagePlus img1,
                      ImagePlus img2)
img1 = img2 op img2 (e.g. img1 = img2/img1)


doOperation

void doOperation(ImagePlus img1,
                 ImagePlus img2)

createNewImage

ImageProcessor createNewImage(ImageProcessor ip1,
                              ImageProcessor ip2,
                              ij.measure.Calibration cal)

duplicateStack

ImagePlus duplicateStack(ImagePlus img1)