Ask Your Question

Revision history [back]

Take a look at cv_bridge tutorial to know how to properly convert images from one colorspace to another.

I would recommend you to make your package depend on cv_bridge, create an OpenCV image whose internal representation matches what Fovis expects and then pass the internal data representation to Fovis.

Be particularly attentive regarding how this data is accessed, allocated and freed, it may be necessary to make an additional copy of the image depending on the memory management strategy of both OpenCV and Fovis.