Mtracck2 problems
Posted by sjvinay on Sep 13, 2010; 11:48am
URL: http://imagej.273.s1.nabble.com/Mtracck2-problems-tp3686926.html
Dear All,
I am writing a macro to track nuclei from a live cell imaging movie. I am
using Mtrack2 to automate the tracking. I am having several problems with
this macro. It seems that the macro is not able to generate tracks from
binary images of DAPI stained nuclei. However, when I invert the images to a
white foreground, the Mtrack2 algorithm works when i use it manually with the imagej.
However, when I run Mtrack2 from my own macro. The tracking does not work.
Please help.
I have put my code below. stackpath is the path to the stack of
images(binary images of nuclei)
stackPath = stackFolder + "Stack.tif";
open(stackPath);
run("Invert","stack");
call("MTrack2_.setProperty","minSize","50");
call("MTrack2_.setProperty","maxSize","2000");
call("MTrack2_.setProperty","minTrackLength","3");
call("MTrack2_.setProperty","maxVelocity","4");
call("MTrack2_.setProperty","saveResultsFile","false");
call("MTrack2_.setProperty","showPaths","true");
call("MTrack2_.setProperty","showPathLengths","true");
call("MTrack2_.setProperty","showLabels","false");
call("MTrack2_.setProperty","showPositions","true");
call("MTrack2_.setProperty","skipDialogue","true");
run("MTrack2");
regards,
Vinay