Batch Problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Batch Problem

kelle_g
Hi all,
I am trying to create a batch process for multichannel fluorescence images
that includes splitting image to each channel and then merge these images.

<http://imagej.1557.x6.nabble.com/file/t382685/macroerror.png>

<http://imagej.1557.x6.nabble.com/file/t382685/macrocode.png>




--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Batch Problem

kelle_g
channel1= "C2-"+File.name;
channel2= "C3-"+File.name;

run("Split Channels");
run("Merge Channels...", "c1=channel1 c2=channel2 create");


//Above is the code



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Batch Problem

CARL Philippe (LBP)
Dear Kelle,
Either use the coding type Wayne showed us yesterday with:
        run("Merge Channels...", "c1=&channel1 c2=&channel2 create");
or the "more traditionnal" one with:
        run("Merge Channels...", "c1=" + channel1 + " c2=" + channel2 + " create");
Have a nice week-end,
My best regards,
Philippe


Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

----- Mail original -----
De: "kelle_g" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Dimanche 12 Juillet 2020 15:55:26
Objet: Re: Batch Problem

channel1= "C2-"+File.name;
channel2= "C3-"+File.name;

run("Split Channels");
run("Merge Channels...", "c1=channel1 c2=channel2 create");


//Above is the code



--
Sent from: http://imagej.1557.x6.nabble.com/

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Batch Problem

Schebique
In reply to this post by kelle_g
Try

run("Merge Channels...", "c1="+channel1+" c2="+channel2+" create");

On.

Dne ne 12. 7. 2020 15:55 uživatel kelle_g <[hidden email]> napsal:

> channel1= "C2-"+File.name;
> channel2= "C3-"+File.name;
>
> run("Split Channels");
> run("Merge Channels...", "c1=channel1 c2=channel2 create");
>
>
> //Above is the code
>
>
>
> --
> Sent from: http://imagej.1557.x6.nabble.com/
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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