Effacer les filtres
Effacer les filtres

How to convert image to one pixel?

3 vues (au cours des 30 derniers jours)
jenifer Ask
jenifer Ask le 30 Déc 2019
How can I get from picture (main) to picture(convert) ?
I tried the following code but not the correct output.
originalImage=imread('main.png'); %
figure; imshow(originalImage)
binaryImage=im2bw(originalImage);
figure; imshow(binaryImage)
binaryImage_p = bwareaopen(binaryImage, 500);
figure; imshow(binaryImage_p)
skeletonImage = bwmorph(binaryImage, 'skel', inf);
figure; imshow(skeletonImage)

Réponses (0)

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by