Sending the image using cvbridge
I am getting in image from a webcam using cvbridge. What I want to be able to do is change a few things to that image, and finally publish it. When I try to create another cvImagePtr and change the image associated with it to finally publish it using
image_final.copyTo(cv_ptr_image_final->image); and then using "->toImageMsg()" to send the image,
It gives me an error saying /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator-="">() const [with T = cv_bridge::CvImage]: Assertion `px != 0' failed. Aborted
What should I do to update the image in one of the cvBridge vairables so that I can publish it ?
Thx a lot