From: David Sarrut Date: Fri, 4 Nov 2011 09:25:11 +0000 (+0100) Subject: Correct angle units X-Git-Tag: v1.3.0~174^2~9 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c84464b925114176d46e882f73a00c5c10d18ff1;p=clitk.git Correct angle units --- 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());