Dice Similarity coefficient error map for 3D image?
조회 수: 12 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
Payam Ahmadvand
2016년 2월 22일
편집: Payam Ahmadvand
2016년 2월 22일
Hi,
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(:);
VoxelsNumber1=sum(Seg1);
VoxelsNumber2=sum(Seg2);
CommonArea=sum(Seg1 & Seg2);
Dice=(2*CommonArea)/(VoxelsNumber1+VoxelsNumber2);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!