shift-mean pour l'image
이전 댓글 표시
S'il vous plaît, j'ai besoin d'un code d'algorithme Shift Mean pour la segmentation d'une image en niveaux de gris. Si quelqu'un peut m'aider, merci d'avance.
댓글 수: 9
Mathieu NOE
2024년 5월 21일
hello
have you tried this one ?
NB : see the comments how to tweak it for grey images
Med
2024년 5월 21일
Mathieu NOE
2024년 5월 21일
can you share your original image ?
Med
2024년 5월 21일
Mathieu NOE
2024년 5월 22일
편집: Mathieu NOE
2024년 5월 22일
there are some solutions already available on the internet - have you tried them already ?
and probably a lot more ....
Med
2024년 5월 22일
Mathieu NOE
2024년 5월 22일
I am not an image processing expert, but I tried a couple of options, and this one seems to me quite interesting - also because it does not require any toolbox
Result obtained with 5 clusters

im = imread('image.png');
im = rgb2gray(im);
[label_im,vec_mean] = kmeans_fast_Color(im,5);
imshow(label_im,[])
Med
2024년 5월 22일
Mathieu NOE
2024년 5월 24일
hello again
there are some other shift mean image processing Fex submissions available
I don't know exactly what kind of results you want to achieve , so I let you try
all the best
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

