Open rittik9 opened 2 days ago
Implement a function calculate_contrast(img) that determines the contrast of a grayscale image by finding the difference between the brightest and darkest pixels. The image is represented as a 2D matrix with values between 0-255.
Sounds like a good addition
Implement a function calculate_contrast(img) that determines the contrast of a grayscale image by finding the difference between the brightest and darkest pixels. The image is represented as a 2D matrix with values between 0-255.