What algorithm/formula was used to calculate the signal intensity mean and SD in the module segment statistics?

I used 3d slicer software to segment an adipose tissue from the MRI dicom image, and the module Segment Statistics automatically calculated and displayed the signal intensity mean and SD of this segmentation.
How the signal intensity mean and SD of this segmentation was calculated and what algorithm/formula was used.

I find a code
self.scalarSelector.setToolTip( "Select the scalar volume for intensity statistics calculations")
but I couldn’t understand what kind of the algorithm/formula was used.

Thank you very much.

If you have any doubts then you can always look up the implementation. Segment Statistics module uses vtkImageAccumulate and that class internally uses this formula, which is the corrected sample standard deviation.

1 Like