I am trying to create a segment model consisting of a Ventricle and head model, two target points, and trajectories to targets and extract them into a merged file.
I am receiving “the application has run out of memory” error, Exception thrown in event: bad allocation.
What I am doing is that I create target and trajectory models and drag and drop them in the Ventricle segmentation node to be able to extract the model, but then slicer hangs for several minutes and then I get the mentioned error.
Can you help me to find out what I’m doing wrong? is the model too heavy for Slicer to render?
The physical size of a head and all the other objects are quite large, so if you create a high-resolution segmentation then you can run out of memory (because the extent of the internal labelmap representation is expanded to include all objects).
The best would be if you could add more physical RAM to your computer but probably just increasing virtual memory size in your operating system settings would work, too.
You can also decrease the resolution (increase spacing) of the segmentation’s internal labelmap (using “Specify geometry” button) thereby reducing the memory need.
If you need surface meshes in the end then you can export all the meshes in the scene into into glTF, OBJ, or old x3d or vrml format. Probably exporting glTF is the best, as it is the most modern and powerful file format and it has nice web viewers.