How to calculate dice overlap for MRI images?
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sandhiya Prakash
el 24 de Mzo. de 2017
Respondida: Tobias Goodwin-Allcock
el 25 de Feb. de 2021
hi! I want to calculate dice overlap for complete tumor ,tumor core and enhancing tumor core.suggest me a way to do it.Thanks in advance.
2 comentarios
Respuestas (1)
Tobias Goodwin-Allcock
el 25 de Feb. de 2021
Hi Sandhiya!
You can load the tumor volume masks into matlab using niftiread and then compute the Sørensen–Dice coefficient using dice function.
Say you have CompleteTumorMask.nii.gz and TumorCoreMask.nii.gz in your current directory then you can calculate the dice overlap as follows:
% Load the tumor masks
CompleteTumorMask = niftiread("CompleteTumorMask.nii.gz")
TumorCoreMask = niftiread("TumorCoreMask.nii.gz")
% Compute the dice overlap
CompleteTumor_TumorCore_Overlap = dice(CompleteTumorMask, TumorCoreMask)
I hope this helps!
Toby
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!