Bug in ImageReader for 12-bit images?

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

Bug in ImageReader for 12-bit images?

Barry DeZonia
Hello,

I've been familiarizing myself with the ImageJ source code for a project I
am working on and think I've come across a bug in ij.io.ImageReader. The
method read12bitImage(InputStream in) can only read an even number of
pixels. So if you have an odd number of rows and cols in a 12 bit image the
final pixel is not read in. Am I misunderstanding 12-bit image encoding
(like maybe they always have an even number of columns) or is this a bug?