How to export a lung segmentation neoplasm primary to separately image files

Hi, I need to view-export only lung tumor slides to images, so how to export a neoplasm lung segmentation to separately image files for example png.


For presentation purposes, you can use Screen Capture module.

For computation you can get the segmentation as a numpy array and extract the slices of the source volume where there are segment voxels.

If you want to do this to generate training data for an AI model then you may consider extracting 3D regions instead of 2D slices, as putting together a 3D segmentation from independently segmented 2D slices typically leads to very poor results (too much variation between neighbor slices).