Best thresholding technique for seperate a ECG graph from ECG grid?
-
09-12-2019 - |
Question
There are two type of image thresholding techniques. 1.adaptive thresholding 2.Global thresholding
what is the best algorithm we can use to seperate a ECG line from ECG grid?
Solution
Please look here for one possible solution to this.
OTHER TIPS
Assuming you're using MATLAB, I would go about doing the following :
I=im2double(rgb2gray(Img));
imhist(I); %%Shows you the histogram of the image. From the histogram, you can get an idea of the threshold to choose.
BW=im2bw(I,thr); %thr is the threshold level.
Play around with the imerode, imdilate and other morphological functions to separate the ECG from the background grid.
Hope that helps.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow