In my project, I have to digitize an ECG image taken with a normal camera (jpeg). For example, I have the following camera captured image:
and I want to get something like this:-
and then the digitized data (x,y points), like in this video on digitization of ECG
I have no idea how to do it, so I searched and consulted several research papers. The general approach of the algorithms is like:-
- change to gray level image
- delete gridlines
- add missing points
- convert 2D image to 1D image
I am stuck with the second point, i.e., deleting the gridlines. I looked up some more references to do this and found histogram analysis might be helpful.
Can you please guide me on how to do this (I'm using MATLAB 2010)? Any help would be appreciated.