Login  Register

Re: Troubles with the Interactive 3D plugin

Posted by Wayne Rasband on Aug 07, 2007; 9:45pm
URL: http://imagej.273.s1.nabble.com/Troubles-with-the-Interactive-3D-plugin-tp3698664p3698665.html

You get this exception with 16 and 32 bit images that have a color LUT.  
You can work around the problem by converting the image to 8 bits  
before running the Interactive 3D plugin.

-wayne

On Aug 6, 2007, at 8:36 PM, Philip Ershler wrote:

> Hi,
> I have been working with the Interactive 3D plugin in ImageJ 1.38X in  
> OS X 10.4.10. Most times the plugin works beautifully, but on some  
> occasions as soon as I try to run the plugin, I get the following  
> exception. Most time it works, but at times this is what I get. Any  
> suggestions?
>
> java.lang.ClassCastException: [S
> at jRenderer3D.SurfacePlot.setSurfacePlotImage(SurfacePlot.java:99)
> at jRenderer3D.JRenderer3D.setSurfacePlot(JRenderer3D.java:754)
> at  
> Interactive_3D_Surface_Plot.create3DRenderer(Interactive_3D_Surface_Plo
> t.java:344)
> at  
> Interactive_3D_Surface_Plot.runApplication(Interactive_3D_Surface_Plot.
> java:296)
> at  
> Interactive_3D_Surface_Plot.run(Interactive_3D_Surface_Plot.java:283)
> at ij.IJ.runUserPlugIn(IJ.java:158)
> at ij.IJ.runPlugIn(IJ.java:124)
> at ij.Executer.runCommand(Executer.java:95)
> at ij.Executer.run(Executer.java:49)
> at java.lang.Thread.run(Thread.java:613)
>
> Thanks for EVERYTHING,
>
> Phil
>