Apply software binning for camera images

asked 2021-04-21 03:55:35 -0600

AnandGeorge gravatar image

Hey,

I am trying to apply binning to the images I get from the camera. The camera doesn't support binning, so I try to do software binning using image_proc/crop_decimate. My input image size is 2448x2048. If I give both x and y decimation values as 2, as far as I understand, the output image should have the size 1224x1024. But the output image still has the size of input. So, I specified the height and width for the output. When I do that, the image gets cropped and only the top left part of the input image gets published as output.

Can anyone tell me how to do software binning or if I should change some parameter in image_proc?

Thanks,
Anand

edit retag flag offensive close merge delete