Hi, Please make available several 10-bit TIFFs that we can use to reproduce this problem.
-wayne > On Nov 15, 2024, at 6:39 AM, Hidenao IWAI <[email protected]> wrote: > > Hi > > I'm a little confused about pack-bits TIFFs. > ImageJ 1.54c supports 10-bit TIFFs (Pack-bits). > However, it seems that FolderOpener does not take into account the pack-bits > because it calculates image-size with width and height and > fi.getBytesPerPixels() which return 2-bytes. > > On the other hand, FileInfoVirtualStack does take into account packed 10-, > 12-bit TIFFs as follow, > --- > if (fi.fileType==FileInfo.GRAY12_UNSIGNED) > bytesPerImage = (int)(1.5*fi.width)*fi.height; > else if (fi.fileType==FileInfo.GRAY10_UNSIGNED) > bytesPerImage = (int)(1.25*fi.width)*fi.height; > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
