|
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. However, when I run Mtrack2 from my own macro. The tracking does not work. Pleas ehelp.
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
|