Hi
I am an absolute beginner with Imagej so please bear with me.
I have a camera that has TWAIN drivers. I have installed the plugin as per the instructions at
http://rsb.info.nih.gov/ij/plugins/twain.htmlAs per:
1. Download Twain_6.class to the plugins folder.
2. Download the Morena framework for Windows from
http://www.gnome.sk/ and extract the files to a temporary folder.
3. Copy morena.jar, morena_windows.jar and morena_license.jar to the ImageJ\jre\lib\ext folder.
4. Restart ImageJ.
If I create a shortcut it starts fine and the TWAIN interface comes up.
What I would like to do is to do timelapse. I got some script:
dir=getDirectory("Images path");
Dialog.create("Timelapse");
Dialog.addNumber("Time beetween lapses", 1.0);
Dialog.addNumber("Number of lapses", 2);
Dialog.show();
delay=Dialog.getNumber();
nb=Dialog.getNumber();
i=1;
while(i<=nb){
tps1=getTime();
run("Twain 6", "default");
//run("Lena (47K)");
rename("image"+i);
name=getTitle();
run("Save", "save="+dir+name+".tif");
close();
tps2=getTime();
i++;
wait((1000*delay)-(tps2-tps1));
//write(""+(tps2-tps1));
}
When I run this, it starts fine, asks for a directory to put the images, then opens a small window asking for the number of images and the time in between on pressing OK it gets to the line
run("Twain 6", "default"); ”Twain 6 command unknown”.
I have no idea why and any pointers would be massively appreciated.
Jonathan