|
Algorithms 1 Computation details of HR extraction |
|
Input: single colour signal ; sampling rate r; window size w; window function wf; overlap window size wn (here wn=3*w/4); minimum frequency f1 and maximum frequency f2. |
|
Output: Estimated heart rate hr |
| 1: |
|
| 2: |
|
| 3: |
For i in [1, 2, …, K, K= ⌊N/(w-wn) ⌋ ] do
|
| 4: |
|
| 5: |
end for |
| 6: |
For k in [1,2,…K] do
|
| 7: |
|
| 8: |
|
| 9: |
|
| 10: |
|
| 11: |
|
| 12: |
end for |