- java.lang.Object
- 
- ij.process.StackProcessor
 
- 
 public class StackProcessor extends java.lang.ObjectThis class processes stacks.
- 
- 
Field SummaryFields Modifier and Type Field Description static intFILTER_MAXstatic intFILTER_MAXLOCALstatic intFILTER_MEANstatic intFILTER_MEDIANstatic intFILTER_MINstatic intFILTER_VAR
 - 
Constructor SummaryConstructors Constructor Description StackProcessor(ImageStack stack)Constructs a StackProcessor from a stack.StackProcessor(ImageStack stack, ImageProcessor ip)Constructs a StackProcessor from a stack.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyTable(int[] table)voidcopyBits(ImageStack src, int xloc, int yloc, int mode)voidcopyBits(ImageProcessor src, int xloc, int yloc, int mode)ImageStackcrop(int x, int y, int width, int height)Crops the stack to the specified rectangle.voidfilter3D(ImageStack out, float radx, float rady, float radz, int zmin, int zmax, int filter)3D filter using threadsvoidflipHorizontal()voidflipVertical()voidinvert()ImageStackresize(int newWidth, int newHeight)Creates a new stack with dimensions 'newWidth' x 'newHeight'.ImageStackresize(int newWidth, int newHeight, boolean averageWhenDownsizing)ImageStackrotateLeft()ImageStackrotateRight()voidscale(double xScale, double yScale)voidscale(double xScale, double yScale, double fillValue)
 
- 
- 
- 
Field Detail- 
FILTER_MEANpublic static final int FILTER_MEAN - See Also:
- Constant Field Values
 
 - 
FILTER_MEDIANpublic static final int FILTER_MEDIAN - See Also:
- Constant Field Values
 
 - 
FILTER_MINpublic static final int FILTER_MIN - See Also:
- Constant Field Values
 
 - 
FILTER_MAXpublic static final int FILTER_MAX - See Also:
- Constant Field Values
 
 - 
FILTER_VARpublic static final int FILTER_VAR - See Also:
- Constant Field Values
 
 - 
FILTER_MAXLOCALpublic static final int FILTER_MAXLOCAL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
StackProcessorpublic StackProcessor(ImageStack stack) Constructs a StackProcessor from a stack.
 - 
StackProcessorpublic StackProcessor(ImageStack stack, ImageProcessor ip) Constructs a StackProcessor from a stack. 'ip' is the processor that will be used to process the slices. 'ip' can be null when using crop().
 
- 
 - 
Method Detail- 
invertpublic void invert() 
 - 
flipHorizontalpublic void flipHorizontal() 
 - 
flipVerticalpublic void flipVertical() 
 - 
applyTablepublic void applyTable(int[] table) 
 - 
scalepublic void scale(double xScale, double yScale)
 - 
scalepublic void scale(double xScale, double yScale, double fillValue)
 - 
resizepublic ImageStack resize(int newWidth, int newHeight) Creates a new stack with dimensions 'newWidth' x 'newHeight'. To reduce memory requirements, the orginal stack is deleted as the new stack is created.
 - 
resizepublic ImageStack resize(int newWidth, int newHeight, boolean averageWhenDownsizing) 
 - 
croppublic ImageStack crop(int x, int y, int width, int height) Crops the stack to the specified rectangle.
 - 
rotateRightpublic ImageStack rotateRight() 
 - 
rotateLeftpublic ImageStack rotateLeft() 
 - 
copyBitspublic void copyBits(ImageProcessor src, int xloc, int yloc, int mode) 
 - 
copyBitspublic void copyBits(ImageStack src, int xloc, int yloc, int mode) 
 - 
filter3Dpublic void filter3D(ImageStack out, float radx, float rady, float radz, int zmin, int zmax, int filter) 3D filter using threads- Parameters:
- out-
- radx- Radius of mean filter in x
- rady- Radius of mean filter in y
- radz- Radius of mean filter in z
- zmin-
- zmax-
- filter-
 
 
- 
 
-