Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Add Quicklook for Mat on iOS and macOS#20457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
alalek left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Well done! Thank you for contribution 👍
alalek commentedOct 6, 2021
komakai commentedOct 6, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
komakai commentedOct 6, 2021
So we have already run-time checks like: but if you are building with a version of Xcode that doesn't know about iOS 13 then I guess these checks are not enough.
Will try to prepare a fix. |
komakai commentedDec 30, 2021
Equivalent functionality for Android/Java now also available:https://medium.com/@gilespayne/android-java-get-opencv-mat-visualization-plugin-8d1281047773 |
wwwwwlllllllllll commentedNov 22, 2022
Hi, thanks for your contribution. |
komakai commentedDec 7, 2022
Quicklook works exactly the same in Objective-C as in Swift. Just move the mouse cursor over a variable of type Mat and click the eye icon. Quicklook is not available in C/C++ |
Pull Request Readiness Checklist
See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Sometime you want to see quickly the contents of a Mat object. This PR takes advantage of the Xcode Quicklook function to give a debug view of a Mat object as follows:

* if the Mat has 2 dimensions and 1 channel and number of rows and number of columns is less than 10 - display Xcode Quicklook as LaTeX style matrix
* if the Mat has 2 dimensions and 1 channel and type other than CV_8U - show Xcode Quicklook as a heat map