CN105513012A - Oscilloscope digital fluorescence image rapid mapping method - Google Patents

Oscilloscope digital fluorescence image rapid mapping method Download PDF

Info

Publication number
CN105513012A
CN105513012A CN201510956425.4A CN201510956425A CN105513012A CN 105513012 A CN105513012 A CN 105513012A CN 201510956425 A CN201510956425 A CN 201510956425A CN 105513012 A CN105513012 A CN 105513012A
Authority
CN
China
Prior art keywords
image data
line
row
source image
group
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
CN201510956425.4A
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.)
CETC 41 Research Institute
Original Assignee
CETC 41 Research Institute
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 CETC 41 Research Institute filed Critical CETC 41 Research Institute
Priority to CN201510956425.4A priority Critical patent/CN105513012A/en
Publication of CN105513012A publication Critical patent/CN105513012A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4023Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0209Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form in numerical form

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

本发明公开了一种示波器数字荧光图像的快速映射方法,其具有步骤:(1)通过显示模块读取荧光模块生成的数字荧光图像数据,即源图像数据;(2)根据源图像数据的行数M以及目标图像数据的行数N,计算出M和N的公倍数K;(3)将源图像数据的每一行复制K/M行,生成垂直方向为K行的图像数据;(4)依次设立图像数据的每K/N行为一行组,沿垂直方向,K/N个所述行组与源图像数据的M个行一一对应,比较所述行组中的任意行与源图像数据相对行组对应的一行是否一致,一致,则沿垂直方向取所述行组的第一行为目标图像的一行,不一致,则将所述行组中的所有行逐位置求和,再计算平均值做为目标图像的一行;(5)显示模块将目标图像输出且显示。

The invention discloses a method for quickly mapping digital fluorescent images of an oscilloscope. Count M and the row number N of the target image data, calculate the common multiple K of M and N; (3) copy K/M rows for each row of the source image data, and generate the image data that the vertical direction is K rows; (4) sequentially Each K/N row group of the image data is set up, along the vertical direction, K/N said row groups are in one-to-one correspondence with the M rows of the source image data, and any row in the row group is compared with the source image data If the line corresponding to the line group is consistent, if it is consistent, then take the first line of the line group along the vertical direction as a line of the target image, if it is inconsistent, then sum all the lines in the line group position by position, and then calculate the average value. is a line of the target image; (5) the display module outputs and displays the target image.

Description

示波器数字荧光图像的快速映射方法A Fast Mapping Method for Oscilloscope Digital Phosphor Images

技术领域technical field

本发明涉及图像数据的映射技术领域,特别涉及一种示波器数字荧光图像的快速映射方法。The invention relates to the technical field of image data mapping, in particular to a fast mapping method for oscilloscope digital fluorescent images.

背景技术Background technique

在数字荧光示波器中,由荧光模块生成波形图像,其水平方向的大小根据液晶的水平分辨率,结合采样率及水平时基共同决定,垂直方向的大小根据采样数值进行量化,即由ADC的分辨率决定。示波器普遍使用的是8位的ADC,也就是说,荧光图像在垂直方向上具有256个像素点。In the digital phosphor oscilloscope, the waveform image is generated by the phosphor module, the size of the horizontal direction is determined by the horizontal resolution of the liquid crystal, combined with the sampling rate and the horizontal time base, and the size of the vertical direction is quantified according to the sampling value, that is, the resolution of the ADC rate decision. Oscilloscopes commonly use 8-bit ADCs, that is, fluorescent images have 256 pixels in the vertical direction.

目前,示波器显示屏的垂直分辨率远大于256个像素点,分配给波形显示区的垂直像素点也超过256,因此,显示模块从荧光模块读取波形图像后,还需要对其进行垂直方向的放大处理再输出显示,即将荧光模块生成的波形图像(源图像)映射生成显示模块的输出图像(目标图像)。At present, the vertical resolution of the oscilloscope display screen is much larger than 256 pixels, and the vertical pixels allocated to the waveform display area are also more than 256. Therefore, after the display module reads the waveform image from the fluorescent module, it needs to vertically Amplify and then output display, that is, map the waveform image (source image) generated by the fluorescence module to generate the output image (target image) of the display module.

