I want to remove the portion of the line (highlighted by the yellow circles) where pixels form a straight vertical line segment.
If I use the strel
SE = strel('line', 5, 90);
edgesR = imerode(In_R,SE);
then the remaining lines are also being erased.
Is there any other approach here?