Skip to content

fix for confusing Assertion in imshow #21528

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
sturkmen72:patch-5
Jan 28, 2022
Merged

fix for confusing Assertion in imshow #21528
opencv-pushbot merged 1 commit intoopencv:4.xfrom
sturkmen72:patch-5

Conversation

@sturkmen72
Copy link
Copy Markdown
Contributor

actually calling imshow with an empty Mat gives confusing Assertion
OpenCV(4.5.5-dev) D:\GitHub\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

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

@opencv-pushbot opencv-pushbot merged commit 1f6444f into opencv:4.x Jan 28, 2022
@sturkmen72 sturkmen72 deleted the patch-5 branch January 28, 2022 15:39
@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.

4 participants