Histogram using Phyton

Hello, I have zero experience in 3D slicer or coding
I am actually MD
I am working on project and was able to segment the pituitary from Segment editor then calculate the volume using Statistics
Need to get a grayscale histogram for the segment portion aka the pituitary
Can someone please help to guide me from scratch ?

Thank you

Fortunately there is a an example for what you need. Paste it in slicer and you should get the image below. You can customize to work with your data and for that you will need to learn some python.

https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#get-histogram-of-a-segmented-region

1 Like