edu.washington.biostr.sig.volume
Class BitIndexedVolumeArray
java.lang.Object
edu.washington.biostr.sig.volume.VolumeArray
edu.washington.biostr.sig.volume.IndexedVolumeArray
edu.washington.biostr.sig.volume.BitIndexedVolumeArray
- All Implemented Interfaces:
- Serializable, Iterable<Object>
public class BitIndexedVolumeArray
- extends IndexedVolumeArray
Support a bit (true/false) based volume array.
The underlying structure is currently a BitSet.
See the documentation for VolumeArray for more data.
- Version:
- 1.0
- Author:
- Eider Moore
- See Also:
- Serialized Form
| Fields inherited from class edu.washington.biostr.sig.volume.VolumeArray |
EPSILON, imageMax, imageMin, maxI5, maxTime, maxX, maxY, maxZ, MINUS, NONE, PLUS, X, X_MINUS, X_PLUS, Y, Y_MINUS, Y_PLUS, Z, Z_MINUS, Z_PLUS |
|
Constructor Summary |
BitIndexedVolumeArray(int maxX,
int maxY,
int maxZ,
int maxTime,
int maxI5,
javax.vecmath.Matrix4d index2space,
BitSet set)
|
|
Method Summary |
double |
getDouble(int index)
get the double value from this index. |
int |
getInt(int index)
get the int value from this index. |
DataType |
getNaturalType()
The natural type is either float or int and is determined based on
whether the backing array is an integer or a floating point. |
DataType |
getType()
Returns a type appropriate for saving. |
void |
setData(int index,
double value)
|
void |
setData(int index,
int value)
|
| Methods inherited from class edu.washington.biostr.sig.volume.IndexedVolumeArray |
getDouble, getIndex, getInt, getSeries, getSeries, interpolate, iterator, iterator, lineNatural, map, setData, setData, setSeries, setSeries |
| Methods inherited from class edu.washington.biostr.sig.volume.VolumeArray |
get, getBestDouble, getBestDouble, getBestIndex, getDouble, getDouble, getFloatAnd, getImage, getImage, getImage, getImage, getImageMax, getImageMin, getIndex2Space, getInt, getInt, getLine, getLine, getMaxI5, getMaxTime, getMaxX, getMaxY, getMaxZ, getMmPerX, getMmPerY, getMmPerZ, getNumEntries, getSpace2Index, getValueMM, getValueVoxels, getValueVoxelsInt, quickRoundPositive, quickRoundPositive, randomSampling, renderInto, setMinMax, supportsLookupTable, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitIndexedVolumeArray
public BitIndexedVolumeArray(int maxX,
int maxY,
int maxZ,
int maxTime,
int maxI5,
javax.vecmath.Matrix4d index2space,
BitSet set)
- Parameters:
maxX - The maximum for the x dimension (fastest changing of the spacial indices)maxY - The maximum for the y dimension.maxZ - The maximum for the z dimension (slowest changing of the spacial indices).maxTime - The maximum for the time dimension. Usually 1.maxI5 - The maximum for the 5th dimension. Usually 1.index2space - The transform, usually turns indices to mm coordinates. Must be invertable.set - The data
getDouble
public double getDouble(int index)
- Description copied from class:
IndexedVolumeArray
- get the double value from this index.
- Specified by:
getDouble in class IndexedVolumeArray
- Returns:
getInt
public int getInt(int index)
- Description copied from class:
IndexedVolumeArray
- get the int value from this index.
- Specified by:
getInt in class IndexedVolumeArray
- Returns:
getNaturalType
public DataType getNaturalType()
- Description copied from class:
VolumeArray
- The natural type is either float or int and is determined based on
whether the backing array is an integer or a floating point.
- Specified by:
getNaturalType in class VolumeArray
- Returns:
- The natural type (int, rgb or float)
getType
public DataType getType()
- Description copied from class:
VolumeArray
- Returns a type appropriate for saving. Type can be TYPE_BYTE, TYPE_FLOAT, etc.
- Specified by:
getType in class VolumeArray
- Returns:
- a type appropriate for saving.
setData
public void setData(int index,
double value)
- Specified by:
setData in class IndexedVolumeArray
setData
public void setData(int index,
int value)
- Specified by:
setData in class IndexedVolumeArray
Copyright © 2006 University of Washington. All Rights Reserved.