Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Graphics code snippet to perform a histogram equalization on a VCL TImage.
DoHistogramEqualization is similar to EnhanceContrast, except that EnhanceContrast is milder: it tries to minimally change the average greyness (using GetAverageGreyness to first measure it).
I have also programmed a tool that uses DoHistogramEqualization, called HistogramEqualizationer.
DoHistogramEqualization works on both grey and color images.
DoHistogramEqualization assumes you have defined the functions GetImageHistogram and GetCumulativeHistogram.
//From http://www.richelbilderbeek.nl/CppDoHistogramEqualization.htm |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.