Ask Your Question

example for setting destination width and height and getting updated camera info when using image_proc/resize

asked 2019-09-10 11:41:00 -0600

GXY gravatar image

Hey, could someone please give me a concrete example about how to use the resize() function via command line?

This link seems to be promising, but it doesn't show how to set destination width and height and how to get updated camera info.

This link is also similar, but I don't understand which .h file it's about and why is a header file useful.

In the video tutorial I didn't find anything useful either.

I was expecting that I can specify the destination width and height via command line and also get the updated camera info. Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-12 05:05:27 -0600

Felix Ruess gravatar image

Basically you run the nodelet and remap the input topics. The resize parameters you can change via dynamic reconfigure and/or provide initial values as cmdline parameters.

E.g. to downscale the /stereo/left/image_rect to half the size:

rosrun nodelet nodelet standalone image_proc/resize image:=/stereo/left/image_rect camera_info:=/stereo/left/camera_info _scale_width:=0.5 _scale_height:=0.5
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-09-10 11:41:00 -0600

Seen: 279 times

Last updated: Sep 12 '19