Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by