Package com.pixelmed.convert
Class NRRDHeader
java.lang.Object
com.pixelmed.convert.NRRDHeader
A class for extracting NRRD image input format headers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
int
int
int[]
getSizes()
getSpace()
static String[]
getSpaceDelimitedValues
(String values) String[]
String[]
com.pixelmed.convert.NRRDHeader.Type
getType()
static String[]
getVectorTripleValuesFromString
(String key, String valueString) boolean
boolean
static void
Read a NRRD image input format files and dump header.
-
Field Details
-
magic
-
byte_offset_of_binary
public int byte_offset_of_binary -
fields
-
keys
-
-
Constructor Details
-
NRRDHeader
- Throws:
IOException
NRRDException
-
-
Method Details
-
getSpaceDelimitedValues
-
getType
public com.pixelmed.convert.NRRDHeader.Type getType() -
getSingleIntegerValueOrThrowException
public int getSingleIntegerValueOrThrowException(String key) throws NRRDException, NumberFormatException - Throws:
NRRDException
NumberFormatException
-
getArrayOfIntegerValueOrThrowException
public int[] getArrayOfIntegerValueOrThrowException(String key) throws NRRDException, NumberFormatException - Throws:
NRRDException
NumberFormatException
-
getVectorTripleValuesFromString
public static String[] getVectorTripleValuesFromString(String key, String valueString) throws NRRDException - Throws:
NRRDException
-
getDimension
- Throws:
NRRDException
NumberFormatException
-
getSizes
- Throws:
NRRDException
NumberFormatException
-
getSpace
-
getSpaceDirections
-
getSpaceOrigin
- Throws:
NRRDException
-
isDataBigEndian
public boolean isDataBigEndian() -
isDataGZIPEncoded
public boolean isDataGZIPEncoded() -
getDataFile
-
main
Read a NRRD image input format files and dump header.
- Parameters:
arg
- the inputFile,
-