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

Linear LAP Tracker fails when no spots is present in the first frame #86

Closed
hadim opened this issue Jun 15, 2016 · 6 comments
Closed

Linear LAP Tracker fails when no spots is present in the first frame #86

hadim opened this issue Jun 15, 2016 · 6 comments

Comments

@hadim
Copy link
Contributor

hadim commented Jun 15, 2016

I have the following error :

Exception in thread "TrackMate tracking thread" java.lang.IllegalArgumentException: loops not allowed
    at org.jgrapht.graph.AbstractBaseGraph.addEdge(Unknown Source)
    at fiji.plugin.trackmate.tracking.kalman.KalmanTracker.process(KalmanTracker.java:284)
    at fiji.plugin.trackmate.TrackMate.execTracking(TrackMate.java:254)
    at fiji.plugin.trackmate.gui.descriptors.TrackingDescriptor$1.run(TrackingDescriptor.java:55)

Using last Fiji 3.3.0 version.

@hadim
Copy link
Contributor Author

hadim commented Jun 15, 2016

It's weird cuz it's working "sometime" with different images on my dataset... I'll let you know as soon as I can find the common parameters that arise when it's not working,

@tinevez
Copy link
Member

tinevez commented Jun 15, 2016

Apparently it's trying to link a spot with itself, which is forbidden.
I suspect either

  • a problem with multihtreading.
  • a problem with spot equality.

Any chance you would update the title of the issue to something more specific?

@hadim hadim changed the title Linear LAP Tracker not working Linear LAP Tracker : Exception in thread "TrackMate tracking thread" java.lang.IllegalArgumentException: loops not allowed Jun 15, 2016
@hadim
Copy link
Contributor Author

hadim commented Jun 15, 2016

If you have idesa for more tests I could do, tell me because I can't find a strict way to reproduce the error.

@tinevez
Copy link
Member

tinevez commented Jun 15, 2016

To be honest I cannot reproduce the problem. But it does not mean it is not real.

What would help as always is an image with parameters to reproduce the problem here.

For the multithreading problem, try to see if setting the number of threads available to the tracker to exactly 1 solves it or not.

@hadim
Copy link
Contributor Author

hadim commented Jun 15, 2016

I got it. This is because the first frame is just a black image that contain no spots. If I remove the first image, I don't have the bug anymore.

(I have a first only black image because I do a subtraction in time of stack)

@tinevez
Copy link
Member

tinevez commented Jun 15, 2016

So thisis a bug. TrackMate should not fail there.
Congratulations! Can you change the name of the issue again?

@hadim hadim changed the title Linear LAP Tracker : Exception in thread "TrackMate tracking thread" java.lang.IllegalArgumentException: loops not allowed Linear LAP Tracker fails when no spots is present in the first frame Jun 15, 2016
tinevez added a commit that referenced this issue Mar 21, 2017
The Kalman tracker was unable to process if the first two frames
contained zero spots.
Noted by @hadim.
Fix #86.
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