I have a ScalarVolume which has values in the range of [0,0.5]. When I view the histogram of this ScalarVolume, I am unable to understand it due to the missing blue line.
I have another ScalarVolume (a CT scan) with values in the range of [-1000, 2000]. When I view the histogram of this ScalarVolume, I am able to understand the histogram due to the presence of the blue line.
Why is this happening? Is this a bug or am I incorrectly using/interpreting the histogram.
I’m using Slicer 4.11.0. This question is closely related to another post
Bin size of 1 works well for integer-valued volumes, but for floating-point volumes the bin size need to be determined from the scalar range of the volume. The current implementation always used the bin size of 1.
I’ve fixed the issue now. The Slicer Preview Release that you download on 2022-01-20 or later will display the histogram correctly for floating-point volume types.
Thank you @lassoan for this update. I am now able to view the blue line for the floating-point volumes as well.
I had a feature request regarding the colormap used in the histogram. Currently it used the “Gray” colormap for all volumes, but I use a different colormap for my volumes (i.e. WarmShade2). Is this change possible?