Document imwrite depth fallback
authorSmirnov Egor <s.e.a.98@yandex.ru>
Wed, 12 May 2021 10:18:58 +0000 (13:18 +0300)
committerSmirnov Egor <s.e.a.98@yandex.ru>
Wed, 12 May 2021 16:55:58 +0000 (19:55 +0300)
modules/imgcodecs/include/opencv2/imgcodecs.hpp

index 7f6b24f0ffd999aea96c548f048b2cb976a3c041..41fcc79674c9aed28983ce11aedbfd6a1be1b9aa 100644 (file)
@@ -212,6 +212,8 @@ can be saved using this function, with these exceptions:
 should have alpha set to 0, fully opaque pixels should have alpha set to 255/65535 (see the code sample below).
 - Multiple images (vector of Mat) can be saved in TIFF format (see the code sample below).
 
+If the image format is not supported, the image will be converted to 8-bit unsigned (CV_8U) and saved that way.
+
 If the format, depth or channel order is different, use
 Mat::convertTo and cv::cvtColor to convert it before saving. Or, use the universal FileStorage I/O
 functions to save the image to XML or YAML format.