Package ij.plugin
Class Slicer
- java.lang.Object
-
- ij.plugin.Slicer
-
- All Implemented Interfaces:
PlugIn,java.awt.event.ItemListener,java.awt.event.TextListener,java.util.EventListener
public class Slicer extends java.lang.Object implements PlugIn, java.awt.event.TextListener, java.awt.event.ItemListener
Implements the Image/Stacks/Reslice command. Known shortcomings: for FREELINE or POLYLINE ROI, spatial calibration is ignored: the image is sampled at constant _pixel_ increments (distance 1), so (if y/x aspect ratio != 1 in source image) one dimension in the output is not homogeneous (i.e. pixelWidth not the same everywhere).
-
-
Constructor Summary
Constructors Constructor Description Slicer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiditemStateChanged(java.awt.event.ItemEvent e)voidputColumn(ImageProcessor ip, int x, int y, float[] data, int length)voidputRow(ImageProcessor ip, int x, int y, float[] data, int length)ImagePlusreslice(ImagePlus imp)voidrun(java.lang.String arg)This method is called when the plugin is loaded.voidtextValueChanged(java.awt.event.TextEvent e)
-
-
-
Method Detail
-
run
public void run(java.lang.String arg)
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
putRow
public void putRow(ImageProcessor ip, int x, int y, float[] data, int length)
-
putColumn
public void putColumn(ImageProcessor ip, int x, int y, float[] data, int length)
-
textValueChanged
public void textValueChanged(java.awt.event.TextEvent e)
- Specified by:
textValueChangedin interfacejava.awt.event.TextListener
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChangedin interfacejava.awt.event.ItemListener
-
-