Commit 34cf8f70 authored by Jan S. (Milania1)'s avatar Jan S. (Milania1)

Draw keylines in random color by default as documentation depicts

parent 2de6ff57
...@@ -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