segmentation medical image irm

I am doing Brain tissues MRI segmentation using PSO the output is 4 labels image (Gray Matter, White Matter, CSF) after doing segmetation i get this result . now how separate between this colors (classes) in subplots from this to this

3 commentaires

Husam Banno
Husam Banno le 21 Sep 2020
Is it possible to give me a hint about how you do the segmentation, I need to do the segmentation for something else but also related to medical images
lamis ke
lamis ke le 21 Sep 2020
  1. load image
  2. pretraitment (i used median filter to remove noise )
  3. segmentation (here i used PSO from https://www.mathworks.com/matlabcentral/fileexchange/29517-segmentation)
  4. u can use FCM https://www.mathworks.com/matlabcentral/fileexchange/43987-original-fcm-for-image-segmentation
Husam Banno
Husam Banno le 22 Sep 2020
Thanks for the information

Connectez-vous pour commenter.

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 2 Août 2020
Modifié(e) : KALYAN ACHARJYA le 2 Août 2020

0 votes

Lets say "seg_image" is the segmented image. Once segmentation, all regions have different pixels value, please check the pixel value of Gray Matter, White Matter, CSF. The respective resion must have same pixel value.
subplot(131),imshow(seg_image(seg_image==Gray_Matter_pixel value || seg_image==0);
subplot(131),imshow(seg_image(seg_image==White_Matter_pixel value || seg_image==0);
subplot(131),imshow(seg_image(seg_image==CSF_pixel value || seg_image==0);
Any issue let me know?

Catégories

Produits

Version

R2019b

Question posée :

le 12 Juil 2020

Commenté :

le 22 Sep 2020

Community Treasure Hunt

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

Start Hunting!

Translated by