projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f21890
)
removed y-axis inversion in drawKeypoints (FeatureDetector has to do this)
author
Maria Dimashova
<no@email>
Mon, 2 Jul 2012 12:04:00 +0000
(12:04 +0000)
committer
Maria Dimashova
<no@email>
Mon, 2 Jul 2012 12:04:00 +0000
(12:04 +0000)
modules/features2d/src/draw.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/draw.cpp
b/modules/features2d/src/draw.cpp
index
c123526
..
4c93271
100755
(executable)
--- a/
modules/features2d/src/draw.cpp
+++ b/
modules/features2d/src/draw.cpp
@@
-68,8
+68,8
@@
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 ) // "-" to invert orientation of axis y
+ Point orient( cvRound(cos(srcAngleRad)*radius ),
+ cvRound(
sin(srcAngleRad)*radius )
);
line( img, center, center+orient, color, 1, CV_AA, draw_shift_bits );
}