Giter VIP home page Giter VIP logo

Comments (4)

cyang-kth avatar cyang-kth commented on August 17, 2024

@treerapot123

I am not quite sure about your problem. The optimal path (opath below) contains the edge matched for each point in a trajectory. Is that what you need?

https://fmm-wiki.github.io/docs/documentation/output/

from fmm.

treerapot123 avatar treerapot123 commented on August 17, 2024

Thank you very much for quick reply. i like to assign the timestamp from 5 GPS points (orange points from original trajectory shown in above figure) to matched edge (in opath) . For instance, given the time stamps of GPS points to be (t1,t2,t3,t4,t5) respectively.
If, say, the 2th orange point (original trajectory) can not be matched, so opath = 2,13,14,23. Under this case, i can not map timestamps (t1,t2,t3,t4,t5) to the matched edge in opath (2,13,14,23), please.
So, is it possible to also assign the index of points to matched edge in opath (say, opath = 2(1), 13(3), 14(4), 23(5)) where value in (...) is the index of points.)

from fmm.

cyang-kth avatar cyang-kth commented on August 17, 2024

@treerapot123

Now I understand your problem. The master branch version of the fmm does not handle this unmatched point problem. If t2 is not matched, then the whole trajectory is skipped and not matched.

However, a separate segmentation branch actually addressed this issue (it is not fully tested so not merged into the master)

https://github.com/cyang-kth/fmm/tree/feature-segmentation

where if t2 is not matched, the opath field will have a value of -1 so you can iterate through the same timestamps and check if there are any value of -1 in opath.

1;2,2,13,-1,14,23;2,5,13,-1,14,23;2|2,5,13|13,-1|-1,14|14,23;0.792391,0.788102,0.896001,0,0.975345,0.966437;0.999961,0.756067,0,0,0.895804;MULTILINESTRING((2 0.250988700565,2 0.701836158192),(2 0.701836158192,2 1,2 2,2.49336158192 2),(),(),(3.54929378531 2,4 2,4 2.45776836158))

You can check this example for more detailed illustration

https://github.com/cyang-kth/fmm/tree/feature-segmentation/example/segment

You need to clone that branch using

git clone -b feature-segmentation [email protected]:cyang-kth/fmm.git

from fmm.

treerapot123 avatar treerapot123 commented on August 17, 2024

Thank you very much. That is what i need please.

from fmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.