Obtain Roi list of voxel with position and value

Hello to all,
I’d like to know if it is possible to obtain the list of voxel within a segmentation in osirix and the corrispective value. I’d like to have a list of each value of every voxel in a roi. Is there any implementation using python?

Thank you very much!

gma

What you are asking for should be a small change to this example, just save the coordinates and value rather than the mean.

https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_the_values_of_all_voxels_for_a_label_value

1 Like

thank you very much!