MRI Image processing in MATLAB

Hello
I'm Matlab beginner...How can i reach 2th image(MRI after initial filter) of step 4 of this site:
thank you

4 Comments

@ nstrn hdr Can you please explain exactly what you are trying to achieve by "reach 2th image"?
Also please post your codes so that we can reproduce the issues.
Image Analyst
Image Analyst on 15 Feb 2020
Edited: Image Analyst on 15 Feb 2020
It looks like the code is pretty well documented and commented, though there is nothing on the page that says "MRI After" so I don't know where in the code was immediately before that call to title() where they put up that title, so I don't know which step was immediately before that.
See my own, attached tumor demo.
Thank you for your attention, but if you click on the image of the part "Step 4: Filter Out Noise From the Image" you can clearly see "MRI after initial filter" image (that I brought it under my question). furthermore, the belonging code is the 2nd image of that part too.
I saw your perfect code, but it had an error on my image bcz of it is MRI image, not CT.
Hope you bestt
i want the code

Sign in to comment.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 29 Mar 2025
Edited: KALYAN ACHARJYA on 29 Mar 2025
As per the referenced link, you can easily access the second segment image. Ensure that the original image is in the current working directory or specify the correct path.
Code:
I = imread('mri_test.png');
thresha = I>150 & I < 260;
imagesc(thresha);colormap(gray);
Result:
For a better understanding of image segmentation, please refer to the materials provided by Image Analyst in the comment section of the question.

Categories

Asked:

on 14 Feb 2020

Edited:

on 29 Mar 2025

Community Treasure Hunt

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

Start Hunting!