Macro to open image sequence
Posted by Prefoninsane on Jul 15, 2014; 12:34pm
URL: http://imagej.273.s1.nabble.com/Macro-to-open-image-sequence-tp5008738.html
I have folders full of images that I would like to import to imagej through a macro.
The macro should do the following:
1. Prompt user to choose a directory
2. Open all images in that folder (they are all .png) and import it as an image squence in numeric order.
Here is what I have so far:
dir = getDirectory("Choose Source Directory ");
list = getFileList(dir);
run("Image Sequence...", "open=[dir+list] sort");
It doesnt seem to work though, gives me error saying "no images", when there are definelty images in the?
folder I selected.
Thanks for any help!