How to capture 12 bit ( = 4096 grayscale levels) images
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!
Asked by Simone on 2020-12-03 05:36:52 UTC
Answers
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.
Asked by nlamprian on 2020-12-03 16:12:49 UTC
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).
Asked by Simone on 2020-12-18 16:21:13 UTC
Comments