Skip to content

Commit cc06935

Browse files
committed
Merge pull request opencv#11065 from vasiliev-vb:BUGFIX_KAZE_orientation
2 parents f3a9f13 + 94c8e59 commit cc06935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/features2d/src/kaze/KAZEFeatures.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ void KAZEFeatures::Compute_Main_Orientation(KeyPoint &kpt, const std::vector<TEv
606606
resY[idx] = 0.0;
607607
}
608608

609-
Ang[idx] = fastAtan2(resX[idx], resY[idx]) * (float)(CV_PI / 180.0f);
609+
Ang[idx] = fastAtan2(resY[idx], resX[idx]) * (float)(CV_PI / 180.0f);
610610
++idx;
611611
}
612612
}
@@ -638,7 +638,7 @@ void KAZEFeatures::Compute_Main_Orientation(KeyPoint &kpt, const std::vector<TEv
638638
if (sumX*sumX + sumY*sumY > max) {
639639
// store largest orientation
640640
max = sumX*sumX + sumY*sumY;
641-
kpt.angle = fastAtan2(sumX, sumY);
641+
kpt.angle = fastAtan2(sumY, sumX);
642642
}
643643
}
644644
}

0 commit comments

Comments
 (0)