Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to find the volume of a region in a segmented image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I segmented an MR image and have 3 regions, backgound with pixel value of 0, gray matter with pixel value of 1 and white matter of pixel value of 2. How can I get the volume of each of those regions?
0 Kommentare
Antworten (1)
Matt J
am 15 Mai 2021
stats = regionprops3(segmentationMap,'Volume')
3 Kommentare
Image Analyst
am 15 Mai 2021
Why not? Why prevent yourself from using a built-in function? Your post is not labeled as homework, which is usually the reason, so why not use it?
I was going to assume that you had 3 binary images, one for each segmentation that you want to do (background, gray matter, white matter) and that you could simply use nnz() on each binary image, but unfortunately you probably won't let yourself use nnz() either.
To find out what you can use, read this:
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!