Loading...
Implement a point operator to adjust the contrast of an image by modifying its pixel values. This task involves applying a simple transformation to each pixel in the image.
The concept of contrast adjustment is fundamental in image processing, as it enables the enhancement or reduction of the difference between various regions in an image, making it more visually appealing or suitable for further analysis. The contrast of an image can be adjusted by applying a multiplication factor, denoted as α, to each pixel value, Iin(x,y).
Here are the steps to achieve contrast adjustment:
This technique is widely used in digital photography and image editing software.
adjust_contrast([[100, 200]], 1.5)
[[150, 255]]