Login  Register

Open an image sequence using a macro

Posted by Ben on Dec 23, 2013; 11:15am
URL: http://imagej.273.s1.nabble.com/Open-an-image-sequence-using-a-macro-tp5005969.html

Dear All,

I'm trying to automatically open an image sequence using a macro WITHOUT to have the Image sequence dialog pop up...

Here is my macro code:

filepath=File.openDialog("Select a dm3 File");
imageDir=File.directory;
fileList = getFileList(imageDir); 
numberSlice=fileList.length;
run("Image Sequence...", 
  "open=[&filepath]"+
  " number="+numberSlice+
  " starting=1"+
  " increment=1"+
  " scale=100 "+
  "file=[.dm3] "+
  "sort");

Unfortunately, each time I run the macro the Sequence Option dialog popup...

Is there a way to NOT display it since I already pass all the required parameters in the macro?

Thanks,

Benjamin