edu.jhu.ece.iacl.jist.structures.image
Class ImageDataFloat

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.image.ImageData
      extended by edu.jhu.ece.iacl.jist.structures.image.ImageDataFloat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ImageDataFloat
extends ImageData

The Class ImageDataFloat.

Author:
Blake Lucas
See Also:
Serialized Form

Field Summary
protected  float[][] vol2d
          The vol2d.
protected  float[][][] vol3d
          The vol3d.
protected  float[][][][] vol4d
          The vol4d.
 
Fields inherited from class edu.jhu.ece.iacl.jist.structures.image.ImageData
cols, components, imageHeader, name, rows, slices, type
 
Constructor Summary
ImageDataFloat(float[][][] data)
          Instantiates a new image data float.
ImageDataFloat(float[][][][] data)
          Instantiates a new image data float.
ImageDataFloat(ImageData vol)
          Instantiates a new image data float.
ImageDataFloat(int rows, int cols)
          Instantiates a new image data float.
ImageDataFloat(int rows, int cols, int slices)
          Instantiates a new image data float.
ImageDataFloat(int rows, int cols, int slices, int components)
           
ImageDataFloat(java.lang.String name, int rows, int cols)
          Instantiates a new image data float.
ImageDataFloat(java.lang.String name, int rows, int cols, int slices)
          Instantiates a new image data float.
ImageDataFloat(java.lang.String name, int rows, int cols, int slices, int components)
          Instantiates a new image data float.
 
Method Summary
 ImageDataFloat clone()
           
 void dispose()
          Free any resources associated with an ImageData object.
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.
 java.lang.String getName()
          Gets the name.
 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.
 boolean isNotAvailable()
           
 ImageDataFloat mimic()
          Create new cubic volume of the same subclass type with the same dimensions Does not copy the values in the volume.
 ImageDataFloat mimic(int rows, int cols, int slices, int components)
          Mimic.
 void normalize()
          Normalize.
 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 a)
          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)
          Sets the.
 void set(Voxel a)
          Sets the.
 java.lang.Object[] toArray()
          To array.
 float[][] toArray2d()
          To array2d.
 float[][][] toArray3d()
          To array3d.
 float[][][][] toArray4d()
          To array4d.
 
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, getModelImageCopy, 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, set, setHeader, setName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vol2d

protected float[][] vol2d
The vol2d.


vol3d

protected float[][][] vol3d
The vol3d.


vol4d

protected float[][][][] vol4d
The vol4d.

Constructor Detail

ImageDataFloat

public ImageDataFloat(ImageData vol)
Instantiates a new image data float.

Parameters:
vol - the vol

ImageDataFloat

public ImageDataFloat(float[][][] data)
Instantiates a new image data float.

Parameters:
data - the data

ImageDataFloat

public ImageDataFloat(float[][][][] data)
Instantiates a new image data float.

Parameters:
data - the data

ImageDataFloat

public ImageDataFloat(int rows,
                      int cols)
Instantiates a new image data float.

Parameters:
rows - the rows
cols - the cols
slices - the slices

ImageDataFloat

public ImageDataFloat(int rows,
                      int cols,
                      int slices)
Instantiates a new image data float.

Parameters:
rows - the rows
cols - the cols
slices - the slices

ImageDataFloat

public ImageDataFloat(int rows,
                      int cols,
                      int slices,
                      int components)

ImageDataFloat

public ImageDataFloat(java.lang.String name,
                      int rows,
                      int cols)
Instantiates a new image data float.

Parameters:
name - the name
rows - the rows
cols - the cols
slices - the slices

ImageDataFloat

public ImageDataFloat(java.lang.String name,
                      int rows,
                      int cols,
                      int slices)
Instantiates a new image data float.

Parameters:
name - the name
rows - the rows
cols - the cols
slices - the slices

ImageDataFloat

public ImageDataFloat(java.lang.String name,
                      int rows,
                      int cols,
                      int slices,
                      int components)
Instantiates a new image data float.

Parameters:
name - the name
rows - the rows
cols - the cols
slices - the slices
components - the components
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

clone

public ImageDataFloat clone()
Specified by:
clone in class ImageData

getName

public java.lang.String getName()
Description copied from class: ImageData
Gets the name.

Overrides:
getName in class ImageData
Returns:
the name

get

public java.lang.Number get(int i,
                            int j,
                            int k,
                            int l)
Description copied from class: ImageData
Get vector component for volume.

Specified by:
get in class ImageData
Parameters:
i - row
j - column
k - slice
l - component
Returns:
the number

getBoolean

public boolean getBoolean(int i,
                          int j,
                          int k,
                          int l)
Description copied from class: ImageData
Gets the boolean.

Specified by:
getBoolean in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the boolean

getColor

public java.awt.Color getColor(int i,
                               int j,
                               int k,
                               int l)
Description copied from class: ImageData
Gets the color.

Specified by:
getColor in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the color

getDouble

public double getDouble(int i,
                        int j,
                        int k,
                        int l)
Description copied from class: ImageData
Gets the double.

Specified by:
getDouble in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the double

getFloat

public float getFloat(int i,
                      int j,
                      int k,
                      int l)
Description copied from class: ImageData
Gets the float.

Specified by:
getFloat in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the float

getInt

public int getInt(int i,
                  int j,
                  int k,
                  int l)
Description copied from class: ImageData
Gets the int.

Specified by:
getInt in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the int

getShort

public short getShort(int i,
                      int j,
                      int k,
                      int l)
Description copied from class: ImageData
Gets the short.

Specified by:
getShort in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the short

getUByte

public short getUByte(int i,
                      int j,
                      int k,
                      int l)
Description copied from class: ImageData
Gets the u byte.

Specified by:
getUByte in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the u byte

mimic

public ImageDataFloat mimic()
Description copied from class: ImageData
Create new cubic volume of the same subclass type with the same dimensions Does not copy the values in the volume.

Specified by:
mimic in class ImageData
Returns:
the image data

mimic

public ImageDataFloat mimic(int rows,
                            int cols,
                            int slices,
                            int components)
Description copied from class: ImageData
Mimic.

Specified by:
mimic in class ImageData
Parameters:
rows - the rows
cols - the cols
slices - the slices
components - the components
Returns:
the image data

normalize

public void normalize()
Normalize.


set

public void set(int i,
                int j,
                int k,
                int l,
                boolean a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                byte a)
Sets the.

Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                float a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                int a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                java.awt.Color a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

getByte

public byte getByte(int i,
                    int j,
                    int k,
                    int l)
Description copied from class: ImageData
Gets the u byte.

Specified by:
getByte in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the u byte

set

public void set(int i,
                int j,
                int k,
                int l,
                double a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                java.lang.Number a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                short a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
i - the i
j - the j
k - the k
l - the l
a - the a

set

public void set(Voxel a)
Description copied from class: ImageData
Sets the.

Specified by:
set in class ImageData
Parameters:
a - the a

toArray

public java.lang.Object[] toArray()
To array.

Returns:
the object[]

toArray2d

public float[][] toArray2d()
To array2d.

Returns:
the float[][]

toArray3d

public float[][][] toArray3d()
To array3d.

Returns:
the float[][][]

toArray4d

public float[][][][] toArray4d()
To array4d.

Returns:
the float[][][][]

dispose

public void dispose()
Description copied from class: ImageData
Free any resources associated with an ImageData object. This is NOT necessary. It might encourage the garbage collector to collect resources more efficiently.

Specified by:
dispose in class ImageData

isNotAvailable

public boolean isNotAvailable()
Overrides:
isNotAvailable in class ImageData