[ros-users] Save ROIs inside bag files

Tim Field tfield at willowgarage.com
Wed Oct 5 17:41:05 UTC 2011


Hi Jan,

If you post this question to answers.ros.org then I'm sure someone will be
able to help.

Tim

On Wed, Oct 5, 2011 at 9:10 AM, J H <dahoc3150 at yahoo.com> wrote:

> Hi,
> I would like to save ROIs (cv::Rect) and masks (cv::Mat) inside a bag file
> along with images (cv::Mat).
> I put the 4 rect values (x,y,width,height) inside a cv::Mat and store them
> and the masks and the images each with a separate topic and the same
> corresponding time stamp as the image inside the bag file.
>
> Now it may occur that I have multiple ROIs and masks for one image, in
> which case I need to save several cv::Mat with the same time stamp into the
> bag file and I don't think that even works.
> What would be an elegant approach to cleanly resolve this? I currently add
> one nsec for each additional mask and ROI to the timestamp of the image, but
> that clearly is a bad solution.
>
> Any help appreciated,
>
> best regards,
> Jan Hendriks
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20111005/d13de39e/attachment-0004.html>


More information about the ros-users mailing list