Skip to content

Fixed threshold(THRESH_TOZERO) at imgproc(IPP)#21258

Merged
alalek merged 4 commits intoopencv:3.4from
eplankin:fix_threshold_to_zero_ipp_bug
Dec 17, 2021
Merged

Fixed threshold(THRESH_TOZERO) at imgproc(IPP)#21258
alalek merged 4 commits intoopencv:3.4from
eplankin:fix_threshold_to_zero_ipp_bug

Conversation

@eplankin
Copy link
Copy Markdown
Contributor

@eplankin eplankin commented Dec 14, 2021

Fix of the issue #16085.
The problem appeared in the case when source element is equal to the threshold (float data type). Due to the difference between OpenCV and IPP function implementations we have to compare source element with the floating point value next to the threshold (thresh + eps), not the threshold itself; eps value was updated.

force_builders=Custom
buildworker:Custom=linux-1
build_image:Custom=centos:7

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@alalek alalek merged commit 175bcb1 into opencv:3.4 Dec 17, 2021
@alalek alalek mentioned this pull request Dec 18, 2021
@alalek alalek mentioned this pull request Dec 30, 2021
@alalek alalek mentioned this pull request Feb 22, 2022
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.

2 participants