haesleinhuepf / BioImageAnalysisNotebooks

Python Jupyter notebooks for BioImageAnalysis, GPU-accelerated image processing, bio-image data science and more
https://haesleinhuepf.github.io/BioImageAnalysisNotebooks
BSD 3-Clause "New" or "Revised" License
115 stars 32 forks source link

fix F1 score computation #37

Open ClementCaporal opened 1 year ago

ClementCaporal commented 1 year ago

Partially? close https://github.com/haesleinhuepf/BioImageAnalysisNotebooks/issues/27

Hello,

I hope you are going well.

This PR proposes to update :

Thank you,

Clément

ClementCaporal commented 1 year ago

If it's useful, I can also add to the PR :

  1. manage image anisotropy similar to : https://haesleinhuepf.github.io/BioImageAnalysisNotebooks/19_spatial_transforms/scaling.html (plus it seems to me that the anisotropy is already relatively corrected in the recorded image)

  2. Show the evolution of the F1 score depending on the threshold

  3. propose a function that handles ambiguous cases using the greedy assignment or Hungarian assignment algorithm shown in figure DG9.1 (https://arxiv.org/abs/2206.01653) that are, if I understood correctly, preferred to validate center point detection?

  4. replace the term "spot" with "center point" to match the naming from: https://arxiv.org/abs/2206.01653

What do you think?