]> Creatis software - clitk.git/commitdiff
Correct angle units
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 4 Nov 2011 09:25:11 +0000 (10:25 +0100)
committerDavid Sarrut <david.sarrut@gmail.com>
Fri, 4 Nov 2011 09:25:11 +0000 (10:25 +0100)
itk/clitkSliceBySliceRelativePositionFilter.txx

index c3361ca5090e24bfd4ae4766f5c1b7f6b02fd7a4..0df2987312797c94f34fb72365359fda82b4043a 100644 (file)
@@ -80,8 +80,8 @@ PrintOptions(std::ostream & os)
      << "BG value        = " << this->GetBackgroundValue() << std::endl;
   for(int i=0; i<this->GetNumberOfAngles(); i++) {
     os << "Orientation     = " << this->GetOrientationTypeString()[i] << std::endl;
-    os << "Angles     = " << clitk::rad2deg(this->GetAngle1(i)) 
-       << " " << clitk::rad2deg(this->GetAngle2(i)) << std::endl;
+    os << "Angles     = " << clitk::rad2deg(this->GetAngle1InRad(i)) 
+       << " " << clitk::rad2deg(this->GetAngle2InRad(i)) << std::endl;
   }
   os << "InverseOrientationFlag  = " << this->GetInverseOrientationFlag() << std::endl        
      << "SpacingFlag     = " << this->GetIntermediateSpacingFlag() << std::endl
@@ -265,7 +265,7 @@ GenerateOutputInformation()
         relPosFilter->SetInverseOrientationFlag(this->GetInverseOrientationFlag());
         for(int j=0; j<this->GetNumberOfAngles(); j++) {
           //          relPosFilter->AddOrientationTypeString(this->GetOrientationTypeString(j));
-          relPosFilter->AddAngles(this->GetAngle1(j), this->GetAngle2(j));
+          relPosFilter->AddAnglesInRad(this->GetAngle1InRad(j), this->GetAngle2InRad(j));
           // DD(this->GetOrientationTypeString(j));
         }
         // DD(this->GetInverseOrientationFlag());