Draw keylines in random color by default as documentation depicts

pull/388/head
Jan S. (Milania1) 10 years ago
parent 2de6ff576c
commit 34cf8f7021
  1. 2
      modules/line_descriptor/src/draw.cpp

@ -166,7 +166,7 @@ void drawKeylines( const Mat& image, const std::vector<KeyLine>& 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 ) );

Loading…
Cancel
Save