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

Compute distance between a point and a line #368

Open
sfmig opened this issue Dec 13, 2024 · 0 comments
Open

Compute distance between a point and a line #368

sfmig opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New optional feature

Comments

@sfmig
Copy link
Contributor

sfmig commented Dec 13, 2024

Is your feature request related to a problem? Please describe.
It would be useful to add functionality to compute the distance between a point and a line. That is the distance of the segment perpendicular to the line that passes through the point.

We may want to make a solution that supports both 2D and 3D data.

Additional context
We can use shapely for this, or maybe wrap it for a line drawn in the napari GUI?

A quick search took me to this napari-shapely snippet but maybe there is something more sophisticated out there.

The line in 2D could for example represent a plane (e.g. a wall) in a top view, which is relevant for boundary vector cells analyses.

Related to #370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New optional feature
Projects
Status: 🤔 Triage
Development

No branches or pull requests

1 participant