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.
Morphological Operations: Dilation
Morphological Operations: Dilation
Sort by
recency
|
8 Discussions
|
Please Login in order to post a comment
Could have used Plain Text instead as an easier option. Psst, the answer is 59 in the Plain Text.
DON'T UNDERSTAND WHY RUNTIME ERROR, MY PROGRAM IS IN PYTHON3
import numpy as np
img = np.array([ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ])
def dilation(image): count = 0
result = dilation(img) print(int(result))
There is no any information about input, can you post instructions?