xcp_d.utils.qcmetrics.pearson
- xcp_d.utils.qcmetrics.pearson(input1, input2)[source]
Calculate Pearson product moment correlation between two images.
- Parameters:
input1/input2 (
numpy.ndarray
) – Numpy arrays to compare. Can be any type but will be converted into binary: False where 0, True everywhere else.- Returns:
corr – Correlation between the two images.
- Return type: