Hello, I am trying to write a script that I can execute from the command line. I want to use the TrackMate algorithm on a stack of images.

The first example on the Scripting TrackMate page actually does almost everything I want, and I have figured out how to modify the things I need (like parameters for detection and tracking). However, I cannot figure out how to open a series of images.

The example opens a single image using
imp = IJ.openImage('https://fiji.sc/samples/FakeTracks.tif')

I am trying to open a sequence of images located in the directory myDir using
File.openSequence("/Users/myName/Desktop/myDir/");

But when I run this, I get the error
NameError: name 'File' is not defined

What am I missing about why this won’t work? Can anyone please help me with a fix for this? Thank you in advance.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *