|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.structures.image.ImageData edu.jhu.ece.iacl.jist.structures.image.ImageDataMipav
public class ImageDataMipav
Cubic volume adapter to MIPAV ModelImage type. Model Images can be wrapped in this class without copying data values and preserving header information.
Field Summary | |
---|---|
protected ModelImage |
img
The img. |
Fields inherited from class edu.jhu.ece.iacl.jist.structures.image.ImageData |
---|
cols, components, imageHeader, name, rows, slices, type |
Constructor Summary | |
---|---|
protected |
ImageDataMipav()
|
|
ImageDataMipav(ImageData vol)
Instantiates a new image data mipav. |
|
ImageDataMipav(ModelImage img)
|
|
ImageDataMipav(java.lang.String name,
int rows,
int cols)
Instantiates a new image data mipav. |
|
ImageDataMipav(java.lang.String name,
int rows,
int cols,
int slices)
Instantiates a new image data mipav. |
|
ImageDataMipav(java.lang.String name,
int rows,
int cols,
int slices,
int components)
Instantiates a new image data mipav. |
|
ImageDataMipav(java.lang.String name,
VoxelType type,
int rows,
int cols,
int slices)
Instantiates a new image data mipav. |
|
ImageDataMipav(java.lang.String name,
VoxelType type,
int rows,
int cols,
int slices,
int components)
Instantiates a new image data mipav. |
Method Summary | |
---|---|
ImageData |
clone()
|
static void |
copyDataToModelImage(ImageData vol,
ModelImage img)
Copy data to model image. |
static ModelImage |
createModelImage(ImageData vol)
Creates the model image. |
static ModelImage |
createModelImage(ImageData vol,
ModelImage img)
Creates the model image. |
void |
dispose()
Free any resources associated with an ImageData object. |
ModelImage |
extractModelImage()
|
protected void |
finalize()
|
java.lang.Number |
get(int i,
int j,
int k,
int l)
Get vector component for volume. |
boolean |
getBoolean(int i,
int j,
int k,
int l)
Gets the boolean. |
byte |
getByte(int i,
int j,
int k,
int l)
Gets the u byte. |
java.awt.Color |
getColor(int i,
int j,
int k,
int l)
Gets the color. |
double |
getDouble(int i,
int j,
int k,
int l)
Gets the double. |
float |
getFloat(int i,
int j,
int k,
int l)
Gets the float. |
int |
getInt(int i,
int j,
int k,
int l)
Gets the int. |
static int |
getMipavType(VoxelType type)
Get MIPAV voxel type for specified voxel type MIPAV types are ambiguous because they use integers instead of enums This function is not reflexive for Vector types since MIPAV doesn't have a Vector type. |
ModelImage |
getModelImageCopy()
Gets the model image. |
ModelImage |
getModelImageDirect()
|
short |
getShort(int i,
int j,
int k,
int l)
Gets the short. |
short |
getUByte(int i,
int j,
int k,
int l)
Gets the u byte. |
static VoxelType |
getVoxelType(int mipavType)
Get voxel type for specified MIPAV voxel type MIPAV types are ambiguous because they use integers instead of enums. |
void |
ImageDataMipavPrivate(ModelImage img)
Instantiates a new image data mipav. |
boolean |
isNotAvailable()
|
ImageDataMipav |
mimic()
Create new cubic volume of the same subclass type with the same dimensions Does not copy the values in the volume. |
ImageDataMipav |
mimic(int rows,
int cols,
int slices,
int components)
Mimic. |
void |
set(int i,
int j,
java.awt.Color c)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
boolean a)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
byte a)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
java.awt.Color c)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
double a)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
float a)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
int a)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
java.lang.Number a)
Sets the. |
void |
set(int i,
int j,
int k,
int l,
short a)
Set vector Component. |
void |
set(Voxel a)
Sets the. |
void |
setHeader(ImageHeader info)
Sets the header. |
void |
setName(java.lang.String name)
Volume name used my MIPAV images when saving. |
Methods inherited from class edu.jhu.ece.iacl.jist.structures.image.ImageData |
---|
clone, clone, clone, get, get, getBoolean, getBoolean, getByte, getByte, getColor, getColor, getCols, getComponents, getDouble, getDouble, getFloat, getFloat, getHeader, getInt, getInt, getName, getRows, getShort, getShort, getSlices, getType, getUByte, getUByte, getUShort, getUShort, getUShort, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ModelImage img
Constructor Detail |
---|
public ImageDataMipav(ImageData vol)
vol
- the volpublic ImageDataMipav(ModelImage img)
public ImageDataMipav(java.lang.String name, int rows, int cols)
name
- the namerows
- the rowscols
- the colsslices
- the slicespublic ImageDataMipav(java.lang.String name, int rows, int cols, int slices)
name
- the namerows
- the rowscols
- the colsslices
- the slicespublic ImageDataMipav(java.lang.String name, int rows, int cols, int slices, int components)
name
- the namerows
- the rowscols
- the colsslices
- the slicescomponents
- the componentspublic ImageDataMipav(java.lang.String name, VoxelType type, int rows, int cols, int slices)
name
- the nametype
- the typerows
- the rowscols
- the colsslices
- the slicespublic ImageDataMipav(java.lang.String name, VoxelType type, int rows, int cols, int slices, int components)
name
- the nametype
- the typerows
- the rowscols
- the colsslices
- the slicescomponents
- the componentsprotected ImageDataMipav()
Method Detail |
---|
public static void copyDataToModelImage(ImageData vol, ModelImage img)
vol
- the volimg
- the imgpublic static ModelImage createModelImage(ImageData vol)
vol
- the vol
public void setHeader(ImageHeader info)
ImageData
setHeader
in class ImageData
info
- the new headerpublic static ModelImage createModelImage(ImageData vol, ModelImage img)
vol
- the volimg
- the img
public static int getMipavType(VoxelType type)
type
- the type
public static VoxelType getVoxelType(int mipavType)
mipavType
- the mipav type
public void ImageDataMipavPrivate(ModelImage img)
img
- the imgpublic ImageData clone()
clone
in class ImageData
public java.lang.Number get(int i, int j, int k, int l)
ImageData
get
in class ImageData
i
- rowj
- columnk
- slicel
- component
public boolean getBoolean(int i, int j, int k, int l)
ImageData
getBoolean
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public java.awt.Color getColor(int i, int j, int k, int l)
ImageData
getColor
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public double getDouble(int i, int j, int k, int l)
ImageData
getDouble
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public float getFloat(int i, int j, int k, int l)
ImageData
getFloat
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public int getInt(int i, int j, int k, int l)
ImageData
getInt
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public ModelImage getModelImageCopy()
ImageData
getModelImageCopy
in class ImageData
public short getShort(int i, int j, int k, int l)
ImageData
getShort
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public short getUByte(int i, int j, int k, int l)
ImageData
getUByte
in class ImageData
i
- the ij
- the jk
- the kl
- the l
public ImageDataMipav mimic()
ImageData
mimic
in class ImageData
public ImageDataMipav mimic(int rows, int cols, int slices, int components)
ImageData
mimic
in class ImageData
rows
- the rowscols
- the colsslices
- the slicescomponents
- the components
public void set(int i, int j, int k, int l, boolean a)
ImageData
set
in class ImageData
i
- the ij
- the jk
- the kl
- the la
- the apublic void set(int i, int j, int k, int l, byte a)
i
- the ij
- the jk
- the kl
- the la
- the apublic void set(int i, int j, java.awt.Color c)
ImageData
set
in class ImageData
i
- the ij
- the jc
- the apublic void set(int i, int j, int k, int l, double a)
ImageData
set
in class ImageData
i
- the ij
- the jk
- the kl
- the la
- the apublic void set(int i, int j, int k, int l, float a)
ImageData
set
in class ImageData
i
- the ij
- the jk
- the kl
- the la
- the apublic void set(int i, int j, int k, int l, int a)
ImageData
set
in class ImageData
i
- the ij
- the jk
- the kl
- the la
- the apublic void set(int i, int j, int k, int l, java.awt.Color c)
ImageData
set
in class ImageData
i
- the ij
- the jk
- the kl
- the lc
- the apublic void set(int i, int j, int k, int l, short a)
set
in class ImageData
i
- the ij
- the jk
- the kl
- the la
- the apublic void set(Voxel a)
ImageData
set
in class ImageData
a
- the apublic void setName(java.lang.String name)
ImageData
setName
in class ImageData
name
- the namepublic void dispose()
ImageData
dispose
in class ImageData
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public ModelImage getModelImageDirect()
public ModelImage extractModelImage()
public boolean isNotAvailable()
isNotAvailable
in class ImageData
public void set(int i, int j, int k, int l, java.lang.Number a)
ImageData
set
in class ImageData
i
- the ij
- the jk
- the kl
- the la
- the apublic byte getByte(int i, int j, int k, int l)
ImageData
getByte
in class ImageData
i
- the ij
- the jk
- the kl
- the l
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |