NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Namespaces | Enumerations | Functions
itkMIDASHelper.h File Reference

Provides useful utility functions that could be used in multiple ITK filters. More...

Include dependency graph for itkMIDASHelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 itk
 

Enumerations

enum  itk::Orientation { itk::ORIENTATION_AXIAL = 0, itk::ORIENTATION_SAGITTAL = 1, itk::ORIENTATION_CORONAL = 2, itk::ORIENTATION_UNKNOWN = -1 }
 

Functions

template<class TImage >
NIFTKITK_WINEXPORT ITK_EXPORT void itk::LimitMaskByRegion (TImage *mask, typename TImage::RegionType &region, typename TImage::PixelType outValue)
 Used to mask an image within a region. More...
 
template<typename TPixel , unsigned int VImageDimension>
NIFTKITK_WINEXPORT ITK_EXPORT void itk::GetVolumeFromITKImage (const itk::Image< TPixel, VImageDimension > *itkImage, double &imageVolume)
 Returns the volume (number of voxels * voxel volume), of the number of voxels above zero. More...
 
template<unsigned int VImageDimension>
NIFTKITK_WINEXPORT ITK_EXPORT void itk::GetOrientationString (const itk::Matrix< double, VImageDimension, VImageDimension > &directionMatrix, std::string &orientationString)
 Gets the orientation string from direction cosines, but only works for 3D. More...
 
int itk::GetAxisFromOrientationString (const std::string &orientationString, const itk::Orientation &orientation)
 Works out the axis of interest from the orientationString (normally derived from direction cosines), and the requested orientation. More...
 
int itk::GetUpDirection (const std::string &orientationString, const int &axisOfInterest)
 Returns either +1, or -1 to indicate in which direction you should change the slice number to go "up". More...
 
std::string itk::GetMajorAxisFromPatientRelativeDirectionCosine (double x, double y, double z)
 Returns the orientation string based on the the major axis. More...
 
template<typename TPixel , unsigned int VImageDimension>
NIFTKITK_WINEXPORT ITK_EXPORT void itk::GetOrientationStringFromITKImage (const itk::Image< TPixel, VImageDimension > *itkImage, std::string &orientationString)
 Gets the orientation string for a 3D image. More...
 
template<typename TPixel , unsigned int VImageDimension>
NIFTKITK_WINEXPORT ITK_EXPORT void itk::GetAxisFromITKImage (const itk::Image< TPixel, VImageDimension > *itkImage, const itk::Orientation orientation, int &outputAxis)
 Returns the axis [0=x, 1=y, 2=z, -1=UNKNOWN] corresponding to the specified orientation for the given image. More...
 
template<typename TPixel , unsigned int VImageDimension>
NIFTKITK_WINEXPORT ITK_EXPORT void itk::GetUpDirectionFromITKImage (const itk::Image< TPixel, VImageDimension > *itkImage, const itk::Orientation orientation, int &upDirection)
 Returns +1 or -1 (or 0 if unknown) to indicate which way from the centre of the volume is considered "Up", which means anterior in coronal view, superior in axial view and right in sagittal view. More...
 
template<typename TPixel , unsigned int VImageDimension>
NIFTKITK_WINEXPORT ITK_EXPORT void itk::GetOrientationLabelFromITKImage (const itk::Image< TPixel, VImageDimension > *itkImage, std::string &label)
 Get Image Orientation Label (Axial/Coronal/Sagittal) based on Direction Cosines of the input image. More...
 

Detailed Description

Provides useful utility functions that could be used in multiple ITK filters.