Fixed bug in KAZE features orientation.

Bug was added in f6ceeaa commit, different angle computation functions have different parameter order.
This commit is contained in:
vasiliev-vb 2018-03-13 15:09:36 +00:00 committed by GitHub
parent 7e9578789b
commit 94c8e59bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,7 +606,7 @@ void KAZEFeatures::Compute_Main_Orientation(KeyPoint &kpt, const std::vector<TEv
resY[idx] = 0.0;
}
Ang[idx] = fastAtan2(resX[idx], resY[idx]) * (float)(CV_PI / 180.0f);
Ang[idx] = fastAtan2(resY[idx], resX[idx]) * (float)(CV_PI / 180.0f);
++idx;
}
}
@ -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 = fastAtan2(sumX, sumY);
kpt.angle = fastAtan2(sumY, sumX);
}
}
}