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.
我正在尝试执行以下操作MATLAB:
MATLAB
1
我不确定,这将imfreehand是选择感兴趣区域的起点。然后怎样呢?
imfreehand
如何做到这一点MATLAB?
谢谢。
这是一个简短的示例。既然您提到imfreehand了,我将其包括在内,但取决于您想要创建哪种类型的投资回报率,impoly或者imrect可能做得更好:
impoly
imrect
img = im2double(imread('cameraman.tif')); imshow(img); roi = imfreehand; img2 = img; img2(roi.createMask) = 1; imshow(img2);