I\'m trying to select a user-defined area and fill with 1s, preferably with mouse input. Any suggestion how? Thanks.
h=impoly;
This code helps you to select a closed polygon of the image.