Filter löschen
Filter löschen

How to use imellipse for multiple images and then change them to binary image

1 Ansicht (letzte 30 Tage)
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

Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by