Skip to content

This code is used to change the brightness and contrast of images or video frames using OpenCV library.

Notifications You must be signed in to change notification settings

kushalchaudhari21/brightness_contrast_OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Theory

A general image processing operator is a function that takes one or more input images and produces an output image. In pixel image processing transformation, each output pixel's value depends on only the corresponding input pixel value (plus, potentially, some globally collected information or parameters).Examples of such operator include brightness and contrast adjustments as well as color correction and transformations.

Two commonly used point processes are multiplication and addition with a constant:

g(x)=αf(x)+β

The parameters α>0 and β are often called the gain and bias parameters; sometimes these parameters are said to control contrast and brightness respectively. You can think of f(x) as the source image pixels and g(x) as the output image pixels. Then, more conveniently we can write the expression as:

g(i,j)=α⋅f(i,j)+β

where i and j indicates that the pixel is located in the i-th row and j-th column. alt text alt text

About

This code is used to change the brightness and contrast of images or video frames using OpenCV library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages