• GB
  • NL
  • DE
  • US
30-50% goedkoper dan concurrent Sterk machine vision camera portfolio Uitstekende support Gecertificeerd door TÜV Rheinland 3 jaar camera garantie
Home Pixel Binning, Decimation (pixel skipping), Gamma and Digital Shift explained

Pixel Binning, Decimation (pixel skipping), Gamma and Digital Shift explained

Pixel Binning, Decimation (pixel skipping), Gamma and Digital Shift explained

Pixel binning and Decimation are advanced camera features that are available on a selected cameras. To check if this feature is available for your camera, open the framerate calculator as explained in this article https://www.get-cameras.com/How-to-use-the-frame-calculator-for-industrial-cameras and check if you have the BinningHorizontal, BinningVertical, DecimationHorizontal and DecimationVertical field visible in the framerate calculator for your camera model.

Pixel binning is used to increase light sensitivity and reduce image resolution.
Decimation, also known as pixel skipping is used to reduce the image resolution while not changing the size of the field of view.

PIXEL BINNING 

Pixel binning is used to increase light sensitivity and reduce the image resolution. When setting the camera in pixel binning mode, multiple pixels are joined together to make one larger pixel area which therefore gathers more light. When capturing moving objects, in binning mode you can reduce the exposure to avoid motion blur. Furthermore, you can capture better images in dark environments.
The cameras Pixel binning mode reduces the effective resolution of the camera sensor as it combines the data of several pixel into 1. Using 2x binning you combine 2x2 pixels to 1 pixel. The resolution will be reduced by a factor 4. Using 4x binning you combine 4x4 pixels to 1 pixel. The resolution will be reduced with a factor 16. As example we take a 12MP camera. The camera has a resolution of 4096x3000 pixels.
In 2x2 binning mode the output resolution is 2048x1500pixels = 3MP
In 4x4 binning mode, the output resolution is  1024x750pixels = 0.78MP
In some cases, the camera framerate will increase when using Binning mode.

 

When opening the frame rate calculator, you see that the default value for Binning is 1, meaning no binning. You can also select 2- or 4-times binning. If you select 2- or 4-times binning, you need to update the Width and Height of the camera as it will be reduced. The software will warn you to change this parameter to calculate the correct FPS output, see image below.

 

As the warning message tells us , first the width and height need to be corrected to see the correct FPS output. In the image below we have reduced the width and height by a factor 4 and the warning message is gone, and we have the new framerate of the camera in binning mode.

 

As the FPGA (processor) in the camera, still needs to read all pixels from the image sensor, before combining pixels together, we do not see an increase in framerate. However, some image sensors have the binning feature built in and in that case you can see an increase in framerate. 

When we want to have a # pixel per mm, we need to consider that we will cover this area with the full sensor resolution, or with the new reduced (binned) resolution.

Example If our area is 1000*750mm without binning, we can cover with the full sensor resolution such as 4096*3000. If we do this in binned mode (4), we will cover it with 1024*750 pixels. In the first situation we will have 4x more pixels per mm resolution, in the second case we have 4x more light per pixel but 4x less pixels per mm.

Be aware that not every camera supports this feature. The ones that do are listed below:  
MARS-1230-23U3M/C MER2-160-75GC/M MER2-302-37GM/C MER2-503-23GM-P POL
MARS-1231-32U3M/C MER2-160-75GC/M-P MER2-302-37GM/C-P MER-301-125U3M/C(-L)
MARS-3140-3GM//C-P MER2-2000-19U3M/C(-L) MER2-302-56U3M/C(-L) MER-302-56U3M/C(-L)
ME2P-1230-23U3XM/C(-L) MER2-231-41GM/C MER2-502-79U3M/C(-L) VEN-302-56U3M-S
MER2-041-302GC/M MER2-231-41GM/C-P MER2-503-23GM/C  
MER2-041-302GC/M-P MER2-301-125U3M/C(-L) MER2-503-23GM/C-P  

DECIMATION / PIXEL SKIPPING

Decimation is used to reduce the image resolution while maintaining the field of view. A typical application is having live view of the lower resolution image to reduce camera bandwidth and increase framerate. On the moment you want to capture the image you will disable decimation and you will capture the image with its full resolution.
In decimation mode, every second pixel (2x decimation) or every second, third and fourth pixel (4x binning) is discarded. As a result, you reduce the image resolution by a factor 4 or a factor 16. As example we take again the 12MP camera. 
The camera has a resolution of 4096x3000 pixels.
In 2x2 decimation mode the output resolution is 2048x1500pixels = 3MP
In 4x4 decimation mode, the output resolution is 1024x750pixels = 0.78MP

Contrarily to  the Region of Interest (ROI), decimation does not affect the field of view.


Depending on camera model you may have an increase in FPS.



