|
|
@ -606,7 +606,7 @@ void KAZEFeatures::Compute_Main_Orientation(KeyPoint &kpt, const std::vector<TEv |
|
|
|
resY[idx] = 0.0; |
|
|
|
resY[idx] = 0.0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Ang[idx] = getAngle(resX[idx], resY[idx]); |
|
|
|
Ang[idx] = fastAtan2(resX[idx], resY[idx]) * (float)(CV_PI / 180.0f); |
|
|
|
++idx; |
|
|
|
++idx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -638,7 +638,7 @@ void KAZEFeatures::Compute_Main_Orientation(KeyPoint &kpt, const std::vector<TEv |
|
|
|
if (sumX*sumX + sumY*sumY > max) { |
|
|
|
if (sumX*sumX + sumY*sumY > max) { |
|
|
|
// store largest orientation
|
|
|
|
// store largest orientation
|
|
|
|
max = sumX*sumX + sumY*sumY; |
|
|
|
max = sumX*sumX + sumY*sumY; |
|
|
|
kpt.angle = getAngle(sumX, sumY) * 180.f / static_cast<float>(CV_PI); |
|
|
|
kpt.angle = fastAtan2(sumX, sumY); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|