How to create an ofxCvImage from an IplImage?


I’ve looking for the way to create an ofxCvImage from an IplImage but i don’t find it. One could obtain the cvImage from an ofxCvImage, but the inverse. I would be usefull to use some OpenCv funtions that give an IplImage as ouput.

Does someone know how to do it?

Thanks a lot!!!

Hi all!

I’ve found how to do this diving in ofCvImage.cpp. It’s simple: Just do


The number of channels, depth and size of both objects must be the same!

Thanks for this great tool!


cool, you found it.