Skip to content

Use Euclidean distance in peak_local_max as new default #6608

@patquem

Description

@patquem

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions