Skip to content

imwrite multipage TIFF files #10367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

savuor
Copy link
Contributor

@savuor savuor commented Dec 20, 2017

resolves #8729

This pullrequest changes

The old PR #8913 re-created, merge conflicts are fixed

@alalek
Copy link
Member

alalek commented Dec 20, 2017

I believe OpenCV should handle most universal cases and "multipage" images case is not one of this. Also it is TIFF only (and perhaps animated GIFs). Image by definition is not multipage (see wiki).
For sequence of images we have VideoCapture/VideoWriter interface, so it is better to deprecate existed imreadmulti API and move multipage TIFF stuff there.

/cc @vpisarev
see #8511

@vpisarev vpisarev self-assigned this Feb 20, 2018
@vpisarev
Copy link
Contributor

actually, I like how it's handled. Without introducing extra function we added extra functionality. Of course, it needs to be properly documented. But the same technique can be used even for animated gifs

@vpisarev
Copy link
Contributor

👍

@savuor savuor force-pushed the multiwrite_tiff_renew branch from 2b63e2d to 27b1f8f Compare February 20, 2018 16:09
@opencv-pushbot opencv-pushbot merged commit 27b1f8f into opencv:master Feb 20, 2018
@savuor savuor deleted the multiwrite_tiff_renew branch February 21, 2018 11:16
@rounakskm
Copy link

rounakskm commented Nov 5, 2019

Hi all,
I am fairly new to opencv and am having trouble finding this function.
Could anyone please tell me how to write a vector<cv::Mat> -- where each Mat is a Tiff image -- to one stacked Tiff file?
An example would be much appreciated.

@savuor
Copy link
Contributor Author

savuor commented Nov 11, 2019

@rounakskm Although this place is not for questions and answers (please use answers.opencv.org) I can help you as an exception. You can find an example of usage here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create write version of of cv::imreadmulti, cv:imwritemulti
5 participants