could not add a volume in imageJ3DViewer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

could not add a volume in imageJ3DViewer

Thomas Boudier
Hi,

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");

but when I try to run this command in a macro I have a error message :
could not load class ij3d.Image3DViewer.

I've updated today the jar file of ImageJ3DViewer, this error did not
occured with the previous version.

Any idea ?

Thanks

Thomas


--
   /**********************************************************/
      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
/*******************************************************/
Reply | Threaded
Open this post in threaded view
|

Re: could not add a volume in imageJ3DViewer

Benjamin Schmid-2
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
Reply | Threaded
Open this post in threaded view
|

Re: could not add a volume in imageJ3DViewer

Thomas Boudier
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
/*******************************************************/