How to use imellipse for multiple images and then change them to binary image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I already read multiple images using
folder = dir('C:\Users\Demo\WD*.png');
image = cell(1,numel(folder));
for i = 1:numel(folder);
image{i} = imread(folder(i).name);
end
I would like to use the imellipse to draw an ellipse on each and every image read and then change the drawn ellipse to binary image. I tried this code but I failed to change it to binary image
h8{i} = subplot(3,3,i);
hEllipse{i} = imellipse(gca,[10 10 50 150]);
for i = 1:numel(folder)
binaryImage{i} = hEllipse{i}.createMask();
end
any help
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!