public class Volume3D
extends java.lang.Object
CUDAVolume3D
,
VolumeOperator
Modifier and Type | Field and Description |
---|---|
float[][][] |
data |
int |
dimensions |
int |
in_dim |
static int |
MAX_DIM |
int[] |
size |
float[] |
spacing |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public int dimensions
public int[] size
public float[] spacing
public int in_dim
public float[][][] data
public static final int MAX_DIM
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 ImagePlusmirror
- 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.public int getInternalDimension()
public ij.ImagePlus getImagePlus(java.lang.String title)
title
- the title of the ImagePluspublic 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()