Class Scaler_

java.lang.Object
  extended by Scaler_
All Implemented Interfaces:
ij.plugin.filter.PlugInFilter

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


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, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
 
Constructor Summary
Scaler_()
           
 
Method Summary
 java.lang.Integer[] parseRoiIDs(java.lang.String roiString)
           
 void run(ij.process.ImageProcessor ip)
           
static ij.gui.Line scaleRoi(ij.gui.Line roi, double factor, boolean scaleX, boolean scaleY)
           
static ij.gui.PolygonRoi scaleRoi(ij.gui.PolygonRoi roi, double factor, boolean scaleX, boolean scaleY)
           
static ij.gui.Roi scaleRoi(ij.gui.Roi roi, double factor, boolean scaleX, boolean scaleY)
          This method scales a given region of interest (roi) by a double factor.
 int setup(java.lang.String arg, ij.ImagePlus imp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scaler_

public Scaler_()
Method Detail

setup

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

run

public void run(ij.process.ImageProcessor ip)
Specified by:
run in interface ij.plugin.filter.PlugInFilter

parseRoiIDs

public java.lang.Integer[] parseRoiIDs(java.lang.String roiString)

scaleRoi

public static ij.gui.Roi scaleRoi(ij.gui.Roi roi,
                                  double factor,
                                  boolean scaleX,
                                  boolean scaleY)
This method scales a given region of interest (roi) by a double factor.

Parameters:
roi - The roi that is scaled.
factor - The roi is scaled by this factor.
Returns:
The scaled region of interest.

scaleRoi

public static ij.gui.Line scaleRoi(ij.gui.Line roi,
                                   double factor,
                                   boolean scaleX,
                                   boolean scaleY)

scaleRoi

public static ij.gui.PolygonRoi scaleRoi(ij.gui.PolygonRoi roi,
                                         double factor,
                                         boolean scaleX,
                                         boolean scaleY)