|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.volume3d.Volume3D
public class Volume3D
3D-FFTable Volume based on C-code from Lars Wigstroem. This volume class is able to describe a 3D grid with uniform spacing in each spatial dimension. One sub class of this volume is CUDAVolume3D which models the same data in CUDA memory. The corresponding operator is then CUDAVolumeOperator. Note that instantiation should be performed using the respective VolumeOperator in order to enable compatibility to CUDA.
CUDAVolume3D
,
VolumeOperator
Field Summary | |
---|---|
float[][][] |
data
|
float[] |
dim
|
int |
dimensions
|
int |
in_dim
|
static int |
MAX_DIM
|
int[] |
size
|
Constructor Summary | |
---|---|
Volume3D(ij.ImagePlus image,
int mirror,
int cuty,
boolean uneven)
Creates a Volume3D Object which supports 3-D filtering operations. |
|
Volume3D(int[] size2,
float[] dim2,
int inDim)
Creates an empty volume. |
Method Summary | |
---|---|
void |
destroy()
Releases the memory for this volume. |
ij.ImagePlus |
getImagePlus(java.lang.String title)
Creates an ImagePlus to visualize the contents of this Volume. |
ij.ImagePlus |
getImagePlus(java.lang.String title,
int mirror,
int cuty,
boolean uneven)
Method to create an ImagePlus from this Volume3D. |
int |
getInternalDimension()
returns 1 if the volume is real and 2 if it is complex |
void |
printSize()
prints the dimensions of the volume to STDOUT. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int dimensions
public int[] size
public float[] dim
public int in_dim
public float[][][] data
public static final int MAX_DIM
Constructor Detail |
---|
public Volume3D(int[] size2, float[] dim2, int inDim)
size2
- sizes in each directiondim2
- physical dimension in each directioninDim
- internal Dimensionpublic Volume3D(ij.ImagePlus image, int mirror, int cuty, boolean uneven)
image
- the ImagePlusdimx
- voxel dimension in x directiondimy
- voxel dimension in y directiondimz
- voxel dimension in z directionmirror
- size of the area which is mirrored to reduce FFT artifacts.cuty
- number of pixels to be cut from the original volume along y directionuneven
- is set if the original volume has an uneven number of slices / projections.Method Detail |
---|
public int getInternalDimension()
public ij.ImagePlus getImagePlus(java.lang.String title)
title
- the title of the ImagePlus
public ij.ImagePlus getImagePlus(java.lang.String title, int mirror, int cuty, boolean uneven)
title
- the title for the ImagePlusmirror
- the width of the mirrored boundary. Should match the parameters used to create the volume.cuty
- the number of pixels which were cut along the y axis during the creation of the volume.uneven
- true, if the original number of slices / projections was odd.
public void printSize()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |