Welcome to our Support Center

BCG Lookup

Description

Applies a brightness, contrast, and gamma correction to an image. The correction is performed by computing and applying a lookup table. Brightness, Contrast, and Gamma control the changes made to the transfer function represented by the lookup table. Type : polymorphic.

 

Input parameters

 

Image Src : class, type accepted U8, RGB and HSL.

BCG Lookup Parameters : cluster,

Brightness : float, sets the brightness of the image. This value is used as the x intercept of the transfer function in the lookup table. The neutral value is 128 (no change in the image). A higher value returns a brighter image. A value less than 128 decreases the overall brightness of the image.
Contrast : float,
sets the contrast of the image. This control is used as the slope of the transfer function in the lookup table and is expressed in degrees. A slope of 45 degrees is neutral. A higher value returns a more contrasted image. A value smaller than 45 decreases the contrast of the image.
Gamma : float,
sets the gamma correction applied to the image. The neutral value is 1. A value greater than 1 gives extended contrast for small pixel values and less contrast for large pixel values. A value smaller than 1 returns an image with less contrast for small pixel values and extended contrast for large pixel values.

Output parameters

 

Image Dst : class

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents