简体   繁体   English

在图像中查找波形图

[英]Finding a wave graphic inside an image

I need some help with an algorithm. 我需要有关算法的帮助。 I'm using an artificial neural network to read an electrocardiogram and trying to recognize some disturbances in the waves. 我正在使用人工神经网络读取心电图,并试图识别出波浪中的某些干扰。 That's OK, and I have the neural network and I can test it no problem. 没关系,我有神经网络,可以毫无问题地进行测试。

What I'd like to do is to give the function to the user to open an electrocardiogram (import a jpeg) and have the program find the waves and convert it in to the arrays that will feed my ANN, but there's the problem. 我想做的就是将功能提供给用户,以打开心电图(导入jpeg),让程序找到波形并将其转换为可为ANN馈电的阵列,但这是问题所在。 I did some code that reads the image and transforms it into a binary image, but I can't find a nice way for the program to locate the waves, since the exact position can vary from hospital to hospital, I need some suggestions of approaches I should use. 我做了一些读取图像并将其转换为二进制图像的代码,但是我找不到一种定位波浪的好方法,因为确切位置可能因医院而异,我需要一些方法建议我应该用。

If you've got the wave values in a list, you can use a Fourier transform or FFT (fast Fourier transform) to determine the frequency content at any particular time value. 如果您在列表中获得了波形值,则可以使用傅立叶变换或FFT(快速傅立叶变换)来确定任何特定时间值处的频率含量。 Disturbances typically create additional high-frequency content (ie, sharp, steep waves) that you should be able to use to spot irregularities. 干扰通常会产生额外的高频成分(即尖锐,陡峭的波浪),您可以使用这些高频成分来发现不规则之处。

You'd have to assume a certain minimal contrast between the "signal" (the waves) and the background of the image. 您必须假设“信号”(波浪)和图像背景之间有一定的最小反差。 An edge-finding algorithm might be useful in that case. 在这种情况下,边缘查找算法可能会很有用。 You could isolate the wave from the background and plot the wave. 您可以将波浪与背景隔离,然后绘制波浪。

This post by Rick Barraza deals with vector fields in Silverlight. Rick Barraza的这篇文章涉及Silverlight中的矢量场。 You might be able to adapt the concept to your particular problem. 您也许可以使该概念适应您的特定问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM