|
Hello,
I started working on imageJ and I have to write a plugin that apply
different treatments onto a BMP image format.In particularly, I need to get its
histogram after converting my image to "8-bits" (grey scale).
To process this conversion, I simple use the JAVA language and the IJ API
ImageConverter ic = new ImageConverter(img);
ic.convertToGray8();
I have imageJ 1.36b and work with JDK 1.5 (JAVA 1.5.0_06) and with this
version, there is no problem.
But when I try it on an older version (unfortunately I don't know exactly
which version, because it is a version a friend downloaded sooner), the
histogram is not as expected, because it contains some irregularities. However if I
manually do
Image=>Type=>8-bits
Anlyse=>Histogram
I get a "good" histogram, and so, I suppose, a good conversion. Is those
differences due to versions of the IJ API ?
Thanks.
|