BVtkNodes icon indicating copy to clipboard operation
BVtkNodes copied to clipboard

vtkTIFFReader file size limitation and slices loading

Open Alexxkrehmen opened this issue 4 years ago • 3 comments

Hi,

Stacks in Tiff format bigger than 4GB are not properly imported (only the first slice is loaded) It seems to be a limitation of some tiff loaders. I assume this is a limitation in the VTK api.

I've tried to find a workaround by extracting all the slices in individual tiff files, but then I can't find how to import them as a stack. My current setup is like this :

image

The file pattern is ok : %s%04d.tif

"%s" for the string prefix and "%04d" for the numerical part with 4 digits.

As seen in the information node, the first slice only is loaded (Z range=0). What should I change to get all the slices loaded ?

Alexxkrehmen avatar Dec 01 '20 14:12 Alexxkrehmen

Hi, AFAIK the numerical part is assumed to be time step, and by default only one time step is loaded. I think there are some filters in VTK which process all of the time steps, one at a time (vtkTemporal*), but I haven't used those so can't help here, sorry.

tkeskita avatar Dec 07 '20 07:12 tkeskita

FYI alternative: you can nowadays convert your 3D image data to OpenVDB using VTK to OpenVDB Exporter node if you're on linux.

tkeskita avatar Dec 07 '20 08:12 tkeskita

Hi,

Thanks, I know about the OpenVDB solution, but here I need to generate a polygonal mesh... I originaly have my data as tiff files, and I can convert them to VTK, which is working. I just wanted to skip the VTK conversion step to simplify my workflow.

Alexxkrehmen avatar Dec 07 '20 08:12 Alexxkrehmen