28 #ifndef itkSpatialOrientationAdapter_h
29 #define itkSpatialOrientationAdapter_h
41 inline unsigned Max3(
double x,
double y,
double z)
43 constexpr
double obliquityThresholdCosineValue = 0.001;
45 double absX = itk::Math::abs(x);
46 double absY = itk::Math::abs(y);
47 double absZ = itk::Math::abs(z);
49 if ( ( absX > obliquityThresholdCosineValue ) && ( absX > absY ) && ( absX > absZ ) )
53 else if ( ( absY > obliquityThresholdCosineValue ) && ( absY > absX ) && ( absY > absZ ) )
57 else if ( ( absZ > obliquityThresholdCosineValue ) && ( absZ > absX ) && ( absZ > absY ) )
80 public OrientationAdapterBase< SpatialOrientation::ValidCoordinateOrientationFlags, 3 >
86 using Superclass = OrientationAdapterBase< SpatialOrientation::ValidCoordinateOrientationFlags, 3 >;
104 #endif // itkSpatialOrientationAdapter_h
Superclass::DirectionType DirectionType
Converts SpatialOrientation flags to/from direction cosines.
unsigned Max3(double x, double y, double z)
ImageBaseType::DirectionType DirectionType
OrientationAdapterBase< SpatialOrientation::ValidCoordinateOrientationFlags, 3 > Superclass
ValidCoordinateOrientationFlags