This article demonstrates how to use OpenCv (OpenCVSharp) in C# language to process brightness, contrast, and grayscale of images.
Table of contents
Brightness and Contrast Principles
Brightness and Contrast Principles
The popular understanding of image brightness is the degree of lightness and darkness of the image, digital image f(x, y) = i(x, y) r(x, y), if the gray value is between [0, 255], the higher the f value Closer to 0, the lower the brightness, and the closer the f value is to 255, the higher the brightness. And we also need to distinguish between brightness and contrast, as mentioned above, the contrast refers to the grayscale difference between the highest and lowest grayscale