From 8bba30548786d44792bf53eddb32679702362bb7 Mon Sep 17 00:00:00 2001 From: abidrahmank Date: Wed, 6 Nov 2013 10:22:08 +0530 Subject: [PATCH] small correction in Py tutorials --- .../py_gui/py_image_display/py_image_display.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/py_tutorials/py_gui/py_image_display/py_image_display.rst b/doc/py_tutorials/py_gui/py_image_display/py_image_display.rst index 0f1b35ae8a..75f674a503 100644 --- a/doc/py_tutorials/py_gui/py_image_display/py_image_display.rst +++ b/doc/py_tutorials/py_gui/py_image_display/py_image_display.rst @@ -22,9 +22,9 @@ Use the function **cv2.imread()** to read an image. The image should be in the w Second argument is a flag which specifies the way image should be read. -* cv2.CV_LOAD_IMAGE_COLOR : Loads a color image. Any transparency of image will be neglected. It is the default flag. -* cv2.CV_LOAD_IMAGE_GRAYSCALE : Loads image in grayscale mode -* cv2.CV_LOAD_IMAGE_UNCHANGED : Loads image as such including alpha channel +* cv2.IMREAD_COLOR : Loads a color image. Any transparency of image will be neglected. It is the default flag. +* cv2.IMREAD_GRAYSCALE : Loads image in grayscale mode +* cv2.IMREAD_UNCHANGED : Loads image as such including alpha channel .. note:: Instead of these three flags, you can simply pass integers 1, 0 or -1 respectively.