We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Artificial Intelligence
- Digital Image Analysis
- Morphological Operations: Erosion with a Structuring Element
- Discussions
Morphological Operations: Erosion with a Structuring Element
Morphological Operations: Erosion with a Structuring Element
Sort by
recency
|
8 Discussions
|
Please Login in order to post a comment
import numpy as np
image = np.array([
[0, 0, 1, 1, 0],
[0, 0, 1, 1, 0],
[0, 0, 1, 1, 0],
[1, 1, 1, 1, 1]
])
row = image.shape[0]
column = image.shape[1]
arr = np.copy(image)
for i in range(row):
for j in range(column):
if i in [1,2]:
# Check up and down
if image[i-1,j] == 0 or image[i+1, j] == 0:
arr[i,j] = 0
else:
arr[i,j] = 0
for i in range(arr.shape[0]):
line = ''
for j in range(arr.shape[1]):
line += str(arr[i][j])
print(line)
The solution to this answe is solved in this website.
When choosing a bookie, it is important to nhà cái uy tÃn do your research and look for one that meets these criteria, as well as any other specific needs or preferences you may have.
Users of time-shifted media iptv service provider services have greater control over their watching experience since they may record and watch back TV programmes and other information at a later time.