ECG Digitization in MATLAB

ECG Digitization in MATLAB
- When you will buy this MATLAB code, you will get an rar file.
- Extract this rar file and it will contain below files in it:
- You need to run Main.m file which is a MATLAB file.
- Open this file in MATLAB and run it.
- If everything goes fine then it will open up as shown in below figure:
- Click this button which says Load Image File.
- When you click this button, it will open up a dialog box as shown in below figure:
- Here you need to select the image of ECG signal, which you want to digitize.
- So, I am selecting ECG1.png and the results are shown in below figure:
- The first axes is showing the ECG Image file as it is.
- I have converted this ECG Image File into Gray Scale which is shown in axes 2.
- Further, I have converted this Dray Scale Image into Binary Image which is shown in axes 3.
- If you have noticed we have a blue line in ECG Binary Image.
- I have added this line and taken it as an x-axis, the algo is reading the values of black pixels and then subtracting it from this x axis line.
- In this way, I am getting my complete ECG Signal and the Axes 4, which is named as ECG Signal, is displaying this digital ECG Signal.
- I have converted pixels into mV, which you can change by yourself in the code.
×
![]()















































































