Blurring Smoothing Morphology
Blurring Smoothing Morphology
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
In [ ]: #load_img()
In [6]: i = load_img()
display_img(i)
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
In [20]: kernel
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
reseteo
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
reseteo
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
reseteo
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
reseteo
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
Operadores Morfológicos
In [54]: def load_img2():
blank_img = np.zeros((600,600))
font = cv2.FONT_HERSHEY_SIMPLEX
cv2.putText(blank_img, text='ABCDE',org=(50,300), fontFace=font, fontScale=5, color=(255,255,255), thickness=25)
return blank_img
In [68]: #display_img2(white_noise)
In [91]: img.max()
Out[91]: 255.0
In [102… black_noise
In [106… black_noise.min()
Out[106… 0.0
In [107… display_img2(black_noise)
In [109… display_img2(closing)
In [ ]: