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

get aligned points between two curve or trajectory #24

Open
miladad8 opened this issue Sep 5, 2022 · 5 comments
Open

get aligned points between two curve or trajectory #24

miladad8 opened this issue Sep 5, 2022 · 5 comments

Comments

@miladad8
Copy link

miladad8 commented Sep 5, 2022

is there any way to get aligned and matched points between two compared trajectory or curves in frechet distance?

thank you very much.

@cjekel
Copy link
Owner

cjekel commented Sep 5, 2022 via email

@miladad8
Copy link
Author

miladad8 commented Sep 5, 2022

Thank you. Are the similarity path in DTW and Frechet the same for a pair of trajectories? I have a couple of trajectories and i want to return the similarity path between my target trajectory and the most similar trajectory( retrieved from frechet distance). Can I use the frechet metric for returning the most similar trajectory, and then use the dtw_path for returning the similarity path?

@cjekel
Copy link
Owner

cjekel commented Sep 23, 2022

It's not a one to one if that makes sense. The frechet distance is like the shortest leash, while DTW is more like a cumulative leash (or distance).

That said, I don't know your use cases. If you need a number to judge similarity, then the frechet distance is fine. If you also need a path trajectory, then the dtw path is fine.

@miladad8
Copy link
Author

I was hoping i could use every metrics separately for similarity score and similarity path. I know it is possible in both DTW and LCSS to get the similarity value and the similarity path separately. But I am not sure it is possible in Frechet distance. So far all the implementations I've seen are just return the similarity value. I don't care for one to one alignments in similarity path and it makes sense that one point aligns to multiple points and that's what I get in DTW right now. I'm looking for a similarity path specific to Frechet.

@cjekel
Copy link
Owner

cjekel commented Oct 8, 2022

I think it's okay to use the metrics separately.

It does not really make sense to get a similarity path specific to Frechet. It is not really a path. It is more like a single point from each curve, because the distance between those two points is the discrete Frechet distance. You can think of those points as the limiting points for the 'shortest leash'.

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