Skip to main content
. 2023 Jun 28;13(13):2195. doi: 10.3390/diagnostics13132195
Algorithm 1. Cardiac deep learning algorithm
// Get MRI image samples and set the range;
Input: Ain; Output: Aout;
// Segment the images;
For each cluster pair (Ax_in, Ay_in)
                    If min(Ax_in, Ay_in) × |Qx_in − Qy_in|
                    Then merge Ax_in, Ay_in into Az;
//Feature extraction;
                    AZi = AZx_in + AZy_in;
                      Qi = (AZx_in × Qx_in) + (AZy_in × Qy_in)/(AZx_in + AZy_in);
//Preprocessing of samples;
                      Where Ain is the x × y matrix;
                      For I = 1:x
                      For j = 1:y
                      If (Ain(x,y) < 0
                      Ain_s = 1;
                      Else
                      Ain_s = 0;
End;