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.
@PRASHANTB1984 I think the output shown is wrong.Erosion should make the white(1) bits smaller and the black(0) bits bigger as you can see in the below image
Also according to this OpenCV document the minimum of the pixels overlaping the kernel should be chosen.
So the output should be :
00110001101111111111
Also a few more testcases would be good
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Morphological Operations: Erosion with a Structuring Element
You are viewing a single comment's thread. Return to all comments →
@PRASHANTB1984 I think the output shown is wrong.Erosion should make the white(1) bits smaller and the black(0) bits bigger as you can see in the below image
Also according to this OpenCV document the minimum of the pixels overlaping the kernel should be chosen.
So the output should be :
Also a few more testcases would be good