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
Mathieu NOE 2024 年 5 月 21 日
hello
have you tried this one ?
NB : see the comments how to tweak it for grey images
Med
Med 2024 年 5 月 21 日
J'ai essayé, mais j'ai obtenu une image noire avec des lignes gris aléatoires.
Mathieu NOE
Mathieu NOE 2024 年 5 月 21 日
can you share your original image ?
Med
Med 2024 年 5 月 21 日
Med
Med 2024 年 5 月 22 日
j'ai deja utilise kmean mais j'ai obtinu des resultats incorrecte de segmentation
Mathieu NOE
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
Med 2024 年 5 月 22 日
Merci beaucoup mon ami pour tes efforts. Tu as raison, le K-means donne des résultats très satisfaisants pour certains protocoles, mais pour un protocole TDM cérébral contenant plusieurs structures anatomiques, il ne fonctionne pas correctement. C'est pourquoi je cherche à utiliser le Shift-Mean comme alternative.
Mathieu NOE
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 件)

カテゴリ

製品

リリース

R2023b

質問済み:

Med
2024 年 5 月 19 日

コメント済み:

2024 年 5 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by