From 201db16aa224507ecf58c47411c5c90e2c0f50e6 Mon Sep 17 00:00:00 2001 From: Parth Parekh Date: Sun, 7 Dec 2025 14:25:56 +0530 Subject: [PATCH] Document boolean return value of imwrite --- modules/imgcodecs/include/opencv2/imgcodecs.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/imgcodecs/include/opencv2/imgcodecs.hpp b/modules/imgcodecs/include/opencv2/imgcodecs.hpp index 7bb14f9c7e..bad9f006b5 100644 --- a/modules/imgcodecs/include/opencv2/imgcodecs.hpp +++ b/modules/imgcodecs/include/opencv2/imgcodecs.hpp @@ -556,6 +556,7 @@ It also demonstrates how to save multiple images in a TIFF file: @param filename Name of the file. @param img (Mat or vector of Mat) Image or Images to be saved. @param params Format-specific parameters encoded as pairs (paramId_1, paramValue_1, paramId_2, paramValue_2, ... .) see cv::ImwriteFlags +@return true if the image is successfully written to the specified file; false otherwise. */ CV_EXPORTS_W bool imwrite( const String& filename, InputArray img, const std::vector& params = std::vector());