Professional Documents
Culture Documents
TT XLA Chapter2
TT XLA Chapter2
I M A G E P R OC E S S I N G IN P YT H
ON
Filt er
s Enhancing an image
Emphasi z e or remo v e feat u res
Smoothing
Sharpening
Edge detection
Histogram equalization
equalization
show_image(image_rotated, 'Original')
show_image(image_rotated, 'Rotated 90 degrees clockwise')
show_image(image, 'Original')
show_image(image_rotated, 'Rotated 90
degrees anticlockwise')
# Resize image
image_resized =
resize(image, (height,
width), anti_aliasing=True)
# Resize image
image_resized = resize(image, (height, width),
anti_aliasing=True)
Erosion
# See results
plot_comparison(image_horse, dilated_image, 'Erosion')