Class FileMincDimElem

All Implemented Interfaces:
Serializable, Cloneable

public class FileMincDimElem extends ModelSerialCloneable
This class represents a MINC dimension element. As far as I can tell, MINC dimension elements are always descriptors of the three dimensions of the image file. Thus they contain a name and a length; the name is "xspace", "yspace", or "zspace", and the length is the size of that dimension. So an axial image that was 256x256 and had 34 slices would have "xspace" with length 256, "yspace" with length 256, and "zspace" with length 34. On the other hand, a coronal image with the same dimensions would have "xspace" with length 256, "yspace" with length 34, and "zspace" with length 256. This is because MINC always refers to the patient when assigning these dimension variables.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • length

      public int length
      DOCUMENT ME!
    • name

      public String name
      DOCUMENT ME!
  • Constructor Details

    • FileMincDimElem

      public FileMincDimElem(String name, int length)
      Constructor that creates a MINC dimension element with the given name and length.
      Parameters:
      name - Name of this dimension element (usually xspace, yspace, or zspace).
      length - Size of the dimension.
  • Method Details

    • clone

      public Object clone()
      Returns a new MincDimElem with the same values as this one.
      Overrides:
      clone in class ModelSerialCloneable
      Returns:
      The new MincDimElem element.
    • toString

      public String toString()
      Creates a readable version of this element; used in displayAboutInfo.
      Overrides:
      toString in class Object
      Returns:
      A string listing the name and length of this dimension element.