![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466355/image.png)
Need code for conversion of an image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nauratul Suqda
el 19 de Dic. de 2020
Comentada: KALYAN ACHARJYA
el 20 de Dic. de 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. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466045/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466045/image.png)
0 comentarios
Respuesta aceptada
KALYAN ACHARJYA
el 20 de Dic. de 2020
Editada: KALYAN ACHARJYA
el 20 de Dic. de 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);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466355/image.png)
2 comentarios
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!