2

I'm trying to select a user-defined area and fill with 1s, preferably with mouse input. Any suggestion how? Thanks.

Herr von Wurst
  • 2,571
  • 5
  • 32
  • 53
mtyurt
  • 3,369
  • 6
  • 38
  • 57

3 Answers3

3

The command

roipoly

does exactly what you're looking for.

Herr von Wurst
  • 2,571
  • 5
  • 32
  • 53
0

You'll need the Image Processing Toolbox to use roipoly as Georg suggested.

If you don't have that, you could try creating a rubber band box using

rbbox

There's a good example in the help. You might need to fiddle with units depending on how you're displaying your data. Remember to click and hold, drag and release..

Justin
  • 1,980
  • 1
  • 16
  • 25
0

h=impoly;

This code helps you to select a closed polygon of the image.

Ferdin Joe
  • 72
  • 5