|
|
@ -69,7 +69,7 @@ static inline void _drawKeypoint( Mat& img, const KeyPoint& p, const Scalar& col |
|
|
|
{ |
|
|
|
{ |
|
|
|
float srcAngleRad = p.angle*(float)CV_PI/180.f; |
|
|
|
float srcAngleRad = p.angle*(float)CV_PI/180.f; |
|
|
|
Point orient( cvRound(cos(srcAngleRad)*radius ), |
|
|
|
Point orient( cvRound(cos(srcAngleRad)*radius ), |
|
|
|
cvRound(-sin(srcAngleRad)*radius ) // "-" to invert orientation of axis y
|
|
|
|
cvRound(sin(srcAngleRad)*radius ) |
|
|
|
); |
|
|
|
); |
|
|
|
line( img, center, center+orient, color, 1, CV_AA, draw_shift_bits ); |
|
|
|
line( img, center, center+orient, color, 1, CV_AA, draw_shift_bits ); |
|
|
|
} |
|
|
|
} |
|
|
|