public class VoxelOrderScaledDataSource extends VoxelOrderDataSource
Constructor and Description |
---|
VoxelOrderScaledDataSource(java.lang.String filename,
int components,
java.lang.String type,
boolean intelByteOrder,
int offset,
double scaleSlope,
double scaleInter)
Constructor requires the filename, the number of values in each voxel and
the data type.
|
Modifier and Type | Method and Description |
---|---|
double[] |
nextVoxel()
Returns the data in the next voxel.
|
more
getDataTypeCode, typeString
public VoxelOrderScaledDataSource(java.lang.String filename, int components, java.lang.String type, boolean intelByteOrder, int offset, double scaleSlope, double scaleInter)
filename
- The name of the data file.components
- The number of values in each voxel.type
- A string indicating the data type: either "char", "short",
"int", "long", "float" or "double".intelByteOrder
- true if the byte ordering of the input stream is little-endian.offset
- read and discard this many bytes; used to skip headers.public double[] nextVoxel() throws DataSourceException
DataSource
nextVoxel
in interface DataSource
nextVoxel
in class VoxelOrderDataSource
DataSourceException