Skip to content

imgproc(IPP): wrong result from threshold(THRESH_TOZERO) - #16085

Merged
alalek merged 2 commits into
opencv:3.4from
alalek:imgproc_threshold_to_zero_ipp_bug
Dec 9, 2019
Merged

alalek merged 2 commits into
opencv:3.4from
alalek:imgproc_threshold_to_zero_ipp_bug

Conversation

@alalek

@alalek alalek commented Dec 6, 2019 •

Copy link
Copy Markdown
Member

relates #2584

@alalek
alalek merged commit 734de34 into opencv:3.4 Dec 9, 2019
@alalek alalek mentioned this pull request Dec 11, 2019
eplankin added a commit to eplankin/opencv that referenced this pull request Dec 14, 2021
eplankin added a commit to eplankin/opencv that referenced this pull request Dec 14, 2021
eplankin added a commit to eplankin/opencv that referenced this pull request Mar 24, 2022
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
…_ipp_bug

* imgproc(IPP): wrong result from threshold(THRESH_TOZERO)

* imgproc(IPP): disable IPP code to pass THRESH_TOZERO test
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
…pp_bug

Fixed threshold(THRESH_TOZERO) at imgproc(IPP)

* Fixed opencv#16085: imgproc(IPP): wrong result from threshold(THRESH_TOZERO)

* 1. Added test cases with float where all bits of mantissa equal 1, min and max float as inputs
2. Used nextafterf instead of cast to hex

* Used float value in test instead of hex and casts

* Changed input value in test
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