Incorrect conversion format in example (CV_BGR2GREY) (Bugfix #2724)


Added by Andy Maloney about 12 years ago. Updated about 12 years ago.


Status:Done Start date:2013-01-21
Priority:Low Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:documentation
Target version:-
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:

Description

On the Operations with images page in the Visualizing images section (http://docs.opencv.org/doc/user_guide/ug_mat.html#visualizing-images), the following code may be found:

Mat img = imread("image.jpg");
Mat grey;
cvtColor(img, grey, CV_BGR2GREY);

CV_BGR2GREY is not a format - it should be CV_BGR2GRAY.


Associated revisions

Revision ed5d71b4
Added by Roman Donchenko almost 11 years ago

Merge pull request #2724 from znah:python_autowrap

History

Updated by Maria Dimashova about 12 years ago

Andy, thanks for the report! Can you please fix this problem and submit a pull request to OpenCV repo here https://github.com/Itseez/opencv. It's easy and it's also the fastest way to push your fixes/features to OpenCV.

Updated by Andy Maloney about 12 years ago

Done. Thanks!

Updated by Maria Dimashova about 12 years ago

  • Status changed from Open to Done

Also available in: Atom PDF