Does python cv_bridge perform a copy?

asked 2018-04-18 19:33:11 -0500

zacwitte gravatar image

updated 2018-04-19 13:03:41 -0500

The c++ version of cv_bridge has a clear distinction between CvImageConstPtr toCvShare() and CvImagePtr toCvCopy(). The python version does not state how it handles the binary image data and how many copy operations happen on the image data to get it into an opencv style numpy array in the requested format. How much efficiency am I loosing by using python?

Using ROS Kinetic.

edit retag flag offensive close merge delete


The c++ version of tensorflow

I'm not too much into this, but shouldn't tensorflow be opencv?

gvdhoorn gravatar image gvdhoorn  ( 2018-04-19 02:46:31 -0500 )edit

@gvdhoorn Ha. Sorry, Freudian slip - I meant ROS's cv_bridge. Fixed the original post to reflect that.

zacwitte gravatar image zacwitte  ( 2018-04-19 13:05:04 -0500 )edit