I have following picture
which I extract the contour from. The contour looks like following
I am wondering, for any pixel in the image, how do I determine if it is inside the contour or not? Say "inside" here means any pixel in the body.
If possible, I'd prefer simple, direct, and elegant algorithm. Thanks.