Package org.itk.simple
Class DICOMOrientImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.DICOMOrientImageFilter
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
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::DICOMOrientImageFilter::DICOMOrientImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
DICOMOrientImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::DICOMOrientImageFilter::~DICOMOrientImageFilter() DestructorImage itk::simple::DICOMOrientImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
protected static long
std::string itk::simple::DICOMOrientImageFilter::GetDesiredCoordinateOrientation() const Set/Get the desired coordinate orientation for the output imagestatic VectorDouble
std::vector<bool> itk::simple::DICOMOrientImageFilter::GetFlipAxes() const Get flip axes.getName()
std::string itk::simple::DICOMOrientImageFilter::GetName() const Name of this classstatic String
getOrientationFromDirectionCosines
(VectorDouble direction) std::vector<unsigned int> itk::simple::DICOMOrientImageFilter::GetPermuteOrder() const Get axes permute order.void
setDesiredCoordinateOrientation
(String DesiredCoordinateOrientation) Self& itk::simple::DICOMOrientImageFilter::SetDesiredCoordinateOrientation(std::string DesiredCoordinateOrientation) Set/Get the desired coordinate orientation for the output imageprotected static long
toString()
std::string itk::simple::DICOMOrientImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::DICOMOrientImageFilter::~DICOMOrientImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
getOrientationFromDirectionCosines
-
getDirectionCosinesFromOrientation
-
setDesiredCoordinateOrientation
Self& itk::simple::DICOMOrientImageFilter::SetDesiredCoordinateOrientation(std::string DesiredCoordinateOrientation) Set/Get the desired coordinate orientation for the output image -
getDesiredCoordinateOrientation
std::string itk::simple::DICOMOrientImageFilter::GetDesiredCoordinateOrientation() const Set/Get the desired coordinate orientation for the output image -
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
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
std::string itk::simple::DICOMOrientImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::DICOMOrientImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::DICOMOrientImageFilter::Execute(const Image &image1) Execute the filter on the input image
-