I have an MRI image and a segmentation of an area. I need to obtain the values of each voxel in a segment. I’ve followed the documentation, in particular the section: Get histogram of a segmented region. But I can’t find a way of obtaining the gray level values of each voxel in my segmentation. Is there a way of doing this?
You can use Segment Statistics module to get basic statistics (min, max, mean) on gray level values of an image for each segment.
If you want to implement some custom computations then you can add it to the scalar volume plugin (it is just a simple Python file, you edit it, reload the module or restart Slicer; and you get the new metrics). If you think that your additional computations may be useful for others, too, then you can submit a pull request with your changes.