my input image has lines and other objects at the border of image. i want to remove only lines retaining objects. when i used imclearborder it removed all objects which are touching the border. But i want only the lines to be deleted. I have attached sample input and expected output image for reference.
Thanks in Advance