28 #ifndef itkSpatialOrientationAdapter_h
29 #define itkSpatialOrientationAdapter_h
42 Max3(
double x,
double y,
double z)
44 constexpr
double obliquityThresholdCosineValue = 0.001;
46 double absX = itk::Math::abs(x);
47 double absY = itk::Math::abs(y);
48 double absZ = itk::Math::abs(z);
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))
82 :
public OrientationAdapterBase<SpatialOrientation::ValidCoordinateOrientationFlags, 3>
88 using Superclass = OrientationAdapterBase<SpatialOrientation::ValidCoordinateOrientationFlags, 3>;
108 #endif // itkSpatialOrientationAdapter_h