在图像映射处理中,通常采用的方法有最邻近插值法和双线性插值法。In image mapping processing, the commonly used methods are nearest neighbor interpolation and bilinear interpolation.

由于目标图像与源图像不是一对一的映射关系,因此会出现目标图像坐标映射到源图像坐标时不是整数的问题。对于目标图像的一个坐标(x,y),映射后在源图像中对应的浮点坐标为(i+u,j+v),其中i,j为非负整数,u,v为区间[0,1]的浮点数。Since the target image and the source image are not in a one-to-one mapping relationship, there will be a problem that the coordinates of the target image are not integers when mapped to the coordinates of the source image. For a coordinate (x, y) of the target image, the corresponding floating point coordinates in the source image after mapping are (i+u, j+v), where i, j are non-negative integers, u, v are the interval [0 , 1] is a floating-point number.

最邻近插值法是在目标图像坐标映射到源图像坐标时,取坐标位置距离最近的源图像的点的颜色做到目标图像的颜色。The nearest neighbor interpolation method is when the target image coordinates are mapped to the source image coordinates, take the color of the point of the source image whose coordinate position is the closest to the color of the target image.

双线性插值法是根据映射后坐标周围四个点的加权运算得到目标图像的颜色,即目标点的颜色值F(x,y)根据源图像中所对应的周围坐标为(i,j)、(i+1,j)、(i,j+1)、(i+1,j+1)的四个像素点的颜色值决定,对应公式为:The bilinear interpolation method is to obtain the color of the target image according to the weighted operation of the four points around the mapped coordinates, that is, the color value F(x, y) of the target point is (i, j) according to the corresponding surrounding coordinates in the source image , (i+1, j), (i, j+1), (i+1, j+1) the color values of the four pixels are determined, and the corresponding formula is:

F(x,y)=(1-u)*(1-v)*f(i,j)+(1-u)*v*f(i,j+1)+F(x,y)=(1-u)*(1-v)*f(i,j)+(1-u)*v*f(i,j+1)+

u*(1-v)*f(i+1,j)+u*v*f(i+1,j+1)u*(1-v)*f(i+1, j)+u*v*f(i+1, j+1)

式中,f(i,j)表示源图像坐标点(i,j)对应的颜色值。In the formula, f(i, j) represents the color value corresponding to the source image coordinate point (i, j).

在图像映射处理中,采用的最邻近插值法和双线性插值法,均需要根据目标图像的大小,逐个坐标进行浮点运算,效率较低,双线性插值法更要进行四个数据点的加权计算,运算时间更长,影响了波形的刷新速度。In image mapping processing, the nearest neighbor interpolation method and bilinear interpolation method both need to perform floating-point operations coordinate by coordinate according to the size of the target image, which is inefficient, and the bilinear interpolation method requires four data points. The weighted calculation takes longer, which affects the refresh speed of the waveform.

发明内容Contents of the invention

本发明的目的是克服或减缓至少上述缺点中的部分,特此提供一种示波器数字荧光图像的快速映射方法,其具有步骤:The object of the present invention is to overcome or alleviate at least part of the above-mentioned shortcomings, and hereby provides a method for fast mapping of oscilloscope digital fluorescent images, which has the steps of:

(1)通过显示模块读取荧光模块生成的数字荧光图像数据,即源图像数据;(1) Read the digital fluorescent image data generated by the fluorescent module through the display module, that is, the source image data;

(2)根据源图像数据的行数M以及目标图像数据的行数N,计算出M和N的公倍数K;(2) Calculate the common multiple K of M and N according to the row number M of the source image data and the row number N of the target image data;

(3)将源图像数据的每一行复制K/M行,生成垂直方向为K行的图像数据;(3) each row of the source image data is copied to K/M rows to generate image data whose vertical direction is K rows;

