I liked it because it enables me to create my own Structure Element (SE) to fill the gaps. However I am not able to maintain the distances between individual objects after applying it. Objects are getting connected even after using the close method, affecting my segmentation. In this link:http://www.intelligence.tuc.gr/~petrakis/courses/computervision/binary.pdf, on page 30, it looks like its possible to maintain these distances and the formular to do so is given. Any clue or code to achieve this?