public class NiftiImage extends java.lang.Object implements VolumeImage, Clonable
| Modifier and Type | Class and Description |
|---|---|
static class |
NiftiImage.ImageSpace |
| Constructor and Description |
|---|
NiftiImage(java.lang.String title,
java.io.File file) |
NiftiImage(java.lang.String title,
NiftiHeader header,
NiftiDataBuffer buff) |
NiftiImage(java.lang.String title,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
NiftiImage |
clone() |
boolean |
getBinary(int v,
int i,
int j,
int k,
int t) |
byte |
getBlue(int v,
int i,
int j,
int k,
int t) |
double |
getComplex128Imaginary(int v,
int i,
int j,
int k,
int t) |
double |
getComplex128Real(int v,
int i,
int j,
int k,
int t) |
NiftiDataBuffer |
getDataBuffer() |
NiftiHeader.DataType |
getDataType() |
int |
getDim(int idx) |
float |
getFloat32(int v,
int i,
int j,
int k,
int t) |
double |
getFloat64(int v,
int i,
int j,
int k,
int t) |
byte |
getGreen(int v,
int i,
int j,
int k,
int t) |
NiftiHeader |
getHeader() |
short |
getInt16(int v,
int i,
int j,
int k,
int t) |
int |
getInt32(int v,
int i,
int j,
int k,
int t) |
long |
getInt64(int v,
int i,
int j,
int k,
int t) |
byte |
getInt8(int v,
int i,
int j,
int k,
int t) |
int |
getNumChannels()
Number of channels per the voxel (e.g.
|
int |
getNumCols()
Number of columns in the image, corresponds to image x-axis
|
int |
getNumRows()
Number of rows in the image, corresponds to image y-axis
|
int |
getNumSlices()
Number of slices in the image, corresponds to image z-axis
|
int |
getNumTimes() |
int |
getNumValuesPerVoxel() |
int |
getNumVoxels()
Number of voxels per time instance
|
int |
getPixels(int i,
int di,
int ni,
int j,
int dj,
int nj,
int k,
int dk,
int nk,
int t,
int scanline,
int pageline,
NiftiPixelGenerator voxelator,
java.nio.ByteBuffer pixels)
Fills a buffer with pixel values from the image
|
byte |
getRed(int v,
int i,
int j,
int k,
int t) |
java.lang.String |
getTitle() |
double |
getValue(int channel,
int col,
int row,
int slice)
Voxel raw value at a given column, row, slice
|
double |
getValue(int v,
int i,
int j,
int k,
int t) |
Vector3d |
getVoxelSpacing() |
AffineTransform3d |
getVoxelTransform()
Determines the most likely transform, checking if Quaternion-based
exists first, then Affine, then None.
|
AffineTransform3d |
getVoxelTransform(NiftiImage.ImageSpace method) |
NiftiHeader.XFormCode |
getVoxelTransformCode(NiftiImage.ImageSpace method) |
int |
numDimensions() |
void |
setTitle(java.lang.String title) |
public NiftiImage(java.lang.String title,
java.lang.String fileName)
public NiftiImage(java.lang.String title,
java.io.File file)
public NiftiImage(java.lang.String title,
NiftiHeader header,
NiftiDataBuffer buff)
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public AffineTransform3d getVoxelTransform()
getVoxelTransform in interface VolumeImagepublic NiftiHeader.XFormCode getVoxelTransformCode(NiftiImage.ImageSpace method)
public AffineTransform3d getVoxelTransform(NiftiImage.ImageSpace method)
public Vector3d getVoxelSpacing()
public int numDimensions()
public int getDim(int idx)
public int getNumCols()
VolumeImagegetNumCols in interface VolumeImagepublic int getNumRows()
VolumeImagegetNumRows in interface VolumeImagepublic int getNumSlices()
VolumeImagegetNumSlices in interface VolumeImagepublic int getNumTimes()
public int getNumVoxels()
public int getNumValuesPerVoxel()
public NiftiHeader.DataType getDataType()
public NiftiDataBuffer getDataBuffer()
public NiftiHeader getHeader()
public double getValue(int v,
int i,
int j,
int k,
int t)
public float getFloat32(int v,
int i,
int j,
int k,
int t)
public double getFloat64(int v,
int i,
int j,
int k,
int t)
public double getComplex128Real(int v,
int i,
int j,
int k,
int t)
public double getComplex128Imaginary(int v,
int i,
int j,
int k,
int t)
public long getInt64(int v,
int i,
int j,
int k,
int t)
public int getInt32(int v,
int i,
int j,
int k,
int t)
public short getInt16(int v,
int i,
int j,
int k,
int t)
public byte getInt8(int v,
int i,
int j,
int k,
int t)
public boolean getBinary(int v,
int i,
int j,
int k,
int t)
public byte getRed(int v,
int i,
int j,
int k,
int t)
public byte getGreen(int v,
int i,
int j,
int k,
int t)
public byte getBlue(int v,
int i,
int j,
int k,
int t)
public int getPixels(int i,
int di,
int ni,
int j,
int dj,
int nj,
int k,
int dk,
int nk,
int t,
int scanline,
int pageline,
NiftiPixelGenerator voxelator,
java.nio.ByteBuffer pixels)
public NiftiImage clone()
public double getValue(int channel,
int col,
int row,
int slice)
VolumeImagegetValue in interface VolumeImagechannel - channel numbercol - column indexrow - row indexslice - slice indexpublic int getNumChannels()
VolumeImagegetNumChannels in interface VolumeImage