I was trying to load an image (labelfield) with shape (566, 1081, 3597) in Slicer 5.6.2.
Note: 566 * 1081 * 3597 > 2^31
When the segmentation is loaded, I get no error message and it is shown in the Data/Scene explorer, but it is not displayed (views stay black), and if I try to create surfaces or do something else Slicer crashes. Reducing the resolution fixes the issue.
Is this a known limitation of Slicer (is the code using 32-bit signed int for the indices or to compute the size (e.g. from a vtkImageData::GetDimensions(int dims[3]), or similar)?
That’s not a very large image, it is barely 2GB if the data type is 8 bit unsigned, which would be typical datatype for labelmaps (unless of course there are more than 256 labels).
How are you loading this dataset to slicer, are you making sure the “label” option is checked when in the data load menu (make sure to expand the options). Or are you loading it as a segmentation. If that’s the case, it is normal nothing is displayed in slice views, since segmentation requires a “master volume” to display in Slice views. (You can drag it into 3D viewer to see it though).
I am loading the labelfield as segmentation. I tried nrrd and nifty formats, and uint16 and uint8 data (there are only 21 labels). I first load a color table (ctbl file) to get my colors and names, and then import the segmentation and assign the color table using the advanced options.
I will try again. Are PDB files available for the installers (symbol files for debugging on Windows, i.e. you would need to build with RelWithDebInfo)?
No, but you can build everything from source in Debug or RelWithDebInfo. On a fast linux machine it may take an hour or so, probably longer on a windows desktop and overnight on a laptop.