imgcodecs: update documentation for imwrite() to support images formats.#23410
imgcodecs: update documentation for imwrite() to support images formats.#23410asmorkalov merged 2 commits intoopencv:3.4from
Conversation
mshabunin
left a comment
There was a problem hiding this comment.
Looks good to me.
Perhaps in future all imgcodecs backend descriptions and specifics should be extracted to a separate page (e.g. https://docs.opencv.org/4.x/d8/d6a/group__imgcodecs__flags.html). It clutters imread and imwrite more and more with time.
|
Thank you for your comment, I agree with you ! We have several encoder functions and decoder functions in imgcodecs module. [For 3.4 branch] (This pull request.) [For 5.0 / 4.x branch ] https://docs.opencv.org/4.7.0/d4/d86/group__imgproc__filter.html |
This PR is for pre-work for #23397 .
Reason
The current imwrite() was listing based on the input image (8/16/32/64, unsigned/siged/float).
For this reason, it is not easy to describe specification changes for each format.
Therefore, I propose listing based on the output file.
This allows us to change only the Encoder line that modifies the supported input image formats.
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.