imwrite: multi-image overload for bindings

This commit is contained in:
Pavel Rojtberg 2020-10-07 12:19:17 +02:00 committed by Alexander Alekhin
parent d2dbc9d7a0
commit bc6a70c689

View File

@ -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, CV_EXPORTS_W bool imwrite( const String& filename, InputArray img,
const std::vector<int>& params = std::vector<int>()); const std::vector<int>& params = std::vector<int>());
/// @overload multi-image overload for bindings
CV_WRAP static inline
bool imwritemulti(const String& filename, InputArrayOfArrays img,
const std::vector<int>& params = std::vector<int>())
{
return imwrite(filename, img, params);
}
/** @brief Reads an image from a buffer in memory. /** @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 The function imdecode reads an image from the specified buffer in the memory. If the buffer is too short or