Multiple Image Processor

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

Multiple Image Processor

Simon Roussel
Hi,
When attemting to use the Multiple Image Processor on ImageJ 1.38i
(http://ciar.rcm.upr.edu/projects/imageprocessor/multiples), I get the
following error message:

java.lang.ClassCastException: [Ljava.lang.Object;
        at ij.io.ImageWriter.write(ImageWriter.java:195)
        at ij.io.TiffEncoder.write(TiffEncoder.java:103)
        at ij.io.FileSaver.saveAsTiff(FileSaver.java:83)
        at MultipleImageProcessor.save(MultipleImageProcessor.java:541)
        at MultipleImageProcessor.convert(MultipleImageProcessor.java:513)
        at MultipleImageProcessor.run(MultipleImageProcessor.java:438)
        at ij.IJ.runUserPlugIn(IJ.java:268)
        at ij.IJ.runPlugIn(IJ.java:123)
        at ij.Executer.runCommand(Executer.java:95)
        at ij.Executer.run(Executer.java:49)
        at java.lang.Thread.run(Unknown Source)

Does anyone get the same problem ?
Thanks
simon
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Image Processor

dscho
Hi,

On Thu, 15 Feb 2007, Simon Roussel wrote:

> When attemting to use the Multiple Image Processor on ImageJ 1.38i
> (http://ciar.rcm.upr.edu/projects/imageprocessor/multiples), I get the
> following error message:
>
> java.lang.ClassCastException: [Ljava.lang.Object;
> at ij.io.ImageWriter.write(ImageWriter.java:195)

This is a code path where your image is labeled as GRAY32_FLOAT, but
evidently the cast of the variable "pixels" to (float[]) fails.

It seems to me to be unrelated to the MultipleImageProcessor. Somehow, the
image you have there is labeled as GRAY32_FLOAT by
ImagePlus.getFileInfo() (which usually means that the processor is a
FloatProcessor), but it does not have float pixels.

Hth,
Dscho