Class DICOMOrientImageFilter


public class DICOMOrientImageFilter extends ImageFilter
Permute axes and flip images as needed to obtain an approximation to the desired orientation. The physical location of all pixels in the image remains the same, but the meta-data and the ordering of the stored pixels may change. DICOMOrientImageFilter depends on a set of constants that describe all possible labels. Directions are labeled in terms of following pairs: Left and Right (Subject's left and right) Anterior and Posterior (Subject's front and back) Inferior and Superior (Subject's bottom and top, i.e. feet and head) The initials of these directions are used in a 3 letter code in the enumerated type OrientationEnum. The initials are given fastest moving index first, second fastest second, third fastest third, where the label's direction indicates increasing values. An ITK image with an identity direction cosine matrix is in LPS (Left, Posterior, Superior) orientation as defined by the DICOM standard. \\[ LPS = \\begin{Bmatrix} from\\ right\\ to\\ \\textbf{L}eft \\\\ from\\ anterior\\ towards\\ \\textbf{P}osterior \\\\ from\\ inferior\\ towards\\ \\textbf{S}uperior \\end{Bmatrix} \\] The output orientation is specified with SetDesiredCoordinateOrientation. The input coordinate orientation is computed from the input image's direction cosine matrix. See: itk::simple::DICOMOrient for the procedural interface itk::DICOMOrientImageFilter for the Doxygen on the original ITK class. C++ includes: sitkDICOMOrientImageFilter.h
  • Constructor Details

    • DICOMOrientImageFilter

      protected DICOMOrientImageFilter(long cPtr, boolean cMemoryOwn)
    • DICOMOrientImageFilter

      public DICOMOrientImageFilter()
      itk::simple::DICOMOrientImageFilter::DICOMOrientImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(DICOMOrientImageFilter obj)
    • swigRelease

      protected static long swigRelease(DICOMOrientImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::DICOMOrientImageFilter::~DICOMOrientImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • getOrientationFromDirectionCosines

      public static String getOrientationFromDirectionCosines(VectorDouble direction)
    • getDirectionCosinesFromOrientation

      public static VectorDouble getDirectionCosinesFromOrientation(String str)
    • setDesiredCoordinateOrientation

      public void setDesiredCoordinateOrientation(String DesiredCoordinateOrientation)
      Self& itk::simple::DICOMOrientImageFilter::SetDesiredCoordinateOrientation(std::string DesiredCoordinateOrientation) Set/Get the desired coordinate orientation for the output image
    • getDesiredCoordinateOrientation

      public String getDesiredCoordinateOrientation()
      std::string itk::simple::DICOMOrientImageFilter::GetDesiredCoordinateOrientation() const Set/Get the desired coordinate orientation for the output image
    • getFlipAxes

      public VectorBool getFlipAxes()
      std::vector<bool> itk::simple::DICOMOrientImageFilter::GetFlipAxes() const Get flip axes. This value is computed during Update. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getPermuteOrder

      public VectorUInt32 getPermuteOrder()
      std::vector<unsigned int> itk::simple::DICOMOrientImageFilter::GetPermuteOrder() const Get axes permute order. This value is computed during Update. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getName

      public String getName()
      std::string itk::simple::DICOMOrientImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::DICOMOrientImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1)
      Image itk::simple::DICOMOrientImageFilter::Execute(const Image &image1) Execute the filter on the input image