1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

fixing all RGB instances to BGR where needed

This commit is contained in:
StevenPuttemans
2015-04-30 11:27:58 +02:00
parent 07e07655d4
commit 34dacdea32
14 changed files with 23 additions and 23 deletions
@@ -104,13 +104,13 @@ Explanation
-----------
-# Let's check the general structure of the program:
- Load an image. If it is RGB we convert it to Grayscale. For this, remember that we can use
- Load an image. If it is BGR we convert it to Grayscale. For this, remember that we can use
the function @ref cv::cvtColor :
@code{.cpp}
src = imread( argv[1], 1 );
/// Convert the image to Gray
cvtColor( src, src_gray, COLOR_RGB2GRAY );
cvtColor( src, src_gray, COLOR_BGR2GRAY );
@endcode
- Create a window to display the result
@code{.cpp}