CN114461327A - Electrocardiogram waveform amplification method, terminal equipment and storage medium - Google Patents

Electrocardiogram waveform amplification method, terminal equipment and storage medium Download PDF

Info

Publication number
CN114461327A
CN114461327A CN202210121588.0A CN202210121588A CN114461327A CN 114461327 A CN114461327 A CN 114461327A CN 202210121588 A CN202210121588 A CN 202210121588A CN 114461327 A CN114461327 A CN 114461327A
Authority
CN
China
Prior art keywords
electrocardiogram data
electrocardiogram
display module
data
resampling
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.)
Pending
Application number
CN202210121588.0A
Other languages
Chinese (zh)
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.)
Xiamen Nalong Health Technology Co ltd
Original Assignee
Xiamen Nalong Health 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 Xiamen Nalong Health Technology Co ltd filed Critical Xiamen Nalong Health Technology Co ltd
Priority to CN202210121588.0A priority Critical patent/CN114461327A/en
Publication of CN114461327A publication Critical patent/CN114461327A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Public Health (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Epidemiology (AREA)
  • Human Computer Interaction (AREA)
  • Radiology & Medical Imaging (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention relates to an electrocardiogram waveform amplification method, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring DPI and the number of horizontal axis pixel points of a display module; when the electrocardiogram data are loaded to be displayed, calculating a first resampling rate of the electrocardiogram data according to the DPI of the display module, the number of pixel points and the sampling rate of the electrocardiogram data, and displaying the electrocardiogram data after the first resampling; calculating a second resampling ratio based on the magnification ratio, and performing second resampling on the electrocardiogram data to obtain amplified electrocardiogram data; and intercepting the amplified electrocardiogram data in the corresponding range from the amplified electrocardiogram data to display according to the coordinate position of the mouse in the display module and the range of the amplified region to be displayed. According to the invention, the drawing of the amplified image is completed on the virtual image in a resampling mode by combining the pixel number of the display module and the DPI, and the amplified image is displayed in the actual display area in real time.

Description

Electrocardiogram waveform amplification method, terminal device and storage medium
Technical Field
The present invention relates to the field of electrocardiogram display, and in particular, to an electrocardiogram waveform amplification method, a terminal device, and a storage medium.
Background
At present, the electrocardiogram viewing medium still stays at the level of the conventional display, and the display has practical problems to influence the display of the electrocardiogram. Thereby also affecting the diagnostic result. The method is mainly embodied in the following points:
(1) the personal PC display is affected by the maximum resolution and does not fully display all the ecg data collected.
(2) Under the influence of the size of the display, even if the image can be completely displayed, the situation that the details cannot be displayed due to too many overlapping areas of waveform points can also occur in the whole waveform.
Due to the two points, a technology of performing electrocardiogram filtering and characteristic point value taking by using a specific algorithm is generated, so that the displayed image contains important waveform characteristics, but some point positions having practical significance to specific diseases are possibly excluded.
Most of the existing amplification schemes are based on image-level amplification, the problem of losing key points cannot be solved essentially, and the problem of blurring after amplification even occurs in part of the technologies. Meanwhile, the amplification of the existing data level needs to be realized by opening a window independently, and the window cannot conveniently switch the waveform position and cannot realize the real-time amplification along with a mouse.
Disclosure of Invention
In order to solve the above problems, the present invention proposes an electrocardiogram waveform amplification method, a terminal device, and a storage medium.
The specific scheme is as follows:
an electrocardiogram waveform amplifying method comprises the following steps:
s1: acquiring DPI of a display module and the number dot of pixel points contained in a transverse axis direction in an area of the display module for displaying electrocardiogram data;
s2: when the electrocardiogram data are loaded to be displayed on the display module, calculating a first resampling rate f1 of the electrocardiogram data according to the DPI of the display module, the number dot of pixels and the sampling rate fs of the electrocardiogram data, performing first resampling on the electrocardiogram data based on the first resampling rate f1 to obtain electrocardiogram data to be displayed, and sending the electrocardiogram data to be displayed to the display module for displaying;
s3: based on the magnification ratio s, calculating a second resampling rate f2 of the electrocardiogram data according to the DPI of the display module, the number dot of s times of pixels and the sampling rate fs of the electrocardiogram data, and performing second resampling on the electrocardiogram data based on the second resampling rate f2 to obtain amplified electrocardiogram data;
s4: and according to the coordinate position of the mouse in the display module and the range of the amplification area to be displayed, intercepting the amplified electrocardiogram data in the corresponding range from the amplified electrocardiogram data and sending the amplified electrocardiogram data to the display module for displaying.
Further, the range of the intercepted amplified electrocardiogram data is as follows: and the enlarged electrocardiogram data in the enlarged region range by taking the corresponding data of the electrocardiogram data to be displayed in the display module corresponding to the coordinate position of the mouse as the center.
Further, when the amplified electrocardiogram data are sent to the display module to be displayed, the amplified electrocardiogram data to be displayed are displayed by taking the coordinate position of the mouse as the center.
Further, the enlarged electrocardiogram data obtained by the second resampling is saved as a bitmap, and clipping is performed in the bitmap at the time of clipping at step S4.
An electrocardiogram waveform amplification terminal device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the method of the embodiment of the invention.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above for an embodiment of the invention.
According to the technical scheme, the enlarged image is drawn on the virtual image in a resampling mode by combining the pixel number of the display module and the DPI, and the enlarged image is displayed in the actual display area in real time.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of the present invention.
Fig. 2 is a schematic diagram showing an enlarged area in this embodiment.
Fig. 3 shows an original waveform and an enlarged display result based on a vector diagram in the conventional method.
Fig. 4 shows an original waveform and an enlarged display result based on a vector diagram in the method of the present embodiment.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures.
The invention will now be further described with reference to the accompanying drawings and detailed description.
The first embodiment is as follows:
an embodiment of the present invention provides an electrocardiogram waveform amplification method, as shown in fig. 1, the method includes the following steps:
s1: obtaining DPI (Dots Per Inch) of the display module and the number dot of pixel points contained in the horizontal axis direction in the area of the display module for displaying the electrocardiogram data.
The display module may be a commonly used display device, such as a monitor. The area of the display module for displaying the electrocardiographic data is determined according to the actual program application, such as the entire screen of the display as the area for displaying the electrocardiographic data or a part of the screen as the area for displaying the electrocardiographic data. The horizontal axis direction in the display module corresponds to the horizontal axis direction in the electrocardiogram data to be displayed.
S2: when the electrocardiogram data are loaded to be displayed on the display module, a first resampling rate f1 of the electrocardiogram data is calculated according to the DPI of the display module, the number dot of pixels and the sampling rate fs of the electrocardiogram data, the electrocardiogram data are resampled for the first time based on the first resampling rate f1 to obtain the electrocardiogram data to be displayed, and the electrocardiogram data to be displayed are sent to the display module to be displayed.
The loaded electrocardiogram data is the original electrocardiogram data obtained by the electrocardiogram acquisition equipment. The loading of the electrocardiogram data may be performed by receiving and storing the electrocardiogram data in the storage module in advance, loading the electrocardiogram data from the storage module, or directly loading the electrocardiogram data in an uploading manner, which is not limited herein.
In the embodiment, 1:1 conversion between sampling points in the electrocardiogram data and pixel points in the display module is required, that is, one sampling point corresponds to one pixel point, so that a first resampling ratio f1 required for displaying the electrocardiogram data on the display module can be calculated according to the DPI of the display module, the number dot of the pixel points and the sampling rate fs of the electrocardiogram data. The resampling algorithm may be implemented by using an existing algorithm, which is not limited herein, and in this embodiment, the resampling algorithm is represented as p ═ f1(a, dot, dpi, fs), where p represents a set of sample points in the electrocardiographic data after resampling, and a represents a set of sample points in the electrocardiographic data before resampling.
Assuming that the sampling rate fs of electrocardiographic data is 1000 and dpi is 96dot/inc, the length len of the display area actually required for completely outputting an electrocardiographic waveform image of one lead for 10 seconds is:
len=10*fs/dpi
calculations can yield len 104.2Inch (feet) ≈ 2.65m, which in reality is not substantially fitted with displays of this size. To accommodate a conventional display, the waveform may be presented on a small-sized display after calculation of the first resampling ratio f 1. Assuming that the area of the display module is wa 1000 × 800, the first resampling ratio f1 is preferably implemented by setting fs to 100 (width of wa 1000/10 seconds) to screen points (p ═ f1(a, dot, dpi,100)), that is, 1000 pixels can display complete 10s of data, which means that the waveform is lost at 900 points per second under the current fs.
S3: and based on the magnification ratio s, calculating a second resampling ratio f2 of the electrocardiogram data according to the DPI of the display module, the pixel number dot of the s times and the sampling rate fs of the electrocardiogram data, and performing second resampling on the electrocardiogram data based on the second resampling ratio f2 to obtain amplified electrocardiogram data.
The magnification ratio can be set by the user, and the setting mode can be selected by clicking a pull-down menu on the display module through data, or can be input through a keyboard, which is not limited herein.
The second resampling rate f2 calculated by the pixel number dot of s times is s times greater (i.e., the sampling point is increased by s times) for the sampled data compared with the second resampling rate f2 calculated by the pixel number dot, so that the number of sampling points in the electrocardiogram data to be displayed obtained by the second resampling is increased by s times, and the details are less lost.
S4: and according to the coordinate position of the mouse in the display module and the range of the amplification area to be displayed, intercepting the amplified electrocardiogram data in the corresponding range from the amplified electrocardiogram data and sending the amplified electrocardiogram data to the display module for displaying.
The range of the intercepted amplified electrocardiographic data is: and the enlarged electrocardiogram data in the enlarged region range by taking the corresponding data of the electrocardiogram data to be displayed in the display module corresponding to the coordinate position of the mouse as the center.
Taking the magnification ratio s as an example, as shown in fig. 2, the virtual display region pixels corresponding to the enlarged electrocardiographic data are vwr ═ 1000 × 2 × 800 × 2, the second resampling ratio f2 is calculated at 2 × dot, and the enlarged electrocardiographic data are obtained, and when the enlarged electrocardiographic data are clipped, if the enlarged region range is mp ═ x × y, the virtual display region pixels corresponding to the clipped data in the enlarged electrocardiographic data corresponding to the enlarged region range are vmp ═ x × 2 × y.
In the embodiment, when the enlarged electrocardiogram data is sent to the display module for displaying, the enlarged electrocardiogram data to be displayed is displayed by taking the coordinate position of the mouse as the center.
Further, in order to increase the processing speed, the embodiment further includes saving the enlarged electrocardiogram data obtained by the second resampling as a bitmap, and performing truncation in the bitmap at the time of the truncation at step S4.
As shown in fig. 3, the original waveform and the enlarged display result based on the vector diagram in the conventional method are shown, and it can be seen that there is no obvious difference between the waveform before and after enlargement, and only the size of the diagram is different.
Fig. 4 shows the original waveform and the enlarged display result based on the vector diagram in the method of the present embodiment, from which it can be seen that the waveform after enlargement is not only the change of the size of the diagram before enlargement, but also the resolution is increased more, the details are more, and the use of the staff can be better assisted.
Example two:
the invention further provides an electrocardiogram waveform amplification terminal device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the method embodiment of the first embodiment of the invention.
Further, as an executable scheme, the electrocardiogram waveform amplification terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, and other computing devices. The ECG waveform amplifying terminal device may include, but is not limited to, a processor, a memory. It is understood by those skilled in the art that the above-mentioned constituent structure of the electrocardiographic waveform amplification terminal device is only an example of the electrocardiographic waveform amplification terminal device, and does not constitute a limitation to the electrocardiographic waveform amplification terminal device, and may include more or less components than the above, or combine some components, or different components, for example, the electrocardiographic waveform amplification terminal device may further include an input-output device, a network access device, a bus, etc., which is not limited in this embodiment of the present invention.
Further, as an executable solution, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the electrocardiographic waveform amplifying terminal device, and various interfaces and lines are used to connect various parts of the entire electrocardiographic waveform amplifying terminal device.
The memory may be used to store the computer program and/or module, and the processor may implement various functions of the electrocardiographic waveform amplification terminal device by running or executing the computer program and/or module stored in the memory and calling up data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of an embodiment of the invention.
The integrated module/unit of the electrocardiographic waveform amplification terminal device may be stored in a computer-readable storage medium if it is realized in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), software distribution medium, and the like.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. An electrocardiogram waveform amplification method is characterized by comprising the following steps:
s1: acquiring DPI of a display module and the number dot of pixel points contained in a transverse axis direction in an area of the display module for displaying electrocardiogram data;
s2: when the electrocardiogram data are loaded to be displayed on the display module, calculating a first resampling rate f1 of the electrocardiogram data according to the DPI of the display module, the number dot of pixels and the sampling rate fs of the electrocardiogram data, performing first resampling on the electrocardiogram data based on the first resampling rate f1 to obtain electrocardiogram data to be displayed, and sending the electrocardiogram data to be displayed to the display module for displaying;
s3: based on the magnification ratio s, calculating a second resampling rate f2 of the electrocardiogram data according to the DPI of the display module, the number dot of s times of pixels and the sampling rate fs of the electrocardiogram data, and performing second resampling on the electrocardiogram data based on the second resampling rate f2 to obtain amplified electrocardiogram data;
s4: and according to the coordinate position of the mouse in the display module and the range of the amplification area to be displayed, intercepting the amplified electrocardiogram data in the corresponding range from the amplified electrocardiogram data and sending the amplified electrocardiogram data to the display module for displaying.
2. The electrocardiogram waveform amplification method of claim 1, wherein: the range of the intercepted amplified electrocardiographic data is: and the enlarged electrocardiogram data in the enlarged region range by taking the corresponding data of the electrocardiogram data to be displayed in the display module corresponding to the coordinate position of the mouse as the center.
3. The electrocardiogram waveform amplification method of claim 1, wherein: and when the amplified electrocardiogram data are sent to the display module for display, the amplified electrocardiogram data to be displayed are displayed by taking the coordinate position of the mouse as the center.
4. The electrocardiogram waveform amplification method of claim 1, wherein: the enlarged electrocardiogram data obtained by the second resampling is saved as a bitmap, and clipping is performed in the bitmap at the time of clipping at step S4.
5. An electrocardiogram waveform amplification terminal device, characterized in that: comprising a processor, a memory and a computer program stored in the memory and running on the processor, the processor implementing the steps of the method according to any of claims 1 to 4 when executing the computer program.
6. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method as claimed in any one of claims 1 to 4.
CN202210121588.0A 2022-02-09 2022-02-09 Electrocardiogram waveform amplification method, terminal equipment and storage medium Pending CN114461327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210121588.0A CN114461327A (en) 2022-02-09 2022-02-09 Electrocardiogram waveform amplification method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210121588.0A CN114461327A (en) 2022-02-09 2022-02-09 Electrocardiogram waveform amplification method, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114461327A true CN114461327A (en) 2022-05-10

Family

ID=81413342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210121588.0A Pending CN114461327A (en) 2022-02-09 2022-02-09 Electrocardiogram waveform amplification method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114461327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423683A (en) * 2022-08-23 2022-12-02 成都智元汇信息技术股份有限公司 Method and device for locally amplifying column data wrapped picture by drawing board and display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291410A (en) * 2007-04-20 2008-10-22 恩益禧电子股份有限公司 Video signal processing apparatus and re-sampling apparatus
CN105247855A (en) * 2014-04-29 2016-01-13 华为技术有限公司 Screen sharing method, device and system
CN106791483A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 Image transfer method and device, electronic equipment
CN108776952A (en) * 2018-05-24 2018-11-09 天津大学 Sea chart coordinate conversion method for hydrological meteorological monitoring
WO2021218403A1 (en) * 2020-04-28 2021-11-04 华为技术有限公司 Data display method and apparatus, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291410A (en) * 2007-04-20 2008-10-22 恩益禧电子股份有限公司 Video signal processing apparatus and re-sampling apparatus
CN105247855A (en) * 2014-04-29 2016-01-13 华为技术有限公司 Screen sharing method, device and system
CN106791483A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 Image transfer method and device, electronic equipment
CN108776952A (en) * 2018-05-24 2018-11-09 天津大学 Sea chart coordinate conversion method for hydrological meteorological monitoring
WO2021218403A1 (en) * 2020-04-28 2021-11-04 华为技术有限公司 Data display method and apparatus, terminal device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423683A (en) * 2022-08-23 2022-12-02 成都智元汇信息技术股份有限公司 Method and device for locally amplifying column data wrapped picture by drawing board and display
CN115423683B (en) * 2022-08-23 2023-05-02 成都智元汇信息技术股份有限公司 Method and device for locally amplifying column data package picture by using drawing board and display

Similar Documents

Publication Publication Date Title
CN110533609B (en) Image enhancement method, device and storage medium suitable for endoscope
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
JP3153640B2 (en) Mapping process of high resolution data to low resolution display
CN111062864A (en) Animation model scaling method and device, electronic equipment and storage medium
CN105930464B (en) Web rich media cross-screen adaptation method and device
US6289133B1 (en) Image processing method and apparatus
CN111667504B (en) Face tracking method, device and equipment
CN114461327A (en) Electrocardiogram waveform amplification method, terminal equipment and storage medium
CN111415298A (en) Image splicing method and device, electronic equipment and computer readable storage medium
CN111596848A (en) Interface color taking method, device, equipment and storage medium
CN113360045A (en) Medical image processing and displaying method, processing device, display device and storage medium
CN113628193A (en) Method, device and system for determining blood vessel stenosis rate and storage medium
CN113657518B (en) Training method, target image detection method, device, electronic device, and medium
CN110765384A (en) Resolution adaptation method of client, storage medium and terminal
WO2024120223A1 (en) Image processing method and apparatus, and device, storage medium and computer program product
CN109739403B (en) Method and apparatus for processing information
CN112214565B (en) Map visual display method, terminal equipment and storage medium
CN114612294A (en) Image super-resolution processing method and computer equipment
CN114792352B (en) Frequency spectrum image processing method and system
US9552632B2 (en) Dynamic waveform region enhancement
CN114489397B (en) Electronic canvas processing method, electronic canvas processing equipment and storage medium
CN114510187B (en) Image display method and device, electronic equipment and medium
CN112099690B (en) Page scaling method, device, terminal and storage medium
CN113112395B (en) Picture processing method, device and storage medium
US20230196729A1 (en) Image recognition device and image recognition method

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