Hello, attached is a screenshot of the report- I have tried countless things - however not sure why 3d slicer is crashing when I try to export a segmentation to a label map volume.
ExportVisibleSegmentsToLabelmapNode tries to retrieve the list of visible segments from the display node of your segmentation node, but your segmentation does not have a display node. You can create one by calling segmentationNode.CreateDefaultDisplayNodes() or export all segments by using ExportAllSegmentsToLabelmapNode method. I’ll update the code to display a helpful error message instead of crashing.
@lassoan Thank you very very much for pointing this out!!! I got it to work after incorporating your feedback. Had spent tons of time trying to fix it, just glad it worked out with this update, otherwise would have done it manually which would have been quite a pain for a lot of CT scans.
I had no idea about this, displayNode function - I believe based on your explanation as to what this function does - fetching the display nodes etc - I now also understand the error that was popping up in the crash report, in the meantime, I was going through this, trying to investigate what could have caused it