How to remove in rectangle area in picture

2 views (last 30 days)

Answers (1)

Walter Roberson
Walter Roberson on 29 Jun 2017
data = imread('bw0016.png');
newdata = imopen(data,strel('disk',11));
imshow(newdata)
  8 Comments
Walter Roberson
Walter Roberson on 29 Jun 2017
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.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!