fixed SURf according to clockwise descriptor convention

This commit is contained in:
marina.kolpakova
2012-07-25 13:08:05 +04:00
parent fdfa402428
commit 4fa282e1a9
3 changed files with 11 additions and 3 deletions

View File

@@ -500,7 +500,7 @@ void SIFT::findScaleSpaceExtrema( const vector<Mat>& gauss_pyr, const vector<Mat
bin = bin < 0 ? n + bin : bin >= n ? bin - n : bin;
kpt.angle = 360.f - (float)((360.f/n) * bin);
if(std::abs(kpt.angle - 360.f) < FLT_EPSILON)
kpt.angle = 0.f;
kpt.angle = 0.f;
keypoints.push_back(kpt);
}
}