Be aware that not every camera supports this feature. The ones that do are listed below:  
MARS-1230-23U3M/C ME2P-2621-4GM/C-P-VF8 MER-133-54GM/C MER2-302-37GM/C
MARS-1231-32U3M/C ME2P-560-21GM/C-P MER-133-54GM/C-P MER2-302-37GM/C-P
MARS-1231-46G5M/C-P ME2P-900-13GM/C-P MER2-041-302GC/M MER2-502-79U3M/C(-L)
MARS-3140-3GM//C-P ME2P-900-13GM/C-P-HF8 MER2-041-302GC/M-P MER2-503-23GM/C
ME2P-1220-9GM/C-P ME2P-900-13GM/C-P-VF8 MER2-1220-9GM/C MER2-503-23GM/C-P
ME2P-1230-23U3XM/C(-L) MER-031-860U3M(-L) NIR MER2-1220-9GM/C-P MER2-503-23GM-P POL
ME2P-1840-6GM/C-P MER-031-860U3M/C(-L) MER2-160-75GC/M MER2-630-18GM/C
ME2P-1840-6GM/C-P-HF8 MER-050-560U3M(-L) NIR MER2-160-75GC/M-P MER2-630-18GM/C-P
ME2P-1840-6GM/C-P-VF8 MER-050-560U3M/C(-L) MER2-2000-19U3M/C(-L)  
ME2P-2621-4GM/C-P(-G2) MER-131-210U3M(-L) NIR MER2-231-41GM/C  
ME2P-2621-4GM/C-P-HF8 MER-131-210U3M/C(-L) MER2-231-41GM/C-P  

Gamma

The camera feature ‘Gamma’ can be used on our advanced camera models and is commonly used to enhance the brightness of the images for the screen you are viewing the images on. Gamma correction is a nonlinear adaption applied to each pixel of an image. It is mostly used to convert the linear perception of a camera sensor to the non-linear perception of our eyes. A function is applied to every pixel of an image, where it corrects the greyscale value of it. There are three different ways the gamma value can affect the image brightness:
  • Gamma < 1, the image becomes brighter
  • Gamma = 1, the image remains unchanged
  • Gamma > 1, the image becomes darker
To change the gamma value, you first need to enable Gamma correction, then set the “GammaValue” to a value between 0 and 4 to change the brightness.

If you enable Gamma correction and the pixel format is set to 10-bit or 12-bit. Some image information will be lost. If the gamma feature is required without image information loss, avoid using this feature in 10-bit or 12-bit pixel format.

Be aware that not every camera supports this feature. The ones that do are listed below:
MER2-502-79U3M/C MER2-2000-19U3M/C(-L) MER2-231-41GM/C MER2-503-23GM/C
MER2-041-302GC/M MER2-160-75GC/M MER2-1220-9GM/C MER2-630-18GM/C
MER2-503-23GM/C-P MER2-231-41GM/C-P MER2-041-302GC/M-P MER2-160-75GC/M-P
MER2-503-23GM-P POL MER2-1220-9GM/C-P MER2-630-18GM/C-P ME2P-1230-23U3M/C
ME2P-2621-15U3C ME2P-560-21GM/C-P ME2P-900-13GM/C-P ME2P-1840-6GM/C-P
ME2P-2621-4GM/C-P VEN-161-61U3C-(M01/M05/M06) VEN-505-36U3C-(M01/M05/M06) VEN-830-22U3C-(M01/M05/M06)


The maximum pixel value Rmax equals 255 for 8-bit pixel formats, 1023 for 10-bit pixel formats.

Digital Shift

The camera feature ‘digital shift’ can be used on our advanced camera models and is commonly used to enhance the brightness of the images by increasing every pixel’s brightness individually by ‘shifting’ the binary values to the left. Setting the digital shift value to n results in a logical left shift by n on all pixel values. This has the effect of multiplying every pixel value by 2n.  This will result in a brighter image, but will also increase the noise.
If the resulting pixel value is greater than the maximum value possible for the current pixel format, it is set to the maximum value.

To configure the digital shift factor, change the value of the “DigitalShift” parameter.
Not every model supports this feature. If your model doesn’t support it, you can change the gain value to get a similar effect.

Example for digital shift of 1 and a 12-bit image.


Cameras that support Digital Shift:
MER2-041-436U3M/C(-L) MER2-160-227U3M/C(-L) MER2-231-41U3M/C(-L) MER2-502-79U3M/C(-L)
MER2-503-36U3M/C(-L) MER2-503-36U3M POL MER2-231-41GM/C MER2-503-23GM/C
MER2-2000-6GM/C MER2-041-302GC/M MER2-160-75GC/M MER2-1220-9GM/C
MER2-630-18GM/C MER2-2000-6GM/C-P MER2-503-23GM/C-P MER2-231-41GM/C-P
MER2-041-302GC/M-P MER2-160-75GC/M-P MER2-503-23GM-P POL MER2-1220-9GM/C-P
MER2-630-18GM/C-P ME2P-1230-23U3M/C ME2P-2621-4GM/C-P(-G2) ME2P-560-21GM/C-P
ME2P-900-13GM/C-P ME2P-1840-6GM/C-P ME2P-2621-4GM/C-P-HF8 ME2P-2621-4GM/C-P-VF8
ME2P-900-13GM/C-P-HF8 ME2P-900-13GM/C-P-VF8 ME2P-1840-6GM/C-P-HF8 ME2P-1840-6GM/C-P-VF8
ME2P-1220-9GM/C-P MARS-1230-23U3M/C MARS-1231-32U3M/C MARS-3140-3GM/C-P

 
  Machine vision specialist     06-07-2021 10:42
Accepteer onze cookie voor de beste prestaties
Accepteer geselecteerde cookies