Conversation
Fixed calculation of Bs for non-green pixels.
|
Looks like there are failing tests: It seems that reference images should be regenerated:
Please note that you should create separate PR to the opencv/opencv_extra repository using same branch name as in this PR (dcouwenh-vng-demosaicing-fix2), then both PRs will be tested together. |
|
@mshabunin , I have regenerated the reference images in the opencv/opencv_extra repository to reflect the change to the bayer VNG demosaicing code in opencv/opencv, and created a pull request for the opencv_extra repository with the same branch name (dcouwenh-vng-demosaicing-fix2) opencv/opencv_extra#641 |
|
@dcouwenh , looks like these files were used in another test: opencv_perf_imgproc. And now it is failing because it expects different values. You need to replace this line: With SANITY_CHECK_NOTHING();
|
Fixed calculation of Bs for non-green pixels.
resolves #15011
This pullrequest changes
In file modules\imgproc\src\demosaicing.cpp, the Bs values for non-green cells were being calculated incorrectly in the NW and SE gradients. I fixed the math in both the SSE2 accelerated and non-accelerated code blocks.