[ros-users] cvBridge + opencv memory leak problem
Chriss Lei
lei.chriss at gmail.com
Sat May 22 23:36:07 UTC 2010
Hello.
I'm using cvbridge to get camera images and using some opencv functions for
image processing.
However, memory blows up whenever I use opencv functions on IplImages
converted from the imgMsgToCv method.
Using cvCopy, cvCloneImage, cvNormalize, etc... any one of these good' ol
opencv functions on IplImage blows up the memory.
So I referred to stereo view.cpp file in
http://www.ros.org/doc/api/image_view/html/stereo__view_8cpp_source.html#l00340
It seems like the file uses the new cv::Mat_ data structure to perform
operations on images.
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 ?
Or is there a way to work with the IplImages ?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20100522/6d1566c1/attachment-0002.html>
More information about the ros-users
mailing list