|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--volume.Volume | +--volume.VolumeFloat
This class implements float volumes and operations including convolutions on it. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Field Summary | |
float[][][] |
v
|
Fields inherited from class volume.Volume |
aspectx, aspecty, aspectz, depth, edge, height, width |
Constructor Summary | |
VolumeFloat()
creates the null volume. |
|
VolumeFloat(float[][][] fv)
Creates a float volume from a float vector with the same contents. |
|
VolumeFloat(ij.process.ImageProcessor ip)
Creates a float volume 1 voxel deep from the contents of an ImageJ ImageProcessor. |
|
VolumeFloat(ij.ImageStack s)
Creates a float volume from an ImageJ ImageStack. |
|
VolumeFloat(ij.ImageStack s,
double aspectx,
double aspecty,
double aspectz)
Creates a float volume from an ImageJ ImageStack. |
|
VolumeFloat(ij.ImageStack s,
int depth,
int n)
Creates a float volume from an ImageJ ImageStack. |
|
VolumeFloat(ij.ImageStack s,
int depth,
int n,
double aspectx,
double aspecty,
double aspectz)
Creates a float volume from an ImageJ ImageStack. |
|
VolumeFloat(int width,
int height,
int depth)
Creates a float volume of defined size and default aspect ratios. |
|
VolumeFloat(int width,
int height,
int depth,
double aspectx,
double aspecty,
double aspectz)
Creates a float volume of defined size and aspect ratio. |
|
VolumeFloat(VolumeFloat v1)
Creates a float volume which is an exact copy of vl. |
Method Summary | |
void |
add(VolumeFloat v1)
|
void |
convolvet(ij.ImageStack s,
int center,
Kernel1D kernel)
Load a volume from a ImageStack, convert to float and do 1D z convolution on the fly. |
void |
convolvex(VolumeFloat v1,
Kernel1D kernel)
|
void |
convolvex(VolumeFloat v1,
Kernel2D kernel)
|
void |
convolvex(VolumeFloat v1,
Kernel3D kernel)
|
void |
convolvexy(Kernel1D kernel)
2D xy convolution separated over x and y. |
void |
convolvexy(Kernel2D kernel)
|
void |
convolvexyz(Kernel1D kernel)
XYZ convolution with separated 1D kernel. |
void |
convolvexyz(Kernel3D kernel)
|
void |
convolvey(VolumeFloat v1,
Kernel1D kernel)
|
void |
convolvey(VolumeFloat v1,
Kernel2D kernel)
|
void |
convolvey(VolumeFloat v1,
Kernel3D kernel)
|
void |
convolvez(VolumeFloat v1)
|
void |
convolvez(VolumeFloat v1,
Kernel1D kernel)
|
void |
convolvez(VolumeFloat v1,
Kernel2D kernel)
|
void |
convolvez(VolumeFloat v1,
Kernel3D kernel)
|
void |
copy(VolumeFloat v1)
|
float |
dx(int x,
int y,
int z,
Kernel1D kernel)
|
float |
dy(int x,
int y,
int z,
Kernel1D kernel)
|
float |
dz(int x,
int y,
int z,
Kernel1D kernel)
|
java.lang.Object |
get(int x,
int y,
int z)
Get the voxel value as a Number. |
ij.ImageStack |
getImageStack()
|
float[][][] |
getVolume()
|
void |
intoStack(ij.ImageStack is)
|
void |
load(ij.ImageStack s,
int start)
|
void |
loadInverse(ij.ImageStack s,
int center)
|
float[] |
map()
|
void |
mul(double constant)
|
void |
mul(VolumeFloat a)
|
void |
mul(VolumeFloat a,
VolumeFloat b)
|
void |
set(java.lang.Object value,
int x,
int y,
int z)
Set the voxel value to a Number. |
void |
sqrt()
|
void |
sub(VolumeFloat v1)
Subtract volume v1 from this volume. |
float |
ux(int j,
int i,
Kernel2D kernel)
|
float |
uy(int j,
int i,
Kernel2D kernel)
|
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 float[][][] v
Constructor Detail |
public VolumeFloat()
public VolumeFloat(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 VolumeFloat(int width, int height, int depth)
width,
- height, depth the dimensions of the volumepublic VolumeFloat(VolumeFloat v1)
vl
- the VolumeFloat to be copied.public VolumeFloat(ij.ImageStack s)
s
- the ImageStack to be used.public VolumeFloat(ij.ImageStack s, double aspectx, double aspecty, double aspectz)
s
- the ImageStack to be used.aspectx,
- aspecty, aspectz the aspect ratios of the volume dimensions.public VolumeFloat(ij.ImageStack s, int depth, int n)
s
- the ImageStack to be used.depth
- the numebr of slices per volume.n
- the number of volumes in the hypervolume.public VolumeFloat(float[][][] fv)
fv
- the array of float to be used.public VolumeFloat(ij.ImageStack s, int depth, int n, double aspectx, double aspecty, double aspectz)
s
- the ImageStack to be used.depth
- the numebr of slices per volume.n
- the number of volumes in the hypervolume.aspectx,
- aspecty, aspectz the aspect ratios of the volume dimensions.public VolumeFloat(ij.process.ImageProcessor ip)
ip
- the ImageProcessor from which to obtain the voxels.Method Detail |
public float[][][] getVolume()
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 convolvet(ij.ImageStack s, int center, Kernel1D kernel)
s
- the ImageStack to use.center
- the index of the central slice in s.kernel
- the kernel to use for 1D convolution.public void load(ij.ImageStack s, int start)
public void loadInverse(ij.ImageStack s, int center)
public void convolvexy(Kernel1D kernel)
public void convolvexy(Kernel2D kernel)
public void convolvexyz(Kernel3D kernel)
public void convolvexyz(Kernel1D kernel)
kernel
- a 1D convolution kernel.public void convolvex(VolumeFloat v1, Kernel1D kernel)
public void convolvey(VolumeFloat v1, Kernel1D kernel)
public void convolvex(VolumeFloat v1, Kernel2D kernel)
public void convolvey(VolumeFloat v1, Kernel2D kernel)
public void convolvez(VolumeFloat v1, Kernel1D kernel)
public void convolvez(VolumeFloat v1)
public void convolvez(VolumeFloat v1, Kernel2D kernel)
public void convolvex(VolumeFloat v1, Kernel3D kernel)
public void convolvey(VolumeFloat v1, Kernel3D kernel)
public void convolvez(VolumeFloat v1, Kernel3D kernel)
public void copy(VolumeFloat v1)
public void add(VolumeFloat v1)
public void sub(VolumeFloat v1)
public void mul(double constant)
public void mul(VolumeFloat a, VolumeFloat b)
public void mul(VolumeFloat a)
public void sqrt()
public float dx(int x, int y, int z, Kernel1D kernel)
public float dy(int x, int y, int z, Kernel1D kernel)
public float dz(int x, int y, int z, Kernel1D kernel)
public float ux(int j, int i, Kernel2D kernel)
public float uy(int j, int i, Kernel2D kernel)
public float[] map()
public void intoStack(ij.ImageStack is)
public ij.ImageStack getImageStack()
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |