Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Changing a histogram (creating a hole)

Hi there. This is a histogram of a grayscaled image I have:

image description

I need it to be more like this:

image description

And I wonder what's the best and efficient way to reach it. In general, I need n% (I guess n is between 0-20) of the image's area with the highest luminance to be brighter. Or (100-n)% to be darker.

Changing a histogram (creating a hole)

Hi there. This is a histogram of a grayscaled image I have:

image description

I need it to be more like this:

image description

And I wonder what's the best and efficient way to reach it. In general, I need n% (I guess n is between 0-20) of the image's area with the highest luminance to be brighter. Or (100-n)% to be darker. I tried chanigng each pixel's luminance one-by-one but it is highly ineffective.