Merge pull request #5735 from Astero92:angle_unit

This commit is contained in:
Vadim Pisarevsky 2015-12-08 10:35:13 +00:00
commit ffe0631518
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.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);
kpt.angle = getAngle(sumX, sumY) * 180.f / static_cast<float>(CV_PI);
}
}
}