필터 지우기
필터 지우기

How do i calculate Tp, Fp, Dice coefficient for a histopathological image of breast cancer. My code gives accurate results for ultrasound images, but it gives wrong results for tp, fp, and dice? please help me in this.

조회 수: 4 (최근 30일)
i am attaching the evaluation code and image with its ground truth,
function [Jaccard,Dice,rfp,rfn]=sevaluate(m,o)
% gets label matrix for one tissue in segmented and ground truth
% and returns the similarity indices
% m is a tissue in gold truth
% o is the same tissue in segmented image
% rfp false pasitive ratio
% rfn false negative ratio
m=m(:);
o=o(:);
common=sum(m & o);
union=sum(m | o);
cm=sum(m); % the number of voxels in m
co=sum(o); % the number of voxels in o
Jaccard=common/union;
Dice=(2*common)/(cm+co);
rfp=(co-common)/cm;
rfn=(cm-common)/cm;
  댓글 수: 7
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 24일
  • First, do the steps for 1 segmentation method, 1 ROC curve
  • Second, do the same for another segmentation technique-2nd ROC curve
  • So on..you can compare..all ROC curves from ROC space.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Biomedical Imaging에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by