From c84464b925114176d46e882f73a00c5c10d18ff1 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 4 Nov 2011 10:25:11 +0100 Subject: [PATCH] Correct angle units --- itk/clitkSliceBySliceRelativePositionFilter.txx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/itk/clitkSliceBySliceRelativePositionFilter.txx b/itk/clitkSliceBySliceRelativePositionFilter.txx index c3361ca..0df2987 100644 --- a/itk/clitkSliceBySliceRelativePositionFilter.txx +++ b/itk/clitkSliceBySliceRelativePositionFilter.txx @@ -80,8 +80,8 @@ PrintOptions(std::ostream & os) << "BG value = " << this->GetBackgroundValue() << std::endl; for(int i=0; iGetNumberOfAngles(); 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; jGetNumberOfAngles(); 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()); -- 2.45.1