From 34cf8f702137742af8ba663c22228ebb55b421cc Mon Sep 17 00:00:00 2001 From: "Jan S. (Milania1)" Date: Sat, 26 Sep 2015 22:30:30 +0200 Subject: [PATCH] Draw keylines in random color by default as documentation depicts --- modules/line_descriptor/src/draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/line_descriptor/src/draw.cpp b/modules/line_descriptor/src/draw.cpp index bfd1680a2..1319c4767 100644 --- a/modules/line_descriptor/src/draw.cpp +++ b/modules/line_descriptor/src/draw.cpp @@ -166,7 +166,7 @@ void drawKeylines( const Mat& image, const std::vector& keylines, Mat& { /* decide lines' color */ Scalar lineColor; - if( color != Scalar::all( -1 ) ) + if( color == Scalar::all( -1 ) ) { int R = ( rand() % (int) ( 255 + 1 ) ); int G = ( rand() % (int) ( 255 + 1 ) );