15 #ifndef niftkImageOrientationUtils_h
16 #define niftkImageOrientationUtils_h
18 #include "niftkCoreExports.h"
19 #include <mitkImage.h>
78 template<
typename TPixel,
unsigned int VImageDimension>
99 template<
typename TPixel,
unsigned int VImageDimension>
118 template<
typename TPixel,
unsigned int VImageDimension>
137 template<
typename TPixel,
unsigned int VImageDimension>
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "niftkImageOrientationUtils.txx"
std::string GetOrientationString(const mitk::Image *image)
Returns the Orientation String (RPI, RAS etc).
Definition: niftkImageOrientationUtils.cxx:179
ImageOrientation GetMitkOrientation(itk::Orientation orientation)
Converts an ITK orientation enum to an MITK orientation enum, and ideally these types should be merge...
Definition: niftkImageOrientationUtils.cxx:45
std::string GetOrientationName(ImageOrientation orientation)
Returns the name of the given orientation.
Definition: niftkImageOrientationUtils.cxx:67
ImageOrientation
Describes the different types of orientation, axial, sagittal, coronal, that can be achieved in the D...
Definition: niftkImageOrientation.h:26
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
Orientation
Definition: itkMIDASHelper.h:35
int GetThroughPlaneAxis(const mitk::Image *image, ImageOrientation orientation)
Returns either -1 (unknown), or [0,1,2] for the x, y, or z axis corresponding to the through plane di...
Definition: niftkImageOrientationUtils.cxx:150
void GetExtentsInMmInWorldCoordinateOrder(const mitk::Image *mitkImage, mitk::Vector3D &extentsInMmInWorldCoordinateOrder)
Gets the extents of the image in millimetres in world coordinate order.
Definition: niftkImageOrientationUtils.cxx:242
void GetSpacingInWorldCoordinateOrder(const mitk::Image *mitkImage, mitk::Vector3D &spacingInWorldCoordinateOrder)
Gets the spacing of the image in world coordinate order.
Definition: niftkImageOrientationUtils.cxx:216
itk::Orientation GetItkOrientation(ImageOrientation orientation)
Converts an MITK orientation enum to an ITK orientation enum, and ideally these types should be merge...
Definition: niftkImageOrientationUtils.cxx:23
Provides useful utility functions that could be used in multiple ITK filters.
int GetUpDirection(const mitk::BaseGeometry *geometry, itk::Orientation orientation)
Returns either +1, or -1 to indicate in which direction you should change the slice number to go "up"...
Definition: niftkImageOrientationUtils.cxx:78
void GetExtentsInVxInWorldCoordinateOrder(const mitk::Image *mitkImage, mitk::Vector3D &extentsInVxInWorldCoordinateOrder)
Gets the extents (number of voxels) of the image in world coordinate order.
Definition: niftkImageOrientationUtils.cxx:229
void GetAxesInWorldCoordinateOrder(const mitk::Image *mitkImage, int axesInWorldCoordinateOrder[3])
Converts between voxel coordinate order and world coordinate order. The function writes the axes of t...
Definition: niftkImageOrientationUtils.cxx:207
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194