Package ij.plugin
Class Slicer
java.lang.Object
ij.plugin.Slicer
- All Implemented Interfaces:
PlugIn
,ItemListener
,TextListener
,EventListener
public class Slicer extends Object implements PlugIn, TextListener, 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
Modifier and Type Method Description void
itemStateChanged(ItemEvent e)
void
putColumn(ImageProcessor ip, int x, int y, float[] data, int length)
void
putRow(ImageProcessor ip, int x, int y, float[] data, int length)
ImagePlus
reslice(ImagePlus imp)
void
run(String arg)
This method is called when the plugin is loaded.void
textValueChanged(TextEvent e)
-
Constructor Details
-
Slicer
public Slicer()
-
-
Method Details
-
run
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. -
reslice
-
putRow
-
putColumn
-
textValueChanged
- Specified by:
textValueChanged
in interfaceTextListener
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-