Login  Register

Re: Help Merge images

Posted by OBEID Patricia 154904 on Apr 12, 2017; 3:07pm
URL: http://imagej.273.s1.nabble.com/Help-Merge-images-tp5018520p5018525.html


Thanks Eric but it doesn't work either ... :-(
Patricia

________________________________________
De : ImageJ Interest Group [[hidden email]] de la part de DENARIER Eric
Envoyé : mercredi 12 avril 2017 16:53
À : [hidden email]
Objet : Re: Help Merge images

Hi Patricia,

It seems you are missing a [i] in line 20 :

channels = "green = ["+list[i]+"] red = ["+fileF+"] ";

shoud be : channels = "green = ["+list[i]+"] red = ["+fileF[i]+"] ";


Eric Denarier
Grenoble Institut des Neurosciences
Inserm U1216
Chemin Fortuné Ferrini
38700 La Tronche
France

Tél :33 (0)4 565 205 38

http://neurosciences.ujf-grenoble.fr/

Le 12/04/2017 à 15:22, Patricia OBEID a écrit :

> Hello everyone
> I have a problem with a script that worked. Today, I can not make a superimposition of images and I do not understand where the problem is ...
> Any help will be welcome. (I don't know how attach images to my message. The previous mail with images was rejected ...)
> Thank you
> Patricia
>
> The script is :
>     dir = getDirectory("Choose a Directory ");
>     dir2 = getDirectory("Choose Destination Directory ");
>
>        list = getFileList(dir);
>        setBatchMode(true);
>        for (i=0; i<list.length; i++) {
>               if (endsWith(list[i], "d1.C01")){
>
>               //Ouvre le fichier CTOr
>                       path = dir+list[i];
>                       //run("Bio-Formats Windowless Importer","open=[path] open_files");
>                       open(path);
>                       setMinAndMax(800, 20000);
>
>               //Ouvre le CE
>                       pathF = replace(path, "d1.C01", "d0.C01");
>                       fileF = replace(list[i], "d1.C01", "d0.C01");
>                       open(pathF);
>                       setMinAndMax(1000, 1800);
>
>                       channels = "green = ["+list[i]+"] red = ["+fileF+"] ";
>                       run("Merge Channels...", channels);
>
>                       pathRGB = dir2 + replace(list[i], "d1.C01", "RGB.TIF");
>                       saveAs("Tiff", pathRGB);
>                       }
>        }
>
> print("C'est fini");
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html