Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pixel Processing Algorithms

I am looking for some information on pixel processing. I am interested in the following algorithms:

  • Gamma correction
  • Edge detection
  • Changing overall brightness
  • Converting to grayscale
  • etc.

Where can I find articles that have a description of how this can be achieved?

Thanks.

like image 501
Ilya Suzdalnitski Avatar asked Dec 20 '25 00:12

Ilya Suzdalnitski


1 Answers

Most of these are pretty easy.

A classic book for such things is Computer Graphics Principles and Practice. Its not cheap though.

Wikipedia has some good explanations though

Gamma correction
Edge Detection though its also worth looking into highpass filtering

Changing brightness is a bit more subjective and very much connected with gamma correction, imo.

As for grayscale convert .. it can't be easier. You could just take the average of the r, g & b channels. However this doesn't correct for the fact that we see green better than other colours. The "luminance" of an RGB image can be calculated simply by doing (0.3 * r) + (0.59 * g) + (0.11 * b). As you can see that biases the apparent luminance heavily by green with blue giving far less contribution, which is how our eyes work :)

like image 119
Goz Avatar answered Dec 21 '25 17:12

Goz