![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.ima.Volume.Filter
public static class Volume.Filter
Defines an iterative filter on a volume.
Field Summary | |
---|---|
int |
depth
Filtered volume depth. |
int |
height
Filtered volume height. |
int |
size
Filtered volume size = width * height * depth. |
int |
thick
Filtered volume thickness = width * height. |
int |
width
Filtered volume width. |
Constructor Summary | |
---|---|
Volume.Filter(int borderX,
int borderY,
int borderZ)
Constructs an image filter. |
Method Summary | |
---|---|
Volume |
getOutput(Volume input)
Returns the filtered volume. |
double |
getVoxel(double[] input,
int ijk)
Returns the filtered voxel. |
String |
more(int iteration,
int step,
double deviation,
double count)
Returns true to run a new filtering iteration, false to stop. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int depth
public int height
public int size
public int thick
public int width
Constructor Detail |
---|
public Volume.Filter(int borderX, int borderY, int borderZ)
borderX
- [optional, default is 0] Border size: width in voxel on the image border where the filter must not be computed.borderY
- [optional, default is borderX] Border size: height in voxel on the image border where the filter must not be computed.borderZ
- [optional, default is borderX] Border size: depth in voxel on the image border where the filter must not be computed.Method Detail |
---|
public Volume getOutput(Volume input)
public double getVoxel(double[] input, int ijk)
input
- The buffer input s(i+u, j+v, k+w) = input[ijk + u + v * width + w * thick] with -border < {u, v, w} < border.ijk
- Input index.
public String more(int iteration, int step, double deviation, double count)
iteration
- @step
- Step number starting from 0. Several iterations may be re-done at each step.deviation
- Average quadratic error square-root between the iteration input and output.count
- Number of voxels taken into account (i.e. the volume size minus the border).