Automated procedure for the identification of . A template matching algorithm was employed for the identification of. The demixing matrix W obtained from the ECG signals acquired inside the MR scanner (x
) was applied to the ECG signals acquired outside the MR scanner (xk,out). A QRS template was generated from each IC. was identified by cross-correlating each QRS template with the corresponding IC in.