I have this code for segmentation, I have problem with this points (line):
I don´t know, why is this line on this place, because there isn´t some white place in binary image.
I don´t know, where is mistake. I attach my code and original image. Thank you for your answers.