made imread description slightly better #2406

This commit is contained in:
Kirill Kornyakov 2012-10-15 15:23:38 +04:00
parent 5b2271c6fb
commit aedf56404e
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ The description here was tested on Windows 7 SP1. Nevertheless, it should also w
Installation by Using the Pre-built Libraries
=============================================
#. Launch a web browser of choice and go to our `page on Sourceforge <http://sourceforge.net/projects/opencvlibrary/files/opencv-win/>`_
#. Launch a web browser of choice and go to our `page on Sourceforge <http://sourceforge.net/projects/opencvlibrary/files/opencv-win/>`_.
#. Choose a build you want to use and download it.

View File

@ -81,12 +81,12 @@ Loads an image from a file.
CV_LOAD_IMAGE_GRAYSCALE
* **>0** Return a 3-channel color image
* **>0** Return a 3-channel color image.
.. note:: In the current implementation the alpha channel, if any, is stripped from the output image. Use negative value if you need the alpha channel.
* **=0** Return a grayscale image
* **=0** Return a grayscale image.
* **<0** Return the loaded image as is.
.. note:: In the current implementation the alpha channel, if any, is stripped from the output image.
* **<0** Return the loaded image as is (with alpha channel).
The function ``imread`` loads an image from the specified file and returns it. If the image cannot be read (because of missing file, improper permissions, unsupported or invalid format), the function returns an empty matrix ( ``Mat::data==NULL`` ). Currently, the following file formats are supported: