What's the contrast of this image?
The histogram tell us.
Just as we saw previously, you can calculate the contrast by calculating the range of the pixel intensities i.e. by subtracting the minimum pixel intensity value from the histogram to the maximum one.
You can obtain the maximum pixel intensity of the image by using the np.max()
method from NumPy and the minimum with np.min()
in the console.
The image has already been loaded as clock_image
, NumPy as np
and the show_image()
function.
Diese Übung ist Teil des Kurses
Image Processing in Python
Interaktive Übung
Setze die Theorie in einer unserer interaktiven Übungen in die Praxis um
