Dice Similarity coefficient error map for 3D image?
52 views (last 30 days)
I am want to calculate Dice Similarity Coefficient (DSC) for 3D image and show error map (from 0 to 1). I done it for 2D. But I don't know how to apply it or change for 3D. Could you help me to find the way to calculate DSC for 3D image and display error map in matlab?
Payam Ahmadvand on 22 Feb 2016
Edited: Payam Ahmadvand on 22 Feb 2016
It doesn't matter images is 2D or 3D. If you have your segmentation in a logical volume in which 1 indicates inside the segmentation, this code can calculates Dice:
Seg1 = GroundTruthSeg(:);
Seg2 = YourSeg(:);
CommonArea=sum(Seg1 & Seg2);