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
Use Euclidean distance in peak_local_max
as new default
#6608
Comments
With |
Hello @patquem, and sorry for the late answer 🙏. |
Hello, Below is an illustration of the confusion that the current choice can cause.
|
I'd also advocate
That would probably be easiest. Alternative would be a deprecation, perhaps using a sentinel value to signal a changing default. But tagging this for the v2 API for now, so we don't forget it. |
peak_local_max
as new default
@patquem I took the liberty to make the title a bit more concise but that may be subjective. 😉 |
This is true if you consider the Euclidean 2-norm, but with the |
Hey, there hasn't been any activity on this issue for more than 180 days. For now, we have marked it as "dormant" until there is some new activity. You are welcome to reach out to people by mentioning them here or on our forum if you need more feedback! If you think that this issue is no longer relevant, you may close it by yourself; otherwise, we may do it at some point (either way, it will be done manually). In any case, thank you for your contributions so far! |
I added it to our informal todo list for skimage2 so it isn't forgotten. 😉 |
Note that I moved the list to our Wiki https://github.com/scikit-image/scikit-image/wiki/API-changes-for-skimage2. |
Description:
Hi,
It took me a while to understand why some maximum points were not detected in my case (diffraction images of a crystal).
I finally found the reason: the default choice for the distance calculation with p-norm=np.inf.
My personal representation of a distance in space tends naturally towards Euclidean distance.
So why such a choice (p_norm = inf) ? p-norm=2 wouldn't be more appropriate ?
Patrick
The text was updated successfully, but these errors were encountered: