plot_bvp
plot_bvp
Plots the Blood Volume Pulse (BVP) signal, heart rate (HR), and peaks on a given figure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fig |
matplotlib.figure.Figure or None
|
Figure object to plot on. If None, a new figure will be created. |
required |
window_size |
int
|
Size of the window for the plot. |
required |
bvp |
dict
|
Dictionary containing BVP signals for different methods. |
required |
hr |
dict
|
Dictionary containing HR values for different methods. |
required |
peaks |
dict
|
Dictionary containing peak locations for different methods. |
required |
bvp_method |
str
|
Method name for BVP. |
required |
lm |
str
|
Landmark name for BVP. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
A tuple containing the updated figure and the plot image in BGR format. |
Source code in redesign_pipeline/utils/plot_bvp.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |