ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

separation of images

asked 2018-06-01 03:13:37 -0500

bala_subramanyam gravatar image

updated 2018-06-01 03:14:25 -0500

The output from my omni directional camera produces 2 fish eye images. Those images get published on /usb_cam/image_raw, while echoing the topic i found it to be an array of intensity for each pixel(my guess), I want to separate out the two images using this array.

The size of the resultant combined image is 1280 x 720, (width x height).

Any guidance !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-06-01 05:44:43 -0500

We have a similar (maybe the same) 360 camera that uses two fisheye lenses, they are great cameras!

I recommend looking at the cv_bridge examples to manipulate the images received on a topic. This encapsulates all the processing of the raw message data so you don't have to worry about the low level representation, it will work just as well with raw or compressed images.

You can use the OpenCV to split the large image into two smaller ones, as described in the answer to this question. Then you can use the two split images for whatever you want. If you then want to publish the split images to two separate topics you can look at this example here.

Hope this gets you going in the right direction.

edit flag offensive delete link more

Comments

Yes, after looking at the examples I was able to separate out the images and also publish it on two different topics. Thank You !!

bala_subramanyam gravatar image bala_subramanyam  ( 2018-06-01 06:48:17 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-06-01 03:13:37 -0500

Seen: 194 times

Last updated: Jun 01 '18