create multi mask using ROI Freehand
Show older comments
clc;clear;close all
im=imread("circlesBrightDark.png");
image=imshow(im);
for i=1:4
roi(i)=images.roi.AssistedFreehand(image);
draw(roi(i))
hold on
roi(i+1)=images.roi.AssistedFreehand(image);
draw(roi(i+1))
end
for i=1:2
for j=1:2
mask=roi(i).createMask | roi(i+j).createMask ;
end
end
1 Comment
Amir Azadeh Ranjbar
on 29 Dec 2021
Accepted Answer
More Answers (1)
Amir Azadeh Ranjbar
on 29 Dec 2021
0 votes
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!