`из skimage.io импорт imread из matplotlib импорт pyplot как plt из skimage.filters import threshold_otsu из skimage.color import rgb2gray
plt.rcParams['figure.figsize'] = (20,10)
img_path = 'M00061_0000.jpg'
img1 = imread(img_path)
img2 = rgb2gray(img1)
threshold = threshold_otsu(img2)
img3 = img2 > threshold
fig, arr = plt.subplot(3)
arr[0] = plt.imshow(img1)
` TASK: загрузить изображение в переменную img1. Сохраните каждую дополнительную личную картинку в новую переменную, счетчик принадлежит концу переменной: img2, img3, ... # Используйте заданные имена переменных, также для img и других переменных!
#The image `M00061_0000.jpg` is used for this exercise.
#img1: load `M00061_0000.jpg` as a color image.
#img2: convert img1 to grayscale.
#img3: binarize img2 using Otsu Threshold.
#Show img1, img2, img3 in a subplot.