1
1
Fork
You've already forked asmOpenCV
0

how do you convert Mat 32FC1, 32FC3 to QPixmap? #3

Closed
opened 2019年08月28日 15:20:44 +02:00 by richipower · 3 comments
richipower commented 2019年08月28日 15:20:44 +02:00 (Migrated from github.com)
Copy link
No description provided.

I'm not sure - I've never dealt with floating point image formats, so you would have to add conversions for them.

I guess 32FC1 would be converted to QImage::Format_Grayscale8 or QImage::Format_Grayscale16 (Qt 5.13).

Maybe 32FC3 could be converted to QImage::Format_RGBA64 (Qt 5.12)?

Once you've added the conversions you can use ASM::cvMatToQPixmap() to get a QPixmap.

I'm not sure - I've never dealt with floating point image formats, so you would have to add conversions for them. I guess `32FC1` would be converted to `QImage::Format_Grayscale8` or `QImage::Format_Grayscale16` (Qt 5.13). Maybe `32FC3` could be converted to `QImage::Format_RGBA64` (Qt 5.12)? Once you've added the conversions you can use `ASM::cvMatToQPixmap()` to get a QPixmap.
linlin-commit commented 2022年12月01日 10:04:44 +01:00 (Migrated from github.com)
Copy link

Has it been resolved?I'm also having the same issue

Has it been resolved?I'm also having the same issue

It depends what you mean by "resolved" 😄 I closed the issue because I answered the question and there was no response (after 2 years).

I didn't add this capability (I've still never worked with floating point image formats) and the poster did not submit a PR for it, so it's not in the code.

I'd be happy to look at a PR for it though!

It depends what you mean by "resolved" 😄 I closed the issue because I answered the question and there was no response (after 2 years). I didn't add this capability (I've still never worked with floating point image formats) and the poster did not submit a PR for it, so it's not in the code. I'd be happy to look at a PR for it though!
Sign in to join this conversation.
No Branch/Tag specified
master
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
asmaloney/asmOpenCV#3
Reference in a new issue
asmaloney/asmOpenCV
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?