Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Hello-tp3689769p3689775.html
Hi Frank,
probably the easiest is a macro that sets the default directory. You can
combine it with the File>Import>Image Sequence command, e.g. set the
directory to somewhere else after importing.
The following macro calls will help you:
//get the current default directory:
myDefaultDir = call("ij.io.OpenDialog.getDefaultDirectory");
//set the default directory:
call("ij.io.OpenDialog.setDefaultDirectory", myNewDefaultDir);
Under Windows, where directory names have backslashes, note that you have
to write double backslashes into a String to get one, e.g.
myNewDefaultDir = "C:\\Documents and Settings\\user1\\";
Michael
_______________________________________________________________________
On Sun, January 10, 2010 15:45, Franklin Shaffer wrote:
> I am using ImageJ on stacks of images from high speed videos. I typically
> have more than 150,000 image files in each folder. When use File-->Image
> Sequence, it opens the last folder I worked on. The problem is that it is
> usually a folder with 150,000 files, and it takes 15-30 seconds before I
> see the files in the folder. Then when I click on a different folder, I
> have another wait of 15-30 seconds. Since I'm working on these images all
> day, these delays are bothersome.
>
> My question is: is there a way to specify which folder is opened when I
> use File-->Image Sequence ?
> I would like to specify that folder to be one that has no images. This
> will avoid the 15-30 second delays every time I open a sequence of images.
>
> Thank you!
> Frank Shaffer
> USDOE National Energy Technology Lab
>