|
Hallo,
I already searched the internet but couldn't find any answer for my problem.
I've got some .bmp Image when I try to open one of them the following Exception is thrown :
java.lang.IllegalArgumentException: Number of bits must be between 1 and 16.
at java.awt.image.IndexColorModel.<init>(IndexColorModel.java:143)
at ij.plugin.BMPDecoder.makeImageSource(BMP_Reader.java:291)
at ij.plugin.BMP_Reader.run(BMP_Reader.java:46)
at ij.IJ.runPlugIn(IJ.java:149)
at ij.IJ.runPlugIn(IJ.java:130)
at ij.io.Opener.openImage(Opener.java:234)
at ij.io.Opener.openImage(Opener.java:260)
at ij.io.Opener.open(Opener.java:124)
at ij.io.Opener.open(Opener.java:63)
at ij.plugin.Commands.run(Commands.java:23)
at ij.IJ.runPlugIn(IJ.java:149)
at ij.Executer.runCommand(Executer.java:104)
at ij.Executer.run(Executer.java:58)
at java.lang.Thread.run(Thread.java:613)
I tried it under Mac OS and Windows with the same result.
The images are OK since I can open them with gimp and convert them to .tif , which then can be read by ImageJ.
But all the images I get are .bmp and I don't want to convert several hundrets of images ...
Can anybody help me ?
Thanks so far.
|