use float for CV_PI

This commit is contained in:
Dominik Kleiser 2015-12-02 17:33:40 +01:00
parent c7cb028035
commit 0c471515fd
2 changed files with 2 additions and 2 deletions

View File

@ -839,7 +839,7 @@ void AKAZEFeatures::Compute_Main_Orientation(KeyPoint& kpt, const std::vector<TE
if (sumX*sumX + sumY*sumY > max) {
// store largest orientation
max = sumX*sumX + sumY*sumY;
kpt.angle = getAngle(sumX, sumY) * 180.f / CV_PI;
kpt.angle = getAngle(sumX, sumY) * 180.f / static_cast<float>(CV_PI);
}
}
}

View File

@ -638,7 +638,7 @@ void KAZEFeatures::Compute_Main_Orientation(KeyPoint &kpt, const std::vector<TEv
if (sumX*sumX + sumY*sumY > max) {
// store largest orientation
max = sumX*sumX + sumY*sumY;
kpt.angle = getAngle(sumX, sumY) * 180.f / CV_PI;
kpt.angle = getAngle(sumX, sumY) * 180.f / static_cast<float>(CV_PI);
}
}
}