Fix the unit of angle for AKaze/Kaze KeyPoints

Convert the return value of getAngle from radian to degrees.
This commit is contained in:
Dominik Kleiser 2015-12-02 11:51:37 +01:00
parent 38bbfe0bb8
commit 767bae44ae
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);
kpt.angle = getAngle(sumX, sumY) * 180. / 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);
kpt.angle = getAngle(sumX, sumY) * 180. / CV_PI;
}
}
}