Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get ground truth from the dataset? How did you use as a parameter? #17

Open
bhaktikhera1 opened this issue May 3, 2019 · 0 comments

Comments

@bhaktikhera1
Copy link

How to get ground truth from the dataset? How did you use as a parameter?
Example :
def binary_dice3d(s,g):
#dice score of two 3D volumes
num=np.sum(np.multiply(s, g))
denom=s.sum() + g.sum()
if denom==0:
return 1
else:
return 2.0*num/denom

def sensitivity (seg,ground):
#computs false negative rate
num=np.sum(np.multiply(ground, seg ))
denom=np.sum(ground)
if denom==0:
return 1
else:
return num/denom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant