Hello.<br><br>I'm using cvbridge to get camera images and using some opencv functions for image processing.<br>However, memory blows up whenever I use opencv functions on IplImages converted from the imgMsgToCv method.<br>
Using cvCopy, cvCloneImage, cvNormalize, etc... any one of these good' ol opencv functions on IplImage blows up the memory.<br><br>So I referred to stereo view.cpp file in <a href="http://www.ros.org/doc/api/image_view/html/stereo__view_8cpp_source.html#l00340">http://www.ros.org/doc/api/image_view/html/stereo__view_8cpp_source.html#l00340</a><br>
It seems like the file uses the new cv::Mat_ data structure to perform operations on images.<br><br>Should I always use the new opencv2.1 image data structure( cv::Mat ) if I want to work on opencv images converted from sensor_msgs::Image ?<br>
Or is there a way to work with the IplImages ?<br><br>Thanks.<br>