support use memory buffer as input to read multi-page image#21966
support use memory buffer as input to read multi-page image#21966asmorkalov merged 3 commits intoopencv:4.xfrom
Conversation
|
The imreadmulti method only supports std::string as an input, and the file path(std::string) is not support Unicode, imread is not support Unicode file path too, but I can use imdecode which allow to decode image using memory buffer as input. |
|
Thanks a lot for contribution. Please add tests for the new API. Please take a look on existing tests for |
…s not support inmemory decoding.
be1237d to
d13262e
Compare
|
Hi Asmorkalov and Alalek, thanks for the comments and code changed, I just saw this item update today, I forgot to remove the temporary file. |
|
I have no showstopper complains about this PR, I just wonder if we can rework this patch to use the newly introduced ImageCollection API? |
|
New API with iterators can be extended to support in memory processing, but not re-used. I propose to merge the patch to have consistent API ans then extend iterators approach. |
Support use memory buffer to read multi-page image
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.