NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Namespaces | Functions
niftkImageOrientationUtils.cxx File Reference
Include dependency graph for niftkImageOrientationUtils.cxx:

Namespaces

 niftk
 

Functions

itk::Orientation niftk::GetItkOrientation (ImageOrientation orientation)
 Converts an MITK orientation enum to an ITK orientation enum, and ideally these types should be merged. More...
 
ImageOrientation niftk::GetMitkOrientation (itk::Orientation orientation)
 Converts an ITK orientation enum to an MITK orientation enum, and ideally these types should be merged. More...
 
std::string niftk::GetOrientationName (ImageOrientation orientation)
 Returns the name of the given orientation. More...
 
int niftk::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". More...
 
int niftk::GetUpDirection (const mitk::Image *image, ImageOrientation orientation)
 See GetUpDirection as in effect, we are only using the direction cosines from the geometry. More...
 
int niftk::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 direction for the specified orientation. More...
 
std::string niftk::GetOrientationString (const mitk::Image *image)
 Returns the Orientation String (RPI, RAS etc). More...
 
void niftk::GetAxesInWorldCoordinateOrder (const mitk::Image *mitkImage, int axes[3])
 Converts between voxel coordinate order and world coordinate order. The function writes the axes of the sagittal, coronal and axial dimensions to axes, in this order: More...
 
void niftk::GetSpacingInWorldCoordinateOrder (const mitk::Image *mitkImage, mitk::Vector3D &spacing)
 Gets the spacing of the image in world coordinate order. More...
 
void niftk::GetExtentsInVxInWorldCoordinateOrder (const mitk::Image *mitkImage, mitk::Vector3D &extentsInVx)
 Gets the extents (number of voxels) of the image in world coordinate order. More...
 
void niftk::GetExtentsInMmInWorldCoordinateOrder (const mitk::Image *mitkImage, mitk::Vector3D &extentsInMm)
 Gets the extents of the image in millimetres in world coordinate order. More...