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

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

public abstract class ImageDataNumber
extends ImageData

The Class ImageDataNumber.

Author:
Blake Lucas
See Also:
Serialized Form

Field Summary
protected  java.lang.Number[][] vol2d
          The vol2d.
protected  java.lang.Number[][][] vol3d
          The vol3d.
protected  java.lang.Number[][][][] vol4d
          The vol4d.
 
Fields inherited from class edu.jhu.ece.iacl.jist.structures.image.ImageData
cols, components, imageHeader, name, rows, slices, type
 
Constructor Summary
ImageDataNumber(ImageData vol)
          Instantiates a new image data number.
ImageDataNumber(int rows, int cols)
          Instantiates a new image data number.
ImageDataNumber(int rows, int cols, int slices)
          Instantiates a new image data number.
ImageDataNumber(int rows, int cols, int slices, int components)
          Instantiates a new image data number.
ImageDataNumber(java.lang.Number[][] data)
          Instantiates a new image data number.
ImageDataNumber(java.lang.Number[][][] data)
          Instantiates a new image data number.
ImageDataNumber(java.lang.Number[][][][] data)
          Instantiates a new image data number.
ImageDataNumber(java.lang.String name, VoxelType type, int rows, int cols, int slices, int components)
          Instantiates a new image data number.
ImageDataNumber(VoxelType type, int rows, int cols, int slices, int components)
          Instantiates a new image data number.
 
Method Summary
 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.
 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.
 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()
           
 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.
 void setName(java.lang.String name)
          Volume name used my MIPAV images when saving.
 java.lang.Object[] toArray()
          To array.
 java.lang.Number[][] toArray2d()
          To array2d.
 java.lang.Number[][][] toArray3d()
          To array3d.
 java.lang.Number[][][][] toArray4d()
          To array4d.
 
Methods inherited from class edu.jhu.ece.iacl.jist.structures.image.ImageData
clone, clone, clone, clone, dispose, get, get, getBoolean, getBoolean, getByte, getByte, getByte, getColor, getColor, getCols, getComponents, getDouble, getDouble, getFloat, getFloat, getHeader, getInt, getInt, getModelImageCopy, getName, getRows, getShort, getShort, getSlices, getType, getUByte, getUByte, getUShort, getUShort, getUShort, mimic, mimic, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setHeader, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vol2d

protected java.lang.Number[][] vol2d
The vol2d.


vol3d

protected java.lang.Number[][][] vol3d
The vol3d.


vol4d

protected java.lang.Number[][][][] vol4d
The vol4d.

Constructor Detail

ImageDataNumber

public ImageDataNumber(ImageData vol)
Instantiates a new image data number.

Parameters:
vol - the vol

ImageDataNumber

public ImageDataNumber(int rows,
                       int cols)
Instantiates a new image data number.

Parameters:
rows - the rows
cols - the cols

ImageDataNumber

public ImageDataNumber(int rows,
                       int cols,
                       int slices)
Instantiates a new image data number.

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

ImageDataNumber

public ImageDataNumber(int rows,
                       int cols,
                       int slices,
                       int components)
Instantiates a new image data number.

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

ImageDataNumber

public ImageDataNumber(java.lang.Number[][] data)
Instantiates a new image data number.

Parameters:
data - the data

ImageDataNumber

public ImageDataNumber(java.lang.Number[][][] data)
Instantiates a new image data number.

Parameters:
data - the data

ImageDataNumber

public ImageDataNumber(java.lang.Number[][][][] data)
Instantiates a new image data number.

Parameters:
data - the data

ImageDataNumber

public ImageDataNumber(java.lang.String name,
                       VoxelType type,
                       int rows,
                       int cols,
                       int slices,
                       int components)
Instantiates a new image data number.

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

ImageDataNumber

public ImageDataNumber(VoxelType type,
                       int rows,
                       int cols,
                       int slices,
                       int components)
Instantiates a new image data number.

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

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

setName

public void setName(java.lang.String name)
Description copied from class: ImageData
Volume name used my MIPAV images when saving.

Overrides:
setName in class ImageData
Parameters:
name - the name

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

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)
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 java.lang.Number[][] toArray2d()
To array2d.

Returns:
the number[][]

toArray3d

public java.lang.Number[][][] toArray3d()
To array3d.

Returns:
the number[][][]

toArray4d

public java.lang.Number[][][][] toArray4d()
To array4d.

Returns:
the number[][][][]

isNotAvailable

public boolean isNotAvailable()
Overrides:
isNotAvailable in class ImageData