slow 2D point import

Issue #220 closed
J.D. Laurence-Chasen created an issue

Hey Ben,

Not sure if this is a bug or not, but when we import 2D points (from a csv), it takes a very long time (multiple minutes), and occasionally crashes. This seems strange. Is that (long import time) expected?

Thanks

JD

Comments (9)

  1. Benjamin Knorlein

    Hi JD,

    Not sure. It will of course depend on the size of the file (length of the video and number points), but also where the file is stored etc. Can you upload me an xma-file and a csv which i can test. Also the xma-file you are importing has the videos loaded or not? It might require the videos loaded as it might have to rescale some internal variable otherwise which can take some while.

    Ben

  2. Benjamin Knorlein

    Hi JD,

    I checked the code and tested and there is not much i can do when it comes to speed. the problem is that it has to undistort/distort all the points and triangulate 3D positions, so for all the frames and markers that might take a while, I also checked why it might crash and one thing i noticed is that it needs to have the trial images/sequences loaded or it crashes. This will be easier with the new release as it also saves the sequence length in the xma-file. Otherwise it worked for me fine.

    I will close the issue. Sorry.

    Ben

  3. J.D. Laurence-Chasen reporter

    Not a problem! Thanks for checking, Ben. I actually wrote a matlab function that automatically generates new XMALab files based on an existing one and a new set of 2D points, so I don’t need to use the imp 2d points functional anyway!

  4. Log in to comment