提交 8a613758 编写于 作者: M Maria Dimashova

fixed drawKeypoints (keypoint orientation)

上级 9c2efd6c
......@@ -67,8 +67,9 @@ static inline void _drawKeypoint( Mat& img, const KeyPoint& p, const Scalar& col
if( p.angle != -1 )
{
float srcAngleRad = p.angle*(float)CV_PI/180.f;
Point orient(cvRound(cos(srcAngleRad)*radius),
cvRound(sin(srcAngleRad)*radius));
Point orient( cvRound( cos(srcAngleRad)*radius ),
cvRound(-sin(srcAngleRad)*radius ) // "-" to invert orientation of axis y
);
line( img, center, center+orient, color, 1, CV_AA, draw_shift_bits );
}
#if 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册