public class ScannerOrderScaledDataSource extends ScannerOrderDataSource
Constructor and Description |
---|
ScannerOrderScaledDataSource(java.lang.String filename,
int numVoxels,
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 ScannerOrderScaledDataSource(java.lang.String filename, int numVoxels, int components, java.lang.String type, boolean intelByteOrder, int offset, double scaleSlope, double scaleInter)
filename
- The name of the data file.numVoxels
- The number of voxels in the 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 ScannerOrderDataSource
DataSourceException