System information (version)
- OpenCV => 4.4
- Operating System / Platform => Linux
- Compiler => GCC
Detailed description
imwrite supports writing multi-page tiffs by checking whether InputArray is a MatVector
|
std::vector<Mat> img_vec; |
|
if (_img.isMatVector() || _img.isUMatVector()) |
|
_img.getMatVector(img_vec); |
However, on python it can never be done as the binding generator does not try creating vector_Mat for InputArray - just Mat and UMat.
Steps to reproduce
import cv2
img = cv2.imread("doc/opencv-logo.png")
cv2.imwrite("multi.tiff", [img, img, img])
Issue submission checklist
System information (version)
Detailed description
imwritesupports writing multi-page tiffs by checking whetherInputArrayis aMatVectoropencv/modules/imgcodecs/src/loadsave.cpp
Lines 755 to 757 in 793b2b9
However, on python it can never be done as the binding generator does not try creating
vector_MatforInputArray- justMatandUMat.Steps to reproduce
Issue submission checklist
answers.opencv.org, Stack Overflow, etc and have not found solution