1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Fixing all wrong uses of RGB channels instead of the OpenCV BGR standard

This commit is contained in:
StevenPuttemans
2015-04-30 10:51:16 +02:00
parent 5c12c92243
commit f4eebc46b2
16 changed files with 31 additions and 31 deletions
@@ -68,7 +68,7 @@ Now we call the :imread:`imread <>` function which loads the image name specifie
+ CV_LOAD_IMAGE_UNCHANGED (<0) loads the image as is (including the alpha channel if present)
+ CV_LOAD_IMAGE_GRAYSCALE ( 0) loads the image as an intensity one
+ CV_LOAD_IMAGE_COLOR (>0) loads the image in the RGB format
+ CV_LOAD_IMAGE_COLOR (>0) loads the image in the BGR format
.. literalinclude:: ../../../../samples/cpp/tutorial_code/introduction/display_image/display_image.cpp
:language: cpp
@@ -63,7 +63,7 @@ Here it is:
Explanation
============
#. We begin by loading an image using :readwriteimagevideo:`imread <imread>`, located in the path given by *imageName*. For this example, assume you are loading a RGB image.
#. We begin by loading an image using :readwriteimagevideo:`imread <imread>`, located in the path given by *imageName*. For this example, assume you are loading a BGR image.
#. Now we are going to convert our image from BGR to Grayscale format. OpenCV has a really nice function to do this kind of transformations: