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[]intintint[]getSizes()getSpace()static String[]getSpaceDelimitedValues(String values) String[]String[]com.pixelmed.convert.NRRDHeader.TypegetType()static String[]getVectorTripleValuesFromString(String key, String valueString) booleanbooleanstatic voidRead 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:
IOExceptionNRRDException
-
-
Method Details
-
getSpaceDelimitedValues
-
getType
public com.pixelmed.convert.NRRDHeader.Type getType() -
getSingleIntegerValueOrThrowException
public int getSingleIntegerValueOrThrowException(String key) throws NRRDException, NumberFormatException - Throws:
NRRDExceptionNumberFormatException
-
getArrayOfIntegerValueOrThrowException
public int[] getArrayOfIntegerValueOrThrowException(String key) throws NRRDException, NumberFormatException - Throws:
NRRDExceptionNumberFormatException
-
getVectorTripleValuesFromString
public static String[] getVectorTripleValuesFromString(String key, String valueString) throws NRRDException - Throws:
NRRDException
-
getDimension
- Throws:
NRRDExceptionNumberFormatException
-
getSizes
- Throws:
NRRDExceptionNumberFormatException
-
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,
-