Class NIFTI2Header

All Implemented Interfaces:
Cloneable

public class NIFTI2Header extends NIFTIHeader
This class represents a multi-dimensional NIFTI-2 image header file. The header file may either:
  • contain all the dimensional and descriptive information about a NIFTI-2 image, but none of the pixel data. This is like the Analyze 7.5 .img/.hdr file format.
  • contain both the dimensional and descriptive information about a NIFTI-2 image, and also the pixel data.
  • Method Details

    • getHeaderSize

      protected int getHeaderSize()
      Description copied from class: NIFTIHeader
      Returns the size of this NIFTI (NIFTI-1 or NIFTI-2) header.
      Overrides:
      getHeaderSize in class NIFTIHeader
      Returns:
      the size of this NIFTI header.
    • setNCols

      public void setNCols(int nc)
      Sets the number of columns in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values in a NIFTI2Image, then manipulating the number of columns in this way will cause errors.
      Parameters:
      nc - the number of columns.
    • setNRows

      public void setNRows(int nr)
      Sets the number of rows in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values in a NIFTI2Image, then manipulating the number of rows in this way will cause errors.
      Parameters:
      nr - the number of rows.
    • setNSlices

      public void setNSlices(int ns)
      Sets the number of slices in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values into a NIFTI2Image, then manipulating the number of slices in this way will cause errors.
      Parameters:
      ns - the number of slices.
    • setNFrames

      public void setNFrames(int nF)
      Sets the number of frames in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values in a NIFTI2Image, then manipulating the number of frames in this way will cause errors.
      Parameters:
      nF - the number of frames.