]> Creatis software - clitk.git/blobdiff - itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx
Explicit units for Angle (rad or deg)
[clitk.git] / itk / clitkAddRelativePositionConstraintToLabelImageFilter.txx
index 1ea25f07837fb30ac31cb8224ac396ac64efa214..e25f98b829fa3c65ed497f5fb5ffd73de863a066 100644 (file)
@@ -179,7 +179,7 @@ GenerateInputRequestedRegion()
 template <class ImageType>
 void 
 clitk::AddRelativePositionConstraintToLabelImageFilter<ImageType>::
-AddAngles(double a, double b) 
+AddAnglesInRad(double a, double b) 
 {
   m_OrientationTypeString.push_back("Angle");
   m_OrientationType.push_back(Angle);
@@ -189,6 +189,17 @@ AddAngles(double a, double b)
 //--------------------------------------------------------------------
 
 
+//--------------------------------------------------------------------
+template <class ImageType>
+void 
+clitk::AddRelativePositionConstraintToLabelImageFilter<ImageType>::
+AddAnglesInDeg(double a, double b) 
+{
+  AddAnglesInRad(clitk::deg2rad(a), clitk::deg2rad(b));
+}
+//--------------------------------------------------------------------
+
+
 //--------------------------------------------------------------------
 template <class ImageType>
 void