MRI Image processing in MATLAB

31 views (last 30 days)
nstrn hdr
nstrn hdr on 14 Feb 2020
Edited: KALYAN ACHARJYA on 29 Mar 2025
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
nstrn hdr on 20 Feb 2020
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
G
G on 29 Mar 2025
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

Find more on Neuroimaging in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!