PreibischLab / BigStitcher

ImgLib2/BDV implementation of Stitching for large datasets
GNU General Public License v2.0
68 stars 15 forks source link

Exception: Number of elements in ArrayImg too big.. #88

Open JLrumberger opened 3 years ago

JLrumberger commented 3 years ago

Hey,

I used BigStitcher to stitch 814 tiles (each 2560x2160 pixels and 4 channels) together and now face a problem when fusing the tiles. Image fusion with this parameters: img_fuse Leads to this exception: exception

Same applies when 'Fused image = Display using ImageJ' is set.

The exception is not thrown when the resolution of the fused image is decreased (i.e. Downsampling=2). However, I'd like to export a tiff of the stitched image with full resolution.

Best Lorenz

JLrumberger commented 3 years ago

Okay, I learned that the .tiff format just supports images smaller than 4GB or whose number of pixels does not exceed the uint32 namespace. So the problem is not related to BigStitcher. Issue closed.

StephanPreibisch commented 3 years ago

Hi, actually that is not the issue here, it tries to display the image using ImageJ, which does not support more than 2^31 pixels per plane. Does it work when you export to HDF5 directly?

JLrumberger commented 3 years ago

Exporting to HDF5 works and I can still open the full resolution image with BigDataViewer. Thanks a lot Stephan.