• + 1 comment

    @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 Erosion


    Also according to this OpenCV document the minimum of the pixels overlaping the kernel should be chosen.
    So the output should be :

    00110
    00110
    11111
    11111
    

    Also a few more testcases would be good