Python'da Görüntü İşleme- Dilation
import matplotlib.pyplot as plt import numpy as np def convert_RGB_to_monochrome_BW (image_1,threshold =100 ): img_1 = plt . imread(image_1) img_2 = np . zeros((img_1 . shape[ 0 ],img_1 . shape[ 1 ])) for i in range (img_2 . shape[ 0 ]): for j in range (img_2 . shape[ 1 ]): if (img_1[i,j, 0 ] /3+ img_1[i,j, 1 ] /3+ img_1[i,j, 1 ] /3 ) > threshold: img_2[i,j] =0 else : img_2[i,j] =1 return img_2 def define_mask_1 (): mask_1 = [[ 1 , 1 , 1 ],[ 1 , 1 , 1 ],[ 1 , 1 , 1 ]] #mask,mask[1][2],mask[0][0],...