public class NRRDHeader extends Object
Modifier and Type | Field and Description |
---|---|
int |
byte_offset_of_binary |
Map<String,String> |
fields |
Map<String,String> |
keys |
String |
magic |
Constructor and Description |
---|
NRRDHeader(File inputFile) |
Modifier and Type | Method and Description |
---|---|
int[] |
getArrayOfIntegerValueOrThrowException(String key) |
String |
getDataFile() |
int |
getDimension() |
int |
getSingleIntegerValueOrThrowException(String key) |
int[] |
getSizes() |
String |
getSpace() |
static String[] |
getSpaceDelimitedValues(String values) |
String[] |
getSpaceDirections() |
String[] |
getSpaceOrigin() |
com.pixelmed.convert.NRRDHeader.Type |
getType() |
static String[] |
getVectorTripleValuesFromString(String key,
String valueString) |
boolean |
isDataBigEndian() |
boolean |
isDataGZIPEncoded() |
static void |
main(String[] arg)
Read a NRRD image input format files and dump header.
|
public String magic
public int byte_offset_of_binary
public NRRDHeader(File inputFile) throws IOException, NRRDException
IOException
NRRDException
public com.pixelmed.convert.NRRDHeader.Type getType()
public int getSingleIntegerValueOrThrowException(String key) throws NRRDException, NumberFormatException
NRRDException
NumberFormatException
public int[] getArrayOfIntegerValueOrThrowException(String key) throws NRRDException, NumberFormatException
NRRDException
NumberFormatException
public static String[] getVectorTripleValuesFromString(String key, String valueString) throws NRRDException
NRRDException
public int getDimension() throws NRRDException, NumberFormatException
NRRDException
NumberFormatException
public int[] getSizes() throws NRRDException, NumberFormatException
NRRDException
NumberFormatException
public String getSpace()
public String[] getSpaceDirections()
public String[] getSpaceOrigin() throws NRRDException
NRRDException
public boolean isDataBigEndian()
public boolean isDataGZIPEncoded()
public String getDataFile()
public static void main(String[] arg)
Read a NRRD image input format files and dump header.
arg
- the inputFile,