Operating system: Windows 10
Slicer version: 4.11
I want to (i)programmatically convert some of my segments into models and then (ii)get and store information from these models. Information like surface area, volume, etc. How can I do this programmatically? I would like to convert all the segments into models and store this information as an excel sheet or as data or graph. Is there any way to do this?
For the first question see solution in the script repository:
However, for your second question there is no need for such conversion, because the Segment Statistics module can do it for you from the surface models representation within the segmentations (see explanation of the representations here). To programmatically drive a module you need to see its source code, then simply set the proper inputs and call the necessary functions.
Thanks , Segment Statistics was perfect.