added docs

This commit is contained in:
AoD314 2013-03-07 18:55:30 +04:00
parent eb012a5993
commit 9680176fa9

View File

@ -98,6 +98,8 @@ The function ``imread`` loads an image from the specified file and returns it. I
* Portable Network Graphics - ``*.png`` (see the *Notes* section)
* WebP - ``*.webp`` (see the *Notes* section)
* Portable image format - ``*.pbm, *.pgm, *.ppm`` (always supported)
* Sun rasters - ``*.sr, *.ras`` (always supported)
@ -134,6 +136,9 @@ Saves an image to a specified file.
* For JPEG, it can be a quality ( ``CV_IMWRITE_JPEG_QUALITY`` ) from 0 to 100 (the higher is the better). Default value is 95.
* For WEBP, it can be a quality ( CV_IMWRITE_WEBP_QUALITY ) from 1 to 100 (the higher is the better).
By default (without any parameter) and for quality above 100 the lossless compression is used.
* For PNG, it can be the compression level ( ``CV_IMWRITE_PNG_COMPRESSION`` ) from 0 to 9. A higher value means a smaller size and longer compression time. Default value is 3.
* For PPM, PGM, or PBM, it can be a binary format flag ( ``CV_IMWRITE_PXM_BINARY`` ), 0 or 1. Default value is 1.