Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试选择一个用户定义的区域并用 1 填充,最好用鼠标输入。有什么建议吗?谢谢。
命令
roipoly
完全符合您的要求。
您需要按照 Georg 的建议使用图像处理工具箱。roipoly
如果你没有,你可以尝试使用创建一个橡皮筋盒
rbbox
帮助中有一个很好的例子。根据您显示数据的方式,您可能需要调整单位。记得单击并按住,拖动和释放..
h=impoly;
此代码可帮助您选择图像的闭合多边形。