Updated documentation to new "COLOR_" format for color conversion enums.

This commit is contained in:
IanVS
2013-06-05 21:55:56 -04:00
parent 6e119049ce
commit 41fc41829c
5 changed files with 14 additions and 14 deletions

View File

@@ -210,7 +210,7 @@ The class provides C++ API for capturing video from cameras or for reading video
{
Mat frame;
cap >> frame; // get a new frame from camera
cvtColor(frame, edges, CV_BGR2GRAY);
cvtColor(frame, edges, COLOR_BGR2GRAY);
GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5);
Canny(edges, edges, 0, 30, 3);
imshow("edges", edges);