How to save segmentation data as it appears in slicer data probe?

Hello, 3D Slicer community. I’m want your help with a task I’m trying to do. I’m working with 3D Slicer to segment a brain and I’m interested in exporting this voxelized segmentation.

If there are multiple segments within a scene, I’d like to export this information on a voxel-by-voxel basis. Essentially, I want each voxel at a specific coordinate to include the names of the segments present at that coordinate. This is similar to how the DataProbe displays information about segments and coordinates in 3D Slicer.

Is there a way to achieve this? I appreciate any guidance you can provide. Thank you in advance.

You would need to write some code for this, but you could reuse the DataProbe code so it really wouldn’t be a lot.

Thanks a ton for the reply. I will try this