Hi Bene,
Thanks, I wrote this little macro to display several images
corresponding to different channels.
Best,
Thomas
nb=nImages;
ids=newArray(nb);
for(i=1;i<=nb;i++) {
selectImage(i);
ids[i-1]=getImageID();
}
cols=newArray("Red","Green","Blue","Cyan","Magenta","Yellow");
run("ImageJ 3D Viewer");
for(i=0;i<nb;i++) {
selectImage(ids[i]);
nbz=nSlices;
run("Duplicate...", "title=copy_"+i+" duplicate range=1-"+nbz);
run("8-bit");
call("ij3d.ImageJ3DViewer.add", "copy_"+i, cols[i], "ima_"+i, "0",
"true", "true", "true", "1", "0");
}
Benjamin Schmid a écrit :
> Hi Thomas
>
>> I would like to add volumes inside a macro to a scene with
>> ImageJ3Dviewer, when I launch the recorder I get this command :
>> call("ij3d.Image3DViewer.add", "draw_0", "White", "draw_0", "0", "true",
>> "true", "true", "1", "0");
>>
> After searching in the ImageJ classloader class and others for a while
> now, I realized that there is just a 'J' missing in your command ;-)
>
> It should be
>
> call("ij3d.ImageJ3DViewer.add", ...)
>
> I just realized that the macro recording is wrong and fixed it. It's
> uploaded already.
>
> Thanks for pointing me to that bug,
>
> Bene
>
>
--
/**********************************************************/
Thomas Boudier, MCU Université Pierre et Marie Curie,
IFR 83. Bat B 7ème étage, porte 709, Jussieu.
Tel : 01 44 27 20 11 Fax : 01 44 27 22 91
/*******************************************************/