Login  Register

Re: TrackMate - incorrect nSpots in xml file

Posted by Daniel Matthews on Dec 17, 2014; 5:33am
URL: http://imagej.273.s1.nabble.com/TrackMate-incorrect-nSpots-in-xml-file-tp5010975p5010976.html

For those interested, a workaround to the problem is to amend "importTrackMateTracks" as follows:

        if detectionNodes.getLength ~= nSpots
            nSpots = detectionNodes.getLength;
        end
       
        A = NaN( nSpots, 4); % T, X, Y, Z

Which determines the real number of detections in the node, and if "nSpots" differs from this value it gets reassigned. You then need to initialise A after doing this.

Cheers,

Dan.