Need code for conversion of an image

1 回表示 (過去 30 日間)
Nauratul Suqda
Nauratul Suqda 2020 年 12 月 19 日
コメント済み: KALYAN ACHARJYA 2020 年 12 月 20 日
hi, i need source code on how to convert the first image to second image. i did try used median filter but it doesn't worked. hope there is solution to my problem.

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 20 日
編集済み: KALYAN ACHARJYA 2020 年 12 月 20 日
Here supposed to be group certain pixels in one group (read about qualtization levels). Same can be done using imsegkmeans function, which is K-means clustering based image segmentation
k=8; % Change the kth value as per requirement, number of segments
[L,C]=imsegkmeans(I,k);
result=label2rgb(L,im2double(C));
imshow(result);
  2 件のコメント
Nauratul Suqda
Nauratul Suqda 2020 年 12 月 20 日
thank you for the code sir.
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 20 日
:)

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by