From 9680176fa9471290a562e9af353b806bb6aea663 Mon Sep 17 00:00:00 2001 From: AoD314 Date: Thu, 7 Mar 2013 18:55:30 +0400 Subject: [PATCH] added docs --- modules/highgui/doc/reading_and_writing_images_and_video.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/highgui/doc/reading_and_writing_images_and_video.rst b/modules/highgui/doc/reading_and_writing_images_and_video.rst index b0ae2d8b9a..d1829a01d0 100644 --- a/modules/highgui/doc/reading_and_writing_images_and_video.rst +++ b/modules/highgui/doc/reading_and_writing_images_and_video.rst @@ -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.