(4)依次设立图像数据的每K/N行为一行组,(4) Set up each K/N row group of image data in turn,

沿垂直方向,K/N个所述行组与源图像数据的M个行一一对应,Along the vertical direction, the K/N row groups are in one-to-one correspondence with the M rows of the source image data,

比较所述行组中的任意行与源图像数据相对行组对应的一行是否一致,Comparing whether any row in the row group is consistent with a row corresponding to the relative row group of the source image data,

一致,则沿垂直方向取所述行组的第一行为目标图像的一行,consistent, then take the first line of the line group along the vertical direction as a line of the target image,

不一致,则将所述行组中的所有行逐位置求和,再计算平均值做为目标图像的一行;Inconsistent, then sum all the rows in the row group position by position, and then calculate the average value as a row of the target image;

(5)显示模块将目标图像输出且显示。(5) The display module outputs and displays the target image.

优选地,所述K为最小公倍数。Preferably, the K is the least common multiple.

优选地,所述N大于M。Preferably, said N is greater than M.

本发明可读取荧光模块生成的波形图像数据即源图像数据,根据源图像及波形显示区的垂直方向的像素点数M、N,计算出最小公倍数K,然后将源图像数据的每一行复制为K/M行,再依次提取其中的K/N行且由K/N行中取一行或者由所有行均值合并,生成目标图像的一行;无须对目标图像的逐个坐标进行浮点运算,实现了数字荧光图像的快速映射,提高了波形的刷新速度。The present invention can read the waveform image data generated by the fluorescence module, i.e. the source image data, calculate the least common multiple K according to the source image and the number of pixels M and N in the vertical direction of the waveform display area, and then copy each line of the source image data as K/M lines, and then extract the K/N lines in turn and take one line from the K/N lines or combine the mean values of all lines to generate one line of the target image; there is no need to perform floating-point operations on the coordinates of the target image, which realizes Fast mapping of digital fluorescence images, increasing the refresh rate of waveforms.

附图说明Description of drawings

现在将参照所附附图更加详细地描述本发明的这些和其它方面,其所示为本发明的当前优选实施例。其中:These and other aspects of the invention will now be described in more detail with reference to the accompanying drawings, which show presently preferred embodiments of the invention. in:

图1为本实施例的工作流程图。Fig. 1 is the work flowchart of this embodiment.

具体实施方式detailed description

下面结合附图和具体实例,进一步阐明本发明,应理解这些实施例仅用于说明本发明而不用于限制本发明的范围,在阅读了本发明之后,本领域技术人员对本发明的各种等价形式的修改均落于本申请所附权利要求所限定的范围。Below in conjunction with accompanying drawing and specific example, further illustrate the present invention, should be understood that these embodiments are only for illustrating the present invention and are not intended to limit the scope of the present invention, after having read the present invention, those skilled in the art will understand various aspects of the present invention All modifications of the valence form fall within the scope defined by the appended claims of the present application.

如图1所示,一种示波器数字荧光图像的快速映射方法,其具有步骤:As shown in Figure 1, a fast mapping method for oscilloscope digital fluorescent images has steps:

第一步,通过显示模块读取荧光模块生成的数字荧光图像数据,即源图像数据。那么,源图像数据则包括多行数据,任意一行由若干个坐标点组成。The first step is to read the digital fluorescence image data generated by the fluorescence module through the display module, that is, the source image data. Then, the source image data includes multiple rows of data, and any row consists of several coordinate points.

第二步,根据源图像数据的行数M以及目标图像数据的行数N,计算出M和N的最小公倍数K。那么,K可以作为使M和N相关联的相关因子。The second step is to calculate the least common multiple K of M and N according to the row number M of the source image data and the row number N of the target image data. Then, K can be used as a correlating factor to relate M and N.

第三步,将源图像数据的每一行复制K/M行,生成垂直方向为K行的图像数据。那么,图像数据实质上是包括垂直的多个行组,任意行组包括K/M个相同的行,相同的行具有相同的坐标点及其组成。In the third step, K/M lines are copied from each line of the source image data to generate image data with K lines in the vertical direction. Then, the image data essentially includes a plurality of vertical row groups, and any row group includes K/M identical rows, and the same rows have the same coordinate points and their components.

