bmp decoder fix scale factor and IMREAD_COLOR incorrect result#23446
bmp decoder fix scale factor and IMREAD_COLOR incorrect result#23446asmorkalov merged 3 commits intoopencv:4.xfrom
Conversation
Signed-off-by: Shreesh Adiga <16567adigashreesh@gmail.com>
|
@tantei3 Thanks a lot for the prompt patch! I just tried branch 3.4 and the issue is there too. Please rebase the PR on top of 3.4 (or cherry-pick), push it to the same branch and change the PR target to 3.4. Also it's good to have some test for the issue. Could you create PR with the same branch name to opencv/opencv_extra repo with smallest possible image like 16x16 or 32x32 and implement test for it. |
|
@asmorkalov test case has been added. Regarding rebase, |
|
Got it, please ignore my request about 3.4. I'll take a look on it later. |
|
Thanks a lot for the contribution! The patch was tested manually with Ubuntu 18.04. |
**Merge with extra**: opencv/opencv_extra#1050 For 32 bits per pixel with 3 or 4 channel destination images, apply scale factor and mask to parse BMP files correctly closes opencv#23445 ### Pull Request Readiness Checklist - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
**Merge with extra**: opencv/opencv_extra#1050 For 32 bits per pixel with 3 or 4 channel destination images, apply scale factor and mask to parse BMP files correctly closes opencv#23445 ### Pull Request Readiness Checklist - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
Merge with extra: opencv/opencv_extra#1050
For 32 bits per pixel with 3 or 4 channel destination images, apply scale factor and mask to parse BMP files correctly
closes #23445
Pull Request Readiness Checklist
Patch to opencv_extra has the same branch name.