Question: In Python: Below is the Given Code %matplotlib inline import matplotlib.pyplot as plt import imageio import scipy.ndimage as nd url = 'https://raw.githubusercontent.com/joefoxva1/CDS468/master/Lecture_6_7_8_9/alien73.png' amg = imageio.imread(url,as_gray=True)

 In Python: Below is the Given Code %matplotlib inline import matplotlib.pyplot

In Python: Below is the Given Code

%matplotlib inline import matplotlib.pyplot as plt import imageio import scipy.ndimage as nd

url = 'https://raw.githubusercontent.com/joefoxva1/CDS468/master/Lecture_6_7_8_9/alien73.png' amg = imageio.imread(url,as_gray=True)

bmg = nd.binary_dilation(amg, iterations=12) ^ nd.binary_dilation(amg, iterations=9) cmg = nd.binary_dilation(amg, iterations=6) ^ nd.binary_dilation(amg, iterations=3)

dmg = amg + bmg ^ cmg

plt.title('Original Image') plt.imshow(amg, cmap='gray') plt.show()

plt.title('Three Dialation Image') plt.imshow(dmg, cmap='gray') plt.show()

'sebeu! Bu!|nsed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!