Skip to content

Backport to 3.4: cvIsInf() fix#23145

Merged
asmorkalov merged 1 commit intoopencv:3.4from
savuor:backport34_fix_inf
Jan 18, 2023
Merged

Backport to 3.4: cvIsInf() fix#23145
asmorkalov merged 1 commit intoopencv:3.4from
savuor:backport34_fix_inf

Conversation

@savuor
Copy link
Copy Markdown
Contributor

@savuor savuor commented Jan 17, 2023

Backport of the fix from #23098

Sometimes cvIsInf(double) assumes NaN as Inf. This PR fixes that and adds some regression tests

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • 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
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • 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

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 👍

@asmorkalov asmorkalov merged commit c664cf3 into opencv:3.4 Jan 18, 2023
@savuor savuor deleted the backport34_fix_inf branch January 18, 2023 15:46
This was referenced Jan 21, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
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