S. Pagakis (IIBEAA) a écrit :
> Hi
>
> Do the twain acquisition plugins have timelapse functionality?
>
> I mean capturing a movie to disk, either as fast as possible or with a
> predefined time wait period between frames?
>
> If not, is there a plugin that can do this?
>
> Thank you
>
>
Hello,
Like Richard, I made a macro for a friend of mine. As said in the plugin
"Twain", I used a "run" function --To avoid the TWAIN select source
dialog, run from a macro using run("Twain 6", "default")-- like this.
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));
}
As far as I know, it works fine for her.
--
CHAMOT Christophe
---------------------------------------------------------------------
Plate-Forme de Recherche IFR117
"Imageries des Processus Dynamiques
en Biologie Cellulaire et Biologie du Développement "
Institut Jacques Monod, CNRS, Universités Paris 6 et 7
2, place Jussieu - Tour 43
75251 Paris cedex 05
Tel: 01 44 27 57 84
http://www.ijm.jussieu.fr/---------------------------------------------------------------------