Flat Histogram Experiments
I've noticed that when I edit curves in GIMP, I try to add contrast where the histogram is thick. So this morning I implemented a "flattening the histogram" approach, where do that by brute-forcing the image to have a more-or-less flat histogram.
The image marked Linear Luminance did this to the luminance,
the one marked Linear RGB applied the concept to each channel independently.
This isn't intended to be the last processing step, but sometimes it makes a good first one.
I implemented in C++. Stupid beastly language, but it has the bindings to the only image loading library I can deal effectively with.
Flat Histogram Experiments
I've noticed that when I edit curves in GIMP, I try to add contrast where the histogram is thick. So this morning I implemented a "flattening the histogram" approach, where do that by brute-forcing the image to have a more-or-less flat histogram.
The image marked Linear Luminance did this to the luminance,
the one marked Linear RGB applied the concept to each channel independently.
This isn't intended to be the last processing step, but sometimes it makes a good first one.
I implemented in C++. Stupid beastly language, but it has the bindings to the only image loading library I can deal effectively with.