Troubles with the Interactive 3D plugin

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

Troubles with the Interactive 3D plugin

Philip Ershler
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_Plot.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
Reply | Threaded
Open this post in threaded view
|

Re: Troubles with the Interactive 3D plugin

David Hovis
I get that error.  I've been meaning to report it for a while.  I  
think it crept in in the last few months.

It seems to happen to me anytime the LUT is not Grays.  If I set the  
LUT back to Grays, then it will work fine.

--David


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

Re: Troubles with the Interactive 3D plugin

Philip Ershler
David,
        Thanks for clearing up the the mystery of why it only crashes  
sometimes. If you take the image in greyscale then you can put a LUT  
on it. That brings up another question, is there any way to add  
additional LUTs to the list in Interactive 3D? I have a particularly  
good LUT that I built for the kind of data I work with.

Thanks, Phil

On Aug 7, 2007, at 5:05 AM, David Hovis wrote:

> I get that error.  I've been meaning to report it for a while.  I  
> think it crept in in the last few months.
>
> It seems to happen to me anytime the LUT is not Grays.  If I set  
> the LUT back to Grays, then it will work fine.
>
> --David
>
>
> 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_Plot.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
Reply | Threaded
Open this post in threaded view
|

Re: Troubles with the Interactive 3D plugin

David Hovis
When I need a special lookup table,  I usually apply the LUTed image  
as a texture as a workaround.   I've been meaning to bring up this  
bug for a while, but I haven't gotten to it.

--David


On Aug 7, 2007, at 1:58 PM, Philip Ershler wrote:

> David,
> Thanks for clearing up the the mystery of why it only crashes  
> sometimes. If you take the image in greyscale then you can put a  
> LUT on it. That brings up another question, is there any way to add  
> additional LUTs to the list in Interactive 3D? I have a  
> particularly good LUT that I built for the kind of data I work with.
>
> Thanks, Phil
>
> On Aug 7, 2007, at 5:05 AM, David Hovis wrote:
>
>> I get that error.  I've been meaning to report it for a while.  I  
>> think it crept in in the last few months.
>>
>> It seems to happen to me anytime the LUT is not Grays.  If I set  
>> the LUT back to Grays, then it will work fine.
>>
>> --David
>>
>>
>> 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_Plot.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
Reply | Threaded
Open this post in threaded view
|

Re: Troubles with the Interactive 3D plugin

Wayne Rasband
In reply to this post by Philip Ershler
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
>
Reply | Threaded
Open this post in threaded view
|

Re: Troubles with the Interactive 3D plugin

Philip Ershler
Great, and this also solves the other problem I was asking about.  
That is, how can you get more color tables into the Interactive 3D  
plugin? Set the image to 8 bits, put the color table on the image you  
want, and then take the image into the 3D plugin.

Thanks again,

Phil

On Aug 7, 2007, at 2:45 PM, Wayne Rasband wrote:

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

Re: Troubles with the Interactive 3D plugin

Barthel, Kai Uwe
I have fixed this problem in the new version of the plugin.

Kai

> Great, and this also solves the other problem I was asking about.  
> That is, how can you get more color tables into the Interactive 3D  
> plugin? Set the image to 8 bits, put the color table on the image  
> you want, and then take the image into the 3D plugin.
>
> Thanks again,
>
> Phil
>
> On Aug 7, 2007, at 2:45 PM, Wayne Rasband wrote:
>
>> 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_Plot.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
>>>