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