Extracting part of image with most area before contour
Hello In my image I detect the blue line (through blobs) make a close rectangle on the blob take the bottom of the rectangle and split the image to the top and bottom half over my red line(sorry it is not a straight line). But my problem is how can I extract the part of the image on top of the blue line with the most of area taken (where I drew the red line (obviously I don't know exactly if I took the most area but that is the general idea)
Its very unclear to me what you want? Can you carefully again try to explain in more detail?
The area above the blue line with a curve has water in it. The area below the blue line does not have water thus you see the dead fungus in it I need to examine those two areas seperatly. As the blue line is curved and not a straight one how can I extract those regions?
@ilia , -- why did you try to remove the image ? the question does not make any sense without it !