mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 12:55:15 +08:00
Draw keylines in random color by default as documentation depicts
This commit is contained in:
@@ -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 ) );
|
||||
|
Reference in New Issue
Block a user