mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
use float for CV_PI
This commit is contained in:
parent
c7cb028035
commit
0c471515fd
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user