Skip to content

BGR2Gray 8u: IPP conformance - #12279

Merged
alalek merged 3 commits into
opencv:masterfrom
savuor:cvtcolor_bgr2gray_8u_15bits
Sep 6, 2018
Merged

alalek merged 3 commits into
opencv:masterfrom
savuor:cvtcolor_bgr2gray_8u_15bits

Conversation

@savuor

@savuor savuor commented Aug 22, 2018

Copy link
Copy Markdown
Contributor

This pullrequest changes

BGR2Gray for 8u fixed to perform the same as IPP's code including nearest-even rounding

@alalek

alalek commented Aug 22, 2018

Copy link
Copy Markdown
Member

Suggest starting from test.

@savuor
savuor force-pushed the cvtcolor_bgr2gray_8u_15bits branch from bd587de to 81e9a79 Compare August 22, 2018 21:31
@alalek

alalek commented Aug 24, 2018

Copy link
Copy Markdown
Member

Currently RGB -> GRAY result is equal to "Y" channel of RGB -> YCbCr / YUV conversions (luma component).

Not sure that we should introduce difference here.

@savuor

savuor commented Aug 27, 2018

Copy link
Copy Markdown
Contributor Author

Indeed, need to fix RGB2Y** conversions
Looks like it's needed to fix RGB2Gray conversions for 16u as well (which may include rewriting them to new universal intrinsics)

@vpisarev
vpisarev self-requested a review September 5, 2018 15:57
@vpisarev vpisarev self-assigned this Sep 5, 2018
@vpisarev
vpisarev removed their request for review September 5, 2018 15:57
@vpisarev

vpisarev commented Sep 5, 2018

Copy link
Copy Markdown
Contributor

thanks! 👍

@alalek
alalek merged commit da7e1cf into opencv:master Sep 6, 2018
@savuor
savuor deleted the cvtcolor_bgr2gray_8u_15bits branch September 6, 2018 12:14
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
* bgr2gray 8u fixed to be in conformance with IPP code

* coefficients fixed so their sum is 32768

* java test for CascadeDetect fixed: equalizeHist added
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* bgr2gray 8u fixed to be in conformance with IPP code

* coefficients fixed so their sum is 32768

* java test for CascadeDetect fixed: equalizeHist added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants