MRI Image processing in MATLAB
Show older comments
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
Subhadeep Koley
on 15 Feb 2020
Also please post your codes so that we can reproduce the issues.
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.
nstrn hdr
on 20 Feb 2020
G
on 29 Mar 2025
i want the code
Answers (1)
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
Find more on Neuroimaging in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!