(3-38), the equation for contrast stretching is given as:
g(x,y) = (f(x,y) - min) * ((new_max - new_min) / (max - min)) + new_min
where:
- g(x,y) is the output image
- f(x,y) is the input image
- min and max are the minimum and maximum intensity values in the
Show more…