Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How convert Mat class to ofxCvColorImage or ofxCvGrayscaleImage?

$
0
0

@wangwenfeng wrote:

I have an image, that is Mat image, now i want to change the image to ofxCvColorImage class,it likes :
ofxCvColorImage IMG=image;
, and then I can use the function "IMG.draw(0,0)" to draw the image on the screen in the openframeworks.
but now I have no ideas about how could I convert it.
If you know about it, please tell me soon. Thank you very much!

for example:
ofxCvGrayscaleImage gray;
Mat img(gray.getCvImage());

but could from Mat to ofxCvGrayscaleImage or ofxCvColorImage ??

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles