Class NRRDHeader


  • public class NRRDHeader
    extends java.lang.Object
    • Field Detail

      • magic

        public java.lang.String magic
      • byte_offset_of_binary

        public int byte_offset_of_binary
      • fields

        public java.util.Map<java.lang.String,​java.lang.String> fields
      • keys

        public java.util.Map<java.lang.String,​java.lang.String> keys
    • Constructor Detail

      • NRRDHeader

        public NRRDHeader​(java.io.File inputFile)
                   throws java.io.IOException,
                          NRRDException
        Throws:
        java.io.IOException
        NRRDException
    • Method Detail

      • getSpaceDelimitedValues

        public static java.lang.String[] getSpaceDelimitedValues​(java.lang.String values)
      • getType

        public com.pixelmed.convert.NRRDHeader.Type getType()
      • getSingleIntegerValueOrThrowException

        public int getSingleIntegerValueOrThrowException​(java.lang.String key)
                                                  throws NRRDException,
                                                         java.lang.NumberFormatException
        Throws:
        NRRDException
        java.lang.NumberFormatException
      • getArrayOfIntegerValueOrThrowException

        public int[] getArrayOfIntegerValueOrThrowException​(java.lang.String key)
                                                     throws NRRDException,
                                                            java.lang.NumberFormatException
        Throws:
        NRRDException
        java.lang.NumberFormatException
      • getVectorTripleValuesFromString

        public static java.lang.String[] getVectorTripleValuesFromString​(java.lang.String key,
                                                                         java.lang.String valueString)
                                                                  throws NRRDException
        Throws:
        NRRDException
      • getDimension

        public int getDimension()
                         throws NRRDException,
                                java.lang.NumberFormatException
        Throws:
        NRRDException
        java.lang.NumberFormatException
      • getSizes

        public int[] getSizes()
                       throws NRRDException,
                              java.lang.NumberFormatException
        Throws:
        NRRDException
        java.lang.NumberFormatException
      • getSpace

        public java.lang.String getSpace()
      • getSpaceDirections

        public java.lang.String[] getSpaceDirections()
      • isDataBigEndian

        public boolean isDataBigEndian()
      • isDataGZIPEncoded

        public boolean isDataGZIPEncoded()
      • getDataFile

        public java.lang.String getDataFile()
      • main

        public static void main​(java.lang.String[] arg)

        Read a NRRD image input format files and dump header.

        Parameters:
        arg - the inputFile,