com.pixelmed.convert
Class NRRDHeader
java.lang.Object
com.pixelmed.convert.NRRDHeader
public class NRRDHeader
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
magic
public String magic
byte_offset_of_binary
public int byte_offset_of_binary
fields
public Map<String,String> fields
keys
public Map<String,String> keys
NRRDHeader
public NRRDHeader(File inputFile)
throws IOException,
NRRDException
- Throws:
IOException
NRRDException
getSpaceDelimitedValues
public static String[] getSpaceDelimitedValues(String values)
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
public int getDimension()
throws NRRDException,
NumberFormatException
- Throws:
NRRDException
NumberFormatException
getSizes
public int[] getSizes()
throws NRRDException,
NumberFormatException
- Throws:
NRRDException
NumberFormatException
getSpace
public String getSpace()
getSpaceDirections
public String[] getSpaceDirections()
getSpaceOrigin
public String[] getSpaceOrigin()
throws NRRDException
- Throws:
NRRDException
isDataBigEndian
public boolean isDataBigEndian()
isDataGZIPEncoded
public boolean isDataGZIPEncoded()
getDataFile
public String getDataFile()
main
public static void main(String[] arg)
Read a NRRD image input format files and dump header.
- Parameters:
arg - the inputFile,