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

help : how to calculate the distance map, could u share any code for this? #4

Open
GLOGAN2020 opened this issue Dec 4, 2022 · 1 comment

Comments

@GLOGAN2020
Copy link

thanks for you great work for WSI image detection, I did not find the code for calculate the distance map(centerness MAP)," lymphocyte center-ness map is obtained by calculating the normalized distance from the locations within each lymphocyte mask to the corresponding manually annotated dot"

@ZhangXX54
Copy link
Owner

center-ness map is obtained by:
Gi = 255*[((Dmax-Di)-Dmin)/(Dmax-Dmin)],
where Gi is the grayscale value of a location in the _i_th cell instance, Di is the distance from that location to the corresponding manually annotated dot, and Dmin and Dmax are the nearest/farthest distances from all locations in the _i_th cell to its manually annotated dot, respectively.

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

2 participants