I have image
I must find stain point by arrow 1 and 2. First i must remove thin contours. Remove contour 4 is easy - FloodFill give me all points of this contour. If points in contours will a few compare to rectangle bounding area - it is thin. Only problem when contour will break by white pixel.
Problem is removing contours near stains 1) and 2) which touch this area. How can I remove point in angled line and leave stains?