Fwd: Problem with Convolver.convolveFloat and jdk lower than version 1.6
Posted by Mathis Graw on Jul 03, 2007; 4:17pm
URL: http://imagej.273.s1.nabble.com/Fwd-Problem-with-Convolver-convolveFloat-and-jdk-lower-than-version-1-6-tp3698955.html
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