Merge pull request #388 from Milania1:random_color_drawKeylines

pull/324/head
Alexander Alekhin 9 years ago
commit 69e2813c39
  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