Filter löschen
Filter löschen

How to convert image to one pixel?

3 Ansichten (letzte 30 Tage)
jenifer Ask
jenifer Ask am 30 Dez. 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)

Antworten (0)

Kategorien

Mehr zu Graphics Object Programming 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