NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Some utilities to help with MIDAS conventions on orientation. More...
Go to the source code of this file.
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::Image *image, ImageOrientation orientation) |
See GetUpDirection as in effect, we are only using the direction cosines from the geometry. 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::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... | |
template<typename TPixel , unsigned int VImageDimension> | |
NIFTKCORE_EXPORT void | niftk::GetAxesInWorldCoordinateOrder (const itk::Image< TPixel, VImageDimension > *itkImage, 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::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... | |
template<typename TPixel , unsigned int VImageDimension> | |
NIFTKCORE_EXPORT void | niftk::GetSpacingInWorldCoordinateOrder (const itk::Image< TPixel, VImageDimension > *itkImage, mitk::Vector3D &spacing) |
Gets the spacing of the image in world coordinate order. More... | |
void | niftk::GetSpacingInWorldCoordinateOrder (const mitk::Image *mitkImage, mitk::Vector3D &spacing) |
Gets the spacing of the image in world coordinate order. More... | |
template<typename TPixel , unsigned int VImageDimension> | |
NIFTKCORE_EXPORT void | niftk::GetExtentsInVxInWorldCoordinateOrder (const itk::Image< TPixel, VImageDimension > *itkImage, mitk::Vector3D &extentsInVx) |
Gets the extents (number of voxels) 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... | |
template<typename TPixel , unsigned int VImageDimension> | |
NIFTKCORE_EXPORT void | niftk::GetExtentsInMmInWorldCoordinateOrder (const itk::Image< TPixel, VImageDimension > *itkImage, mitk::Vector3D &extentsInMm) |
Gets the extents of the image in millimetres 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... | |
Some utilities to help with MIDAS conventions on orientation.