|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--volume.Volume | +--volume.VolumeShort
This class implements short volumes and operations including convolutions on it. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Field Summary | |
short[][][] |
v
|
Fields inherited from class volume.Volume |
aspectx, aspecty, aspectz, depth, edge, height, width |
Constructor Summary | |
VolumeShort()
creates the null volume. |
|
VolumeShort(ij.ImageStack s)
Creates a short volume from an ImageJ ImageStack. |
|
VolumeShort(ij.ImageStack s,
double aspectx,
double aspecty,
double aspectz)
|
|
VolumeShort(ij.ImageStack s,
int depth,
int n)
public VolumeShort(ImageProcessor ip) // Creates a volume with depth 1 from an ImageProcessor. |
|
VolumeShort(ij.ImageStack s,
int depth,
int n,
double aspectx,
double aspecty,
double aspectz)
|
|
VolumeShort(int width,
int height,
int depth)
Creates a short volume of defined size and default aspect ratios. |
|
VolumeShort(int width,
int height,
int depth,
double aspectx,
double aspecty,
double aspectz)
Creates a short volume of defined size and aspect ratio. |
|
VolumeShort(VolumeShort v1)
Creates a float volume which is an exact copy of vl. |
Method Summary | |
void |
convolvexyz(Kernel1D kernel)
XYZ convolution with separated 1D kernel. |
java.lang.Object |
get(int x,
int y,
int z)
Get the voxel value as a Number. |
boolean |
getIndexed()
|
void |
load(ij.process.ImageProcessor ip,
int t)
Fill the volume with depth 1 with a single image ip. |
boolean |
load(ij.ImageStack s,
int start)
Fill this volume from stack s with from slice start. |
protected void |
loadImage(short[][] i,
byte[] b)
Load an image b into i. |
protected void |
loadImage(short[][] i,
short[] sh)
Load an image sh into i. |
void |
loadInverse(ij.ImageStack s,
int center)
Inversely load a volume from the stack centered around center with the first one last. |
protected void |
loadSlice(short[][] i,
ij.ImageStack s,
int io)
Load a slice io from stack s into image i. |
void |
set(int x,
int y,
int z,
int value)
Deprecated. |
void |
set(java.lang.Object value,
int x,
int y,
int z)
Set the voxel value to a Number. |
void |
setHighBits(ij.ImageStack s)
Combine the values of s into the index byte (high 8 bits) of the voxel scalars of this volume. |
void |
setIndexed(boolean indexed)
|
Methods inherited from class volume.Volume |
discreteSupport, getAspectx, getAspecty, getAspectz, getDepth, getEdge, getHeight, getWidth, in, setAspects, setEdge, toString, valid, valid |
Methods inherited from class java.lang.Object |
|
Field Detail |
public short[][][] v
Constructor Detail |
public VolumeShort()
public VolumeShort(int width, int height, int depth, double aspectx, double aspecty, double aspectz)
width,
- height, depth the dimensions of the volumeaspectx,
- aspecty, aspectz the aspect ratios of the volume dimensions.public VolumeShort(int width, int height, int depth)
width,
- height, depth the dimensions of the volumepublic VolumeShort(VolumeShort v1)
vl
- the VolumeFloat to be copied.public VolumeShort(ij.ImageStack s, double aspectx, double aspecty, double aspectz) throws java.lang.Exception
public VolumeShort(ij.ImageStack s) throws java.lang.Exception
s
- the ImageStack which has to contain at least one image.public VolumeShort(ij.ImageStack s, int depth, int n)
public VolumeShort(ij.ImageStack s, int depth, int n, double aspectx, double aspecty, double aspectz)
Method Detail |
public java.lang.Object get(int x, int y, int z)
get
in class Volume
x
- the x position of the voxely
- the y position of the voxelz
- the z position of the voxelpublic void set(java.lang.Object value, int x, int y, int z)
set
in class Volume
x
- the x position of the voxely
- the y position of the voxelz
- the z position of the voxelpublic void set(int x, int y, int z, int value)
public boolean load(ij.ImageStack s, int start)
s
- an ImageJ ImageStackstart
- the first slice to be loaded (starting with slice 1).public void load(ij.process.ImageProcessor ip, int t)
public void loadInverse(ij.ImageStack s, int center)
protected void loadSlice(short[][] i, ij.ImageStack s, int io)
protected void loadImage(short[][] i, byte[] b)
protected void loadImage(short[][] i, short[] sh)
public void setHighBits(ij.ImageStack s)
s
- an ImageStack containing the index values.public void setIndexed(boolean indexed)
public boolean getIndexed()
public void convolvexyz(Kernel1D kernel)
kernel
- a 1D convolution kernel.
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |