Commit 69e2813c authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #388 from Milania1:random_color_drawKeylines

parents 2de6ff57 34cf8f70
...@@ -166,7 +166,7 @@ void drawKeylines( const Mat& image, const std::vector<KeyLine>& keylines, Mat& ...@@ -166,7 +166,7 @@ void drawKeylines( const Mat& image, const std::vector<KeyLine>& keylines, Mat&
{ {
/* decide lines' color */ /* decide lines' color */
Scalar lineColor; Scalar lineColor;
if( color != Scalar::all( -1 ) ) if( color == Scalar::all( -1 ) )
{ {
int R = ( rand() % (int) ( 255 + 1 ) ); int R = ( rand() % (int) ( 255 + 1 ) );
int G = ( rand() % (int) ( 255 + 1 ) ); int G = ( rand() % (int) ( 255 + 1 ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment