|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--volume.Volume | +--volume.HyperVolume
This is a class that implements a float hyper (4D) volumes and operations including convolutions on it. A hypervolume has dimensions width*height*depth*length, with convenient indices of x,y,z,t. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Field Summary | |
float[][][][] |
hv
|
protected int |
length
|
Fields inherited from class volume.Volume |
aspectx, aspecty, aspectz, depth, edge, height, width |
Constructor Summary | |
HyperVolume()
Creates the null hypervolume. |
|
HyperVolume(ij.ImageStack is,
int depth)
Create a new hypervolume from a stack of volumes. |
|
HyperVolume(ij.ImageStack is,
int depth,
int center,
int n,
Kernel1D kernel)
Creates a hypervolume depthxn from a stack containing n volumes of depth depth and convolve around center with a filtering kernel on the fly. |
|
HyperVolume(int width,
int height,
int depth,
int length)
Creates a hypervolume with width, height, depth, length |
Method Summary | |
void |
convolvet(HyperVolume hv1,
Kernel1D kernel)
Compute separated 1d convolution: hv=hv1*kernel in t dimension. |
void |
convolvet(HyperVolume hv1,
Kernel3D kernel)
Compute separated 3d convolution: hv=hv1*kernel in t dimension. |
void |
convolvet(Kernel1D kernel)
Compute separated 1d convolution: hv=hv1*kernel in t dimension in place. |
void |
convolvex(HyperVolume hv1,
Kernel1D kernel)
Compute separated 1d convolution: v=v1*kernel in y dimension. |
void |
convolvex(HyperVolume hv1,
Kernel3D kernel)
Compute separated 3d convolution: hv=hv1*kernel in x dimension. |
void |
convolvexyz(Kernel1D kernel)
Convolve the hypervolume by kernel in xyz in place (so no extra hypervolume needed). |
void |
convolvey(HyperVolume hv1,
Kernel1D kernel)
Compute separated 1d convolution: hv=hv1*kernel in y dimension. |
void |
convolvey(HyperVolume hv1,
Kernel3D kernel)
Compute separated 3d convolution: hv=hv1*kernel in y dimension. |
void |
convolvez(HyperVolume hv1,
Kernel1D kernel)
Compute separated 1d convolution: hv=hv1*kernel in z dimension. |
void |
convolvez(HyperVolume hv1,
Kernel3D kernel)
Compute separated 3d convolution: hv=hv1*kernel in z dimension. |
java.lang.Object |
get(int x,
int y,
int z)
Get the vector value of the hypervolume that is at x,y,z. |
int |
getLength()
|
void |
intoStack(ij.ImageStack is)
Transfer hv into stack is. |
void |
mul(double constant)
Multiply all voxels in this hypervolume by a constant. |
void |
mul(HyperVolume a,
HyperVolume b)
Multiply all voxels in this hypervolume by the voxels in b (NOT the inner product). |
void |
set(java.lang.Object value,
int x,
int y,
int z)
Set the vector value of the hypervolume that is at x,y,z to value. |
ij.ImageStack |
toStack()
Convert this hypervolume to a stack. |
java.lang.String |
toString()
Return a string describing the volume. |
boolean |
valid(int x,
int y,
int z,
int t)
|
Methods inherited from class volume.Volume |
discreteSupport, getAspectx, getAspecty, getAspectz, getDepth, getEdge, getHeight, getWidth, in, setAspects, setEdge, valid, valid |
Methods inherited from class java.lang.Object |
|
Field Detail |
public float[][][][] hv
protected int length
Constructor Detail |
public HyperVolume()
public HyperVolume(int width, int height, int depth, int length)
public HyperVolume(ij.ImageStack is, int depth)
is
- and ImageJ ImageStack containing the slices.depth
- the depth of each volume in the hypervolume.public HyperVolume(ij.ImageStack is, int depth, int center, int n, Kernel1D kernel)
is
- and ImageJ ImageStack containing the slices.depth
- the depth of each volume in the hypervolume.center
- the index of the slice around which to convolve.n
- the number of volumes in this hypervolume.kernel
- the convolution kernel.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 ij.ImageStack toStack()
public int getLength()
public boolean valid(int x, int y, int z, int t)
public void convolvet(Kernel1D kernel)
public void convolvet(HyperVolume hv1, Kernel1D kernel)
public void convolvez(HyperVolume hv1, Kernel1D kernel)
public void convolvey(HyperVolume hv1, Kernel1D kernel)
public void convolvex(HyperVolume hv1, Kernel1D kernel)
public void convolvet(HyperVolume hv1, Kernel3D kernel)
public void convolvez(HyperVolume hv1, Kernel3D kernel)
public void convolvey(HyperVolume hv1, Kernel3D kernel)
public void convolvex(HyperVolume hv1, Kernel3D kernel)
public void convolvexyz(Kernel1D kernel)
public void mul(double constant)
public void mul(HyperVolume a, HyperVolume b)
public void intoStack(ij.ImageStack is)
public java.lang.String toString()
Volume
toString
in class Volume
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |