Image Processing in Python
Rebeca Gonzalez
Data Engineer
Operations on images and videos to:
Operations to on images and videos to:
from skimage import data
rocket_image = data.rocket()
from skimage import color grayscale = color.rgb2gray(original)
rgb = color.gray2rgb(grayscale)
Don't worry about Matplotlib!
def show_image(image, title='Image', cmap_type='gray'):
plt.imshow(image, cmap=cmap_type)
plt.title(title)
plt.axis('off')
plt.show()
from skimage import color
grayscale = color.rgb2gray(original)
show_image(grayscale, "Grayscale")
Image Processing in Python