Mains / muscle filters
ECG Toolkit support for: SCP-ECG, DICOM, HL7 aECG, ISHNE & MUSE-XML
Brought to you by:
mvanettinger
Would it be possible to implement mains (50/60Hz) filters and muscule filters? These artifacts are captured by my ECG machine and saved in the SCP file by CardioView. CardioView can filter them out for display/printing etc, but doesn't export filtered versions, so the artifacts are visible when loaded in ECGViewer.
Sorry to say I'm not an expert in implementing filters. Would be a nice additional feature, but don't think I will be able to add this properly myself.
I've found an example for a Butterworth-filter (independent of sample rate) on codeprojects which looks to do the trick, are you still interested in filter capabilities for the ECGViewer? I think you would like to have 0.1-40 Hz bandpass-filter or do you want something else?
Yes, still interested, thanks for looking in to it. CardioView defines it's muscle filter as 0.05-35Hz so I'm sure 0.1-40Hz would be fine. It also has mains filter which is 50/60Hz according to local mains frequency (manually chosen in options).
Added quite some code to enable filtering in ECGViewer and PDF export. Will be part of next release. I'm not sure when the next release will be, but probably somewhere in the next 4 weeks.
This looks very good from a quick play, as soon as I get chance I'll try and compare the results with Cardio View.
Great to get feedback before next release, so let me know what your comparison shows.
Also I just read your orignal request again and do you also want to be able to export the signals after applying a filter?
Last edit: MJB van Ettinger 2020-01-23
I've attached some shots showing the result, compared with cardio view. The muscle filter looks like it's producing the same result as CV, so that's great - thanks! Is there any chance of a 50/60hz filter for mains though? I've included screenshots of that as well for comparison.
I don't particuarly need to re-export the raw data with filters applied, but would like to be able to export to pdf with the filters.
Last edit: rab 2020-01-27
Hello,
I have implemented the 50/60Hz filter in 2.4 version in my last work place.
I had to add my own support for filtering but I think there is something reusable.
If you still need it I can share my source and my knowledge.