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

image_rect cropped?

asked 2015-10-05 02:30:22 -0500

theDrGray gravatar image

I am having an issue where my image_rect output from stereo)image_proc is being cropped way down to a small section of the center/far right of the image_raw topic. As far as I can tell, I am not feeding these values to rectify anywhere throughout my launch file.

Im using 2 Flea3 Monochrome USB3 cameras in Ubunut 14.04.1 using indigo. To get the cameras up and running, Im using the following package from Kumar Robotics:

In the screen shot you can see that image_raw topic is the entire room, in the image_rect the topic is cropped down to nothing.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-05 02:37:51 -0500

ahendrix gravatar image

The parameters that are passed to image rectification process come from the camera calibration, and are published on the camera_info topic.

Have you calibrated your cameras yet? What are the resulting calibration parameters?

edit flag offensive delete link more


I used camera_calibration, and it seemed to go well. Got a total of 173 samples (went over kill by accident).

This is the yaml for the right camera:

theDrGray gravatar image theDrGray  ( 2015-10-05 04:13:21 -0500 )edit

I recalibrated for good measure and it opened up he crop drastically. I am now centered and seeing roughly 80% of image_raw in image_rect. Much appreciated for steering me in that direction!

theDrGray gravatar image theDrGray  ( 2015-10-05 13:32:05 -0500 )edit

yeah. very occasionally the calibration comes up with a bad fit, and it needs to be recalibrated.

ahendrix gravatar image ahendrix  ( 2015-10-05 13:37:21 -0500 )edit

Question Tools

1 follower


Asked: 2015-10-05 02:30:22 -0500

Seen: 334 times

Last updated: Oct 05 '15