From bc6a70c689745e40a84ff70b67cf29106449799f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Wed, 7 Oct 2020 12:19:17 +0200 Subject: [PATCH] imwrite: multi-image overload for bindings --- modules/imgcodecs/include/opencv2/imgcodecs.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/imgcodecs/include/opencv2/imgcodecs.hpp b/modules/imgcodecs/include/opencv2/imgcodecs.hpp index e1f8208e0b..e2636e19f7 100644 --- a/modules/imgcodecs/include/opencv2/imgcodecs.hpp +++ b/modules/imgcodecs/include/opencv2/imgcodecs.hpp @@ -220,6 +220,14 @@ It also demonstrates how to save multiple images in a TIFF file: CV_EXPORTS_W bool imwrite( const String& filename, InputArray img, const std::vector& params = std::vector()); +/// @overload multi-image overload for bindings +CV_WRAP static inline +bool imwritemulti(const String& filename, InputArrayOfArrays img, + const std::vector& params = std::vector()) +{ + return imwrite(filename, img, params); +} + /** @brief Reads an image from a buffer in memory. The function imdecode reads an image from the specified buffer in the memory. If the buffer is too short or