Skip to content

Fix bug in ObjC/Swift Quicklook function#22325

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
komakai:fix-quicklook
Aug 15, 2022
Merged

Fix bug in ObjC/Swift Quicklook function#22325
opencv-pushbot merged 1 commit intoopencv:4.xfrom
komakai:fix-quicklook

Conversation

@komakai
Copy link
Copy Markdown
Contributor

@komakai komakai commented Jul 31, 2022

Pull Request Readiness Checklist

  • 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

Bugfix (Objc Bindings):
For a Mat with 10 or less rows and 10 or less columns and more than one channel - Quicklook fails like this:
スクリーンショット 2022-07-31 20 58 30

This PR fixes the problem by adding a check that the number of channels is 1 before trying to draw a matrix style Quicklook

@opencv-pushbot opencv-pushbot merged commit ffccfa2 into opencv:4.x Aug 15, 2022
@alalek alalek mentioned this pull request Aug 21, 2022
@asmorkalov asmorkalov added this to the 4.7.0 milestone Jan 23, 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