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

Hello! Which command did you use to obtain the signal intensity in the “Segment staistics” module? I can obtain only informarmation about volume.
Thank you!

You can enable Scalar Volume Statistics but need to select the reference volume:

I didn’t catch that “mean” was referred to signal intensity!
Thank you very much!