Hi all,
I can attest Mathis' statement: we were using the plugin
ParticleTracker, which invokes the same method
(ImageProcessor.convolve), and we got the same exception
(ArrayIndexOutOfBoundsException).
In Linux (Debian 64-bit), I have ran into this problem by using 32-bit
JDKs on 64-bit machines as well as with some non-Sun JDKs (e.g.
Blackdown-1.4.2-03 64-bit). The Sun JDK 1.5 64-bit works well for me.
I also get the error in Solaris (AMD64) by using the Sun JDK 1.5 (both
32- and 64-bit).
Cheers,
William
Am Dienstag, den 03.07.2007, 17:17 +0200 schrieb Mathis Graw:
> Hey,
>
> i'm writing a plugin for imagej and for that i also need a convolution
> on an image
> with a float kernel of 17x17 pixels. For that i'm using the method
> ImageProcessor.convolve(float[] kernel, int width, int height).
> Everything was running.
>
> Means i used the ij.jar (version 1.3.7, also 1.3.8) and the Sun-jdk 1.6.0.
>
> As i changed the jdk to 1.5 or 1.4 from time to time i a get
> Java.lang.ArrayIndexOutOfBoundsException caused by the method
> Convolver.convolveFloat
> in line 246 (1.3.7) or line 226 (1.3.8). It says that there is an
> access to kernel[289]
> which is too big (kernel.length).
>
> Does somebody have/had the some problem ?
> Does somebody know why it doesn't occure with jdk 1.6 ?
>
> thx
>
> Mathis