From af72e6b8f41695fbdcb88252443aed4ba66baa9c Mon Sep 17 00:00:00 2001 From: Niklas Frisk Date: Tue, 7 Oct 2014 09:40:56 +0200 Subject: [PATCH] Fixes #3910, flags in _prepareImgAndDrawKeypoints are now binary OR'ed instead of added. --- modules/features2d/src/draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/features2d/src/draw.cpp b/modules/features2d/src/draw.cpp index 144f71a264..5919f62d00 100644 --- a/modules/features2d/src/draw.cpp +++ b/modules/features2d/src/draw.cpp @@ -157,10 +157,10 @@ static void _prepareImgAndDrawKeypoints( const Mat& img1, const vector if( !(flags & DrawMatchesFlags::NOT_DRAW_SINGLE_POINTS) ) { Mat _outImg1 = outImg( Rect(0, 0, img1.cols, img1.rows) ); - drawKeypoints( _outImg1, keypoints1, _outImg1, singlePointColor, flags + DrawMatchesFlags::DRAW_OVER_OUTIMG ); + drawKeypoints( _outImg1, keypoints1, _outImg1, singlePointColor, flags | DrawMatchesFlags::DRAW_OVER_OUTIMG ); Mat _outImg2 = outImg( Rect(img1.cols, 0, img2.cols, img2.rows) ); - drawKeypoints( _outImg2, keypoints2, _outImg2, singlePointColor, flags + DrawMatchesFlags::DRAW_OVER_OUTIMG ); + drawKeypoints( _outImg2, keypoints2, _outImg2, singlePointColor, flags | DrawMatchesFlags::DRAW_OVER_OUTIMG ); } }