I have a label map and and corresponding image and would like to look at the intensity histograms for each or each label, I know that there is an intensity histogram being calculated behind the scenes, for example in sitk.LabelIntensityImageFilter() but I don’t know how to to access the underlying itk.Histogram object, so I can get the corresponding counts, and limits on the bins.
I would prefer to develop in SimpleITK, but am happy to use the python wrappers for itk if that is the best way to do this.
I realise that I could do this with numpy but if possible it would be nice to stay with SimpleITK.