28#ifndef itkSpatialOrientationAdapter_h
29#define itkSpatialOrientationAdapter_h
42Max3(
double x,
double y,
double z)
44 constexpr double obliquityThresholdCosineValue = 0.001;
50 if ((absX > obliquityThresholdCosineValue) && (absX > absY) && (absX > absZ))
54 else if ((absY > obliquityThresholdCosineValue) && (absY > absX) && (absY > absZ))
58 else if ((absZ > obliquityThresholdCosineValue) && (absZ > absX) && (absZ > absY))
Converts SpatialOrientationEnums to/from direction cosines.
typename ImageType::DirectionType DirectionType
SpatialOrientationAdapter()=default
DirectionType ToDirectionCosines(const OrientationType &Or)
OrientationType FromDirectionCosines(const DirectionType &Dir)
ValidCoordinateOrientations
unsigned Max3(double x, double y, double z)
ImageBaseType::DirectionType DirectionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....