scalar = | pearsonCorrelationCoefficient3d (inImg3d1,inImg3d2) |
computes the Pearson correlation coefficient in the 3d image
The Pearson correlation coefficient, also known as Pearson colocalization, is a linear correlation measure between the two input images InImg3d1 and InImg3d2. This coefficient is calculated with the following formula :
Where is the image domain,
is the mean intensity of
and
is its standard deviation.
Two wrappers can be called : the pearsonCorrelationCoefficient3d wrapper is only used to compute the Pearson coefficient on a grey level 3d image, whereas the multiSlice_pearsonCorrelationCoefficient3d wrapper must be used for more complex data (sequence and/or color). In the second case, a coefficient is calculated for each 3d volume forming the input images.
This algorithm is the 3d version of Pearson Correlation Coefficient 2d.