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?

Was it helpful?

Solution

Please look here for one possible solution to this.

OTHER TIPS

Assuming you're using MATLAB, I would go about doing the following :

  1. I=im2double(rgb2gray(Img));

  2. imhist(I); %%Shows you the histogram of the image. From the histogram, you can get an idea of the threshold to choose.

  3. BW=im2bw(I,thr); %thr is the threshold level.

  4. 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
scroll top