Class GeometryOfVolumeFromAttributeList

java.lang.Object
com.pixelmed.geometry.GeometryOfVolume
com.pixelmed.dicom.GeometryOfVolumeFromAttributeList

public class GeometryOfVolumeFromAttributeList extends GeometryOfVolume

A class to extract and describe the spatial geometry of an entire volume of contiguous cross-sectional image slices, given a list of DICOM attributes.

  • Constructor Details

    • GeometryOfVolumeFromAttributeList

      public GeometryOfVolumeFromAttributeList(AttributeList list, int[] subsetOfFrames) throws DicomException

      Construct the geometry from the Per-frame and Shared Functional Group Sequences of a subset of frames of a multi-frame object, or from the Image Plane Module and related attributes, if there is only a single frame of a non-multi-frame object.

      Parameters:
      list - the list of DICOM attributes
      subsetOfFrames - the subset of frames to include or null if entire set
      Throws:
      DicomException - if error in DICOM encoding
    • GeometryOfVolumeFromAttributeList

      public GeometryOfVolumeFromAttributeList(AttributeList list) throws DicomException

      Construct the geometry from the Per-frame and Shared Functional Group Sequences of a multi-frame object, or from the Image Plane Module and related attributes, if there is only a single frame of a non-multi-frame object.

      Parameters:
      list - the list of DICOM attributes
      Throws:
      DicomException - if error in DICOM encoding
  • Method Details

    • getImageOrientationPatientFromAttributeList

      public static double[] getImageOrientationPatientFromAttributeList(AttributeList list)

      Retrieve the ImageOrientationPatient values if the same for all frames or a single frame conventional object.

      Parameters:
      list - the top level attribute list for the object
      Returns:
      a double array of six values, or null if not present or not shared