第四步,依次设立图像数据的每K/N行为一行组,沿垂直方向K/N个所述行组与源图像数据的M个行一一对应,比较所述行组中的任意行与源图像数据相对行组对应的一行是否一致,一致则沿垂直方向取所述行组的第一行为目标图像的一行,不一致则将所述行组中的所有行逐位置求和,再计算平均值做为目标图像的一行。In the fourth step, each K/N row group of the image data is set up successively, and the K/N row groups in the vertical direction are in one-to-one correspondence with the M rows of the source image data, and any row in the row group is compared with Whether the source image data is consistent with the row corresponding to the row group. If it is consistent, the first row of the row group is taken along the vertical direction as a row of the target image. If it is inconsistent, all the rows in the row group are summed position by position, and then the average is calculated. value as a row of the target image.

第五步,显示模块将目标图像输出且显示。In the fifth step, the display module outputs and displays the target image.

本实施例设M=6,N=9,则K=18;In this embodiment, M=6, N=9, then K=18;

本实施例可读取荧光模块生成的波形图像数据即源图像数据,根据源图像及波形显示区的垂直方向的像素点数6、9,计算出最小公倍数18,然后将源图像数据的每一行复制为3行,取得18行的图像数据。再将18行的图像数据分隔成9组行组,每一组行组对应源图像数据的一行。通过将每一行组与源图像数据的一行进行比较,判断源图像数据的一行是对应行组的复制源,或是判断源图像数据的相邻行是该行组的共同复制源,则取均值。This embodiment can read the waveform image data generated by the fluorescent module, that is, the source image data, calculate the least common multiple of 18 according to the source image and the vertical pixel numbers of 6 and 9 in the waveform display area, and then copy each line of the source image data For 3 lines, 18 lines of image data are obtained. Then the 18 lines of image data are divided into 9 sets of line groups, and each set of line groups corresponds to one line of the source image data. By comparing each line group with one line of the source image data, it is judged that a line of the source image data is the copy source of the corresponding line group, or the adjacent lines of the source image data are judged to be the common copy source of the line group, then take the mean value .

通过上述设计方案,本实施例或直接复制或均值计算得出目标图像的所有行,无须对目标图像行内的逐个坐标进行浮点运算,实现了数字荧光图像的快速映射,提高了波形的刷新速度。Through the above-mentioned design scheme, this embodiment either directly copies or calculates the mean value to obtain all the lines of the target image, without performing floating-point calculations on each coordinate in the target image line, and realizes the fast mapping of the digital fluorescent image and improves the refresh rate of the waveform .

Claims (3)

1. a quick mapping method for oscillograph digital fluorescence images, is characterized in that having step:
(1) the digital fluorescence images data of fluorescent moieties generation are read by display module, i.e. source image data;
(2) according to the line number M of source image data and the line number N of destination image data, the common multiple K of M and N is calculated;
(3) every a line of source image data is copied K/M capable, generating vertical direction is the view data that K is capable;
(4) every K/N behavior a line group of view data is set up successively,
Vertically, M row one_to_one corresponding of K/N described row group and source image data,
Whether a line that any row in more described row group is corresponding with source image data opposing rows group is consistent,
Unanimously, then vertically get a line of the first behavior target image of described row group,
Inconsistent, then all row in described row group are put summation by turn, then calculating mean value is as a line of target image;
(5) target image exports and display by display module.
2. the quick mapping method of oscillograph digital fluorescence images according to claim 1, is characterized in that, described K is lowest common multiple.
3. the quick mapping method of oscillograph digital fluorescence images according to claim 1, is characterized in that, described N is greater than M.
CN201510956425.4A 2015-12-21 2015-12-21 Oscilloscope digital fluorescence image rapid mapping method Pending CN105513012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510956425.4A CN105513012A (en) 2015-12-21 2015-12-21 Oscilloscope digital fluorescence image rapid mapping method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510956425.4A CN105513012A (en) 2015-12-21 2015-12-21 Oscilloscope digital fluorescence image rapid mapping method

Publications (1)

Publication Number Publication Date
CN105513012A true CN105513012A (en) 2016-04-20

Family

ID=55720970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510956425.4A Pending CN105513012A (en) 2015-12-21 2015-12-21 Oscilloscope digital fluorescence image rapid mapping method

Country Status (1)

Country Link
CN (1) CN105513012A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050117033A1 (en) * 2003-12-01 2005-06-02 Olympus Corporation Image processing device, calibration method thereof, and image processing
CN1858843A (en) * 2005-08-12 2006-11-08 深圳华为移动通信技术有限公司 Self adaptive pantographic system and its method for image in mobile terminal
CN1933540A (en) * 2005-09-15 2007-03-21 富士通株式会社 Image processing device and method for adjusting image size according to data supply speed
CN101980281A (en) * 2010-09-30 2011-02-23 深圳市理邦精密仪器股份有限公司 Ultrasonic image amplification method and amplification system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050117033A1 (en) * 2003-12-01 2005-06-02 Olympus Corporation Image processing device, calibration method thereof, and image processing
CN1858843A (en) * 2005-08-12 2006-11-08 深圳华为移动通信技术有限公司 Self adaptive pantographic system and its method for image in mobile terminal
CN1933540A (en) * 2005-09-15 2007-03-21 富士通株式会社 Image processing device and method for adjusting image size according to data supply speed
CN101980281A (en) * 2010-09-30 2011-02-23 深圳市理邦精密仪器股份有限公司 Ultrasonic image amplification method and amplification system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
: KANG, WONSEOK: "Fast digital zooming system using directionally adaptive image interpolation and restoration", 《SPRINGERPLUS》 *
施美玲: "内容感知图像缩放技术综述", 《中国图象图形学报》 *
黄梅: "基于奇异值分解与重采样的图像缩放", 《四川大学学报(自然科学版)》 *

Similar Documents

Publication Publication Date Title
CN107342037B (en) Data conversion method, device and computer readable storage medium
CN105976349B (en) Grain Analysis Method and System Using High Resolution Transmission Electron Microscopy Images
JP2013165476A (en) Image processing device, image processing method, image display device, program, and recording medium
GB2523514A (en) Data Quality measurement method based on a scatter plot
US20140192955A1 (en) Method and apparatus for improved sampling resolution in x-ray imaging systems
JP2016057990A (en) Display panel driver, display device, image processing device, and image processing method
CN115713917A (en) Display device and method for compensating brightness and chroma thereof
JP2019193084A5 (en)
CN111402163A (en) Gamma correction system and method
CN110506252A (en) Based on the transformational relation positioning terminal screen for indicating graphical dots coordinate in pattern
JP2005513630A5 (en)
CN109817174A (en) Device and method for image rectification
JP2016046751A (en) Image processing apparatus, image processing method and image display apparatus
CN105513012A (en) Oscilloscope digital fluorescence image rapid mapping method
FI3839882T3 (en) Radiometric correction in image mosaicing
CN110807113B (en) Non-iterative elimination method for rectangular primitive overlap in visual layout
CN110660119B (en) Character dynamic effect generation method and device based on bitmap scanning
WO2011027401A1 (en) Image processing device and method
CN1286062C (en) Interpolation processing method for digital image
CN102509259A (en) Image scaling method based on directions of pixels in image
CN102846340B (en) Method, device and ultrasonic device for imaging of anatomic M-mode at low frequency
JP2022098970A (en) Image conversion device, image conversion method, character information conversion device, character information conversion method and program
CN107450347B (en) A GPU real-time non-uniformity correction method based on infrared hardware-in-the-loop simulation system
JP4975705B2 (en) Image processing apparatus, image processing method, image processing computer program, and storage medium storing image processing computer program
JP2010224514A (en) Method for adjusting stroke of font

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160420