CN110755063A - Low-delay electrocardiogram drawing method - Google Patents

Low-delay electrocardiogram drawing method Download PDF

Info

Publication number
CN110755063A
CN110755063A CN201811164535.7A CN201811164535A CN110755063A CN 110755063 A CN110755063 A CN 110755063A CN 201811164535 A CN201811164535 A CN 201811164535A CN 110755063 A CN110755063 A CN 110755063A
Authority
CN
China
Prior art keywords
signal
electrocardiographic
rendering
electrocardiosignals
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811164535.7A
Other languages
Chinese (zh)
Other versions
CN110755063B (en
Inventor
陈炜
杨芃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Chuangyue Medical Technology Co Ltd
Original Assignee
Jiangsu Chuangyue Medical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Chuangyue Medical Technology Co Ltd filed Critical Jiangsu Chuangyue Medical Technology Co Ltd
Priority to CN201811164535.7A priority Critical patent/CN110755063B/en
Publication of CN110755063A publication Critical patent/CN110755063A/en
Application granted granted Critical
Publication of CN110755063B publication Critical patent/CN110755063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/339Displays specially adapted therefor

Abstract

The invention discloses a low-delay electrocardiogram drawing method, which comprises the following drawing steps: (1) pre-calculating horizontal coordinates corresponding to all points in the drawing area; (2) acquiring and recording electrocardiosignals; (3) when the next electrocardiosignal is obtained, horizontally translating the signal in the step (2), simultaneously calculating the vertical coordinate of the newly added signal, and mapping the horizontal coordinate; (4) repeating the step (2) and the step (3) until the electrocardiosignal acquisition is stopped. The electrocardiogram drawing method provided by the invention enables the electrocardiosignals to continuously extend from one side of the drawing area to the other side, thereby achieving the purposes of reducing the calculation time of the horizontal and vertical coordinates of the electrocardiosignals, ensuring the continuity of obtaining the electrocardiosignals and facilitating the real-time obtaining of the electrocardiosignals.

Description

Low-delay electrocardiogram drawing method
Technical Field
The invention relates to the field of electrocardiogram drawing, in particular to a low-delay electrocardiogram drawing method suitable for a smart phone platform.
Background
With the increasing importance of people on health and the increasing popularization of smart phones at the present stage, many APPs capable of displaying health states on smart phones currently exist. The electrocardiogram drawing is relatively common index reflecting health, in the traditional technology, the electrocardiogram drawing on an intelligent terminal (a smart phone, a tablet personal computer and the like) usually adopts a screen-brushing display mode, the mode is that an electrocardiogram signal diagram is drawn in a drawable fixed area, and then a new electrocardiogram signal is covered on the drawing area at a fixed time interval, so that the continuity of the electrocardiogram signal is seriously influenced, the accuracy of electrocardiogram analysis is reduced, meanwhile, the electrocardiogram information condition of a patient cannot be reflected at the first time in a mode of acquiring the electrocardiogram at the fixed time interval, and the instantaneity of acquiring the electrocardiogram is reduced.
Disclosure of Invention
In order to solve the technical problems, the invention provides a low-delay electrocardiogram drawing method, so as to achieve the purposes of reducing the calculation time of the horizontal and vertical coordinates of an electrocardiosignal, ensuring the continuity of acquiring the electrocardiosignal and facilitating the real-time acquisition of the electrocardiosignal.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a low-delay electrocardiogram drawing method comprises the following drawing steps:
(1) pre-calculating horizontal coordinates corresponding to all points in the drawing area;
(2) acquiring and recording electrocardiosignals;
(3) when the next electrocardiosignal is obtained, horizontally translating the signal in the step (2), simultaneously calculating the vertical coordinate of the newly added signal, and mapping the horizontal coordinate;
(4) repeating the step (2) and the step (3) until the electrocardiosignal acquisition is stopped.
The invention provides a brand new electrocardiogram drawing method, which enables electrocardiosignals to continuously extend from one side to the other side of a drawing area, thereby achieving the purposes of reducing the calculation time of the horizontal and vertical coordinates of the electrocardiosignals, ensuring the continuity of obtaining the electrocardiosignals and facilitating the real-time obtaining of the electrocardiosignals.
Preferably, in the step (1), the pixel interval between the two signals is determined according to the signal sampling frequency of the electrocardiogram collecting device, the maximum number Smax of signals which can be drawn by the interface is calculated according to the maximum number of pixels of the electrocardiogram drawing interface, the abscissa corresponding to each signal is calculated, the abscissa set is recorded into the array XArray, the first element in the array is the abscissa of the leftmost signal point of the interface, and the last element in the array is the abscissa of the rightmost signal point of the interface.
Preferably, the step (2) converts the electrocardiosignals acquired each time into standard electrocardio-voltage signal values according to an electrocardio-format protocol. The signal values are recorded in the buffer array SBuffarray.
Preferably, in each signal drawing in step (3), the signal coordinate queue obtained by the previous drawing is fully utilized, and the vertical coordinate of the signal which is drawn last time is horizontally translated and simultaneously the vertical coordinate of the newly added signal is calculated by a method of mapping the horizontal coordinate without changing the vertical coordinate.
Preferably, the display of the electrocardiographic signals acquired in step (2) and step (3) is based on a rendering mode of an OpenGL ES high-performance graphics interface. By adopting the method, the rendering time of the electrocardiosignal graph is millisecond level each time, so that the electrocardiosignal graph is conveniently and smoothly displayed with high performance.
The invention has the following advantages:
1. the invention provides a brand new electrocardiogram drawing method, which enables electrocardiosignals to continuously extend from one side to the other side of a drawing area, thereby achieving the purposes of reducing the calculation time of the horizontal and vertical coordinates of the electrocardiosignals, ensuring the continuity of obtaining the electrocardiosignals and facilitating the real-time obtaining of the electrocardiosignals.
2. The method and the device display the signal diagram of the origin based on the rendering mode of the OpenGL ES high-performance graphic interface, so that the rendering time of each electrocardiosignal diagram is millisecond level, and the electrocardiosignal diagram is conveniently and smoothly displayed in high performance.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below.
The present invention will be described in further detail with reference to examples and specific embodiments.
In the actual use process, the electrocardiogram drawing steps are as follows:
1. the pixel interval between two signals is determined according to the signal sampling frequency of the electrocardiogram acquisition equipment, the maximum signal number Smax which can be drawn by an electrocardiogram drawing interface is calculated according to the maximum pixel number of the interface, the abscissa corresponding to each signal is calculated, an abscissa set is recorded into an array XArray, wherein the first element in the array is the abscissa of the leftmost signal point of the interface, and the last element is the abscissa of the rightmost signal point of the interface (the drawing of the central electrogram is from right to left in the embodiment).
2. And converting the electrocardiosignals acquired each time into standard electrocardio voltage signal values according to an electrocardio format protocol. The signal values are recorded in a buffer array SBuffArray, wherein the buffer array for interface rendering is divided into a vertical coordinate part (YBuffArray) and a horizontal coordinate part (XBuffArray).
2-1. the storage method of YBuffarray: when a new signal array is added into a drawing buffer area, firstly calculating a corresponding interface pixel ordinate of a signal value of the signal and adding the interface pixel ordinate into a YBuffarray, and removing the members exceeding the signal value when the length of the YBuffarray is greater than the maximum signal number;
the storage method of the XBuffArray comprises the following situations:
(1) when the original SBuffarray signal number is 0, the abscissa of the new signal is the value of the (Smax-number of new signals + position of new signal in new signal array) th member in XArray, and the value is put into XBuffarray;
(2) when the number of the original SBuffarray signals is greater than 0 and does not exceed the maximum number of signals drawable in an electrocardiogram interface window, the value of each signal member corresponding to the original XBuffarray is the value of the member (Smax-number of the original XBuffarray member + position of the original signal in the original XBuffarray) in XArray, the abscissa of the new signal is the value of the member (number of the maximum signal-number of the new signal + position of the new signal in the new signal array) in XArray, and the new signal is added into the XBuffarray;
(3) when the number of original SBuffArray signals is greater than Smax, the value of the nth member of the XBuffArray is the value of the nth member in XArray.
It can be seen from the above calculation method of the abscissa and ordinate that only the ordinate value corresponding to the newly added signal needs to be calculated every time of refreshing, the ordinate value of the signal of the original buffer area does not need to be recalculated, and the abscissa values of all the signals only need to obtain the values of the corresponding positions in XArray.
Through the mode, the invention provides a brand-new electrocardiogram drawing method, so that the electrocardiosignals continuously extend from one side of the drawing area to the other side, and the aims of reducing the calculation time of the horizontal and vertical coordinates of the electrocardiosignals, ensuring the continuity of obtaining the electrocardiosignals and facilitating the real-time obtaining of the electrocardiosignals are fulfilled.
While the foregoing is directed to the preferred embodiment of the low latency electrocardiographic method disclosed herein, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (5)

1. A low-delay electrocardiogram drawing method is characterized by comprising the following drawing steps:
(1) pre-calculating horizontal coordinates corresponding to all points in the drawing area;
(2) acquiring and recording electrocardiosignals;
(3) when the next electrocardiosignal is obtained, horizontally translating the signal in the step (2), simultaneously calculating the vertical coordinate of the newly added signal, and mapping the horizontal coordinate;
(4) repeating the step (2) and the step (3) until the electrocardiosignal acquisition is stopped.
2. The method for low-latency electrocardiographic rendering according to claim 1, wherein in step (1), the pixel interval between two signals is determined according to the signal sampling frequency of the electrocardiographic acquisition device, the maximum number Smax of signals that can be rendered by an electrocardiographic rendering interface is calculated according to the maximum number of pixels of the interface, the abscissa corresponding to each signal is calculated, the set of abscissas is recorded into an array XArray, and the first element in the array is the abscissa of the leftmost signal point of the interface, and the last element in the array is the abscissa of the rightmost signal point of the interface.
3. The method of claim 1 wherein step (2) converts the electrocardiographic signals acquired each time into standard electrocardiographic voltage signal values according to the electrocardiographic format protocol. The signal values are recorded in the buffer array SBuffarray.
4. The method for low-latency electrocardiographic rendering according to claim 1, wherein in each signal rendering in step (3), the signal coordinate queue obtained by the last rendering is fully utilized, and the signal rendered last is horizontally translated by a vertical coordinate invariant and horizontal coordinate mapping method, and the vertical coordinate of the newly added signal is calculated.
5. The low-latency electrocardiographic rendering method according to claim 1, wherein the electrocardiographic signals obtained in the steps (2) and (3) are displayed based on a rendering mode of an OpenGL ES high-performance graphics interface.
CN201811164535.7A 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method Active CN110755063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811164535.7A CN110755063B (en) 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811164535.7A CN110755063B (en) 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method

Publications (2)

Publication Number Publication Date
CN110755063A true CN110755063A (en) 2020-02-07
CN110755063B CN110755063B (en) 2023-06-02

Family

ID=69328944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811164535.7A Active CN110755063B (en) 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method

Country Status (1)

Country Link
CN (1) CN110755063B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63147244A (en) * 1986-12-10 1988-06-20 Fujitsu Ltd Picture memory circuit
US5945972A (en) * 1995-11-30 1999-08-31 Kabushiki Kaisha Toshiba Display device
CN1495616A (en) * 1998-09-15 2004-05-12 精工爱普生株式会社 Graphic system
CN101919273A (en) * 2007-11-09 2010-12-15 谷歌公司 Activating applications based on accelerometer data
US20120253201A1 (en) * 2011-03-29 2012-10-04 Reinhold Ralph R System and methods for monitoring and assessing mobility
CN103549947A (en) * 2013-10-28 2014-02-05 上海理工大学 Real-time and accurate electrocardiographic wave drawing method of smartphone platforms
CN104866579A (en) * 2015-05-26 2015-08-26 北京海思敏医疗技术有限公司 Dynamic cardiogram graphical data processing method, client and server
CN105589969A (en) * 2015-12-23 2016-05-18 浙江大华技术股份有限公司 Data processing method and device
CN106557494A (en) * 2015-09-25 2017-04-05 北京国双科技有限公司 Update the method and device of row storage table
WO2017214490A1 (en) * 2016-06-10 2017-12-14 The Regents Of The University Of California Wearable emotional feedback apparatus for autism spectrum disorder
CN107577436A (en) * 2017-09-18 2018-01-12 杭州时趣信息技术有限公司 A kind of date storage method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63147244A (en) * 1986-12-10 1988-06-20 Fujitsu Ltd Picture memory circuit
US5945972A (en) * 1995-11-30 1999-08-31 Kabushiki Kaisha Toshiba Display device
CN1495616A (en) * 1998-09-15 2004-05-12 精工爱普生株式会社 Graphic system
CN101919273A (en) * 2007-11-09 2010-12-15 谷歌公司 Activating applications based on accelerometer data
US20120253201A1 (en) * 2011-03-29 2012-10-04 Reinhold Ralph R System and methods for monitoring and assessing mobility
CN103549947A (en) * 2013-10-28 2014-02-05 上海理工大学 Real-time and accurate electrocardiographic wave drawing method of smartphone platforms
CN104866579A (en) * 2015-05-26 2015-08-26 北京海思敏医疗技术有限公司 Dynamic cardiogram graphical data processing method, client and server
CN106557494A (en) * 2015-09-25 2017-04-05 北京国双科技有限公司 Update the method and device of row storage table
CN105589969A (en) * 2015-12-23 2016-05-18 浙江大华技术股份有限公司 Data processing method and device
WO2017214490A1 (en) * 2016-06-10 2017-12-14 The Regents Of The University Of California Wearable emotional feedback apparatus for autism spectrum disorder
CN107577436A (en) * 2017-09-18 2018-01-12 杭州时趣信息技术有限公司 A kind of date storage method and device

Also Published As

Publication number Publication date
CN110755063B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US11216925B2 (en) Image processing method, image processing system, and storage medium
US10540751B2 (en) Image data transmission method, image data processing method, image processing device and display device
CN112929695A (en) Video duplicate removal method and device, electronic equipment and storage medium
CN115460414B (en) Video compression method and system of baseboard management control chip and related components
EP4123594A2 (en) Object detection method and apparatus, computer-readable storage medium, and computer program product
EP2787738B1 (en) Tile-based compression for graphic applications
CN110755063A (en) Low-delay electrocardiogram drawing method
CN105573752B (en) A kind of MiniGUI window system support method based on OpenGL
US10885604B2 (en) Method for 3D waveform mapping of full-parallel structure
CN105204799B (en) A kind of raising method of multichannel storage logic analyser display refresh rates deeply
CN204131656U (en) Be applied to the assistant images processing unit of augmented reality system
CN116258685A (en) Multi-organ segmentation method and device for simultaneous extraction and fusion of global and local features
CN112699165B (en) Method and system for time series data down-sampling
CN115457174A (en) Model training method, model training device, motion mapping method, motion mapping device, electronic equipment and storage medium
CN109584190A (en) A kind of contrast image Enhancement Method being limited based on wavelet transformation low frequency histogram
CN109009090B (en) Histogram-based brain signal diagram display method
CN113781339A (en) Silicon-based multispectral signal processing method and device and mobile terminal
CN112925942A (en) Data searching method, device, equipment and storage medium
CN113397553B (en) Electrocardiogram digital conversion system, method and conversion equipment
CN109612509B (en) Trend graph display processing method based on handheld signal measuring instrument
CN103108162A (en) High-definition high-frame-rate real-time video anti-reflection instrument
CN115083573A (en) Physical sign data processing method, apparatus, device and storage medium
CN110580444B (en) Human body detection method and device
CN113409415B (en) Infrared image correlation display method and system based on temperature matrix
CN116523777B (en) Tone mapping method based on global tone reconstruction and local detail enhancement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant