How to remove in rectangle area in picture

2 次查看(过去 30 天)

回答(1 个)

Walter Roberson
Walter Roberson 2017-6-29
data = imread('bw0016.png');
newdata = imopen(data,strel('disk',11));
imshow(newdata)
  8 个评论
Walter Roberson
Walter Roberson 2017-6-29
imopen() with some appropriate strel disk radius. regionprops to get the bounding box. imcrop the original using that bounding box.
I did not use imcrop in the above because you indicated that you wanted all of what was to the right of the white rectangular area.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by