xcp_d.utils.qcmetrics.compute_registration_qc

xcp_d.utils.qcmetrics.compute_registration_qc(bold2t1w_mask, anat_brainmask, bold2template_mask, template_mask)[source]

Compute quality of registration metrics.

This function will calculate a series of metrics, including:

  • Dice’s similarity index,

  • Pearson correlation coefficient, and

  • Coverage

between the BOLD-to-T1w brain mask and the T1w mask, as well as between the BOLD-to-template brain mask and the template mask.

Parameters:
  • bold2t1w_mask (str) – Path to the BOLD mask in T1w space.

  • anat_brainmask (str) – Path to the T1w mask.

  • bold2template_mask (str) – Path to the BOLD mask in template space.

  • template_mask (str) – Path to the template mask.

Returns:

reg_qc – Quality control measures between different inputs.

Return type:

dict