Gazebo | Ignition | Community
Ask Your Question
0

How to capture 12 bit ( = 4096 grayscale levels) images

asked 2020-12-03 04:36:52 -0600

Simone gravatar image

Hi there, I would ask you if there is the possibility to capture images that use 12 bit to represent the brightness intensity of pixel, equivalent to 4096 grayscale levels per pixel.

I know that the image format (L8, R8G8B8, etc.) can be specified using the SDFormat. For instance, L8 correspond to a grayscale image that used 8 bits per pixel, that is 256 grayscale levels.

Thank you in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-03 15:12:49 -0600

nlamprian gravatar image

You can configure your camera sensor to generate 16bit images. Then you can just fork the camera plugin, and add a step for shifting the values right before the image is copied from the internal buffer to the ROS msg.

edit flag offensive delete link more

Comments

Thank you for the advice! Since I my skills in programming are quite limited, I think that for now I am going to take 16 bit images and then post-processing them using an external software (like MATLAB).

Simone gravatar imageSimone ( 2020-12-18 15:21:13 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-12-03 04:36:52 -0600

Seen: 71 times

Last updated: Dec 03 '20