use floats for the calculation
This commit is contained in:
parent
767bae44ae
commit
c7cb028035
@ -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. / CV_PI;
|
||||
kpt.angle = getAngle(sumX, sumY) * 180.f / 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. / CV_PI;
|
||||
kpt.angle = getAngle(sumX, sumY) * 180.f / CV_PI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user