Selecting a ROI manually in Matlab

后端 未结 3 1667
醉话见心
醉话见心 2021-01-22 09:10

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

相关标签:
3条回答
  • 2021-01-22 09:49

    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..

    0 讨论(0)
  • 2021-01-22 09:54

    h=impoly;

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

    0 讨论(0)
  • 2021-01-22 10:10

    The command

    roipoly
    

    does exactly what you're looking for.

    0 讨论(0)
提交回复
热议问题