Need code for conversion of an image

1 Ansicht (letzte 30 Tage)
Nauratul Suqda
Nauratul Suqda am 19 Dez. 2020
Kommentiert: KALYAN ACHARJYA am 20 Dez. 2020
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.

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 20 Dez. 2020
Bearbeitet: KALYAN ACHARJYA am 20 Dez. 2020
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 Kommentare
Nauratul Suqda
Nauratul Suqda am 20 Dez. 2020
thank you for the code sir.
KALYAN ACHARJYA
KALYAN ACHARJYA am 20 Dez. 2020
:)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by