Hello!! I'm coding in Java. I'm manipulating an image and the result till now is this:
As you can see, I found a region surrounded by the white line using Imgproc.drawContours().
Now I want to be able to crop the image taking only the internal area of the shape, discarding the rest.
Ho can I solve the problem?