How to convert image to one pixel?

3 次查看(过去 30 天)
jenifer Ask
jenifer Ask 2019-12-30
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)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by