public class ShortStackWrapper extends Object implements Image3D
Example of use:
	ImageStack stack = IJ.getImage().getStack();
	Image3D image = new ShortStackWrapper(stack);
	int val = image.get(0, 0, 0);
ByteStackWrapper, 
FloatStackWrapper| Constructor and Description | 
|---|
ShortStackWrapper(ij.ImageStack stack)
Creates a new wrapper to the ImageStack. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
get(int x,
   int y,
   int z)
Returns the value at the specified coordinates as an integer. 
 | 
int | 
getSize(int dim)
Returns the number of voxels along the specified dimension. 
 | 
double | 
getValue(Cursor3D pos)
Returns the value at the specified coordinates as a double. 
 | 
double | 
getValue(int x,
        int y,
        int z)
Returns the value at the specified coordinates as a double. 
 | 
void | 
set(int x,
   int y,
   int z,
   int value)
Changes the value at the specified coordinates, using an integer to
 specify the new value. 
 | 
void | 
setValue(Cursor3D pos,
        double value)
Changes the value at the specified coordinates, using a double to
 specify the new value. 
 | 
void | 
setValue(int x,
        int y,
        int z,
        double value)
Changes the value at the specified coordinates, using a double to
 specify the new value. 
 | 
public ShortStackWrapper(ij.ImageStack stack)
stack - the stack to wrap (bit depth must equal 16)public int getSize(int dim)
Image3Dpublic int get(int x,
               int y,
               int z)
Image3Dpublic void set(int x,
                int y,
                int z,
                int value)
Image3Dpublic double getValue(int x,
                       int y,
                       int z)
Image3Dpublic double getValue(Cursor3D pos)
Image3Dpublic void setValue(int x,
                     int y,
                     int z,
                     double value)
Image3DCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.