CN102631222B - Ultrasound imaging scan conversion method based on GPU - Google Patents

Ultrasound imaging scan conversion method based on GPU Download PDF

Info

Publication number
CN102631222B
CN102631222B CN201210127194.2A CN201210127194A CN102631222B CN 102631222 B CN102631222 B CN 102631222B CN 201210127194 A CN201210127194 A CN 201210127194A CN 102631222 B CN102631222 B CN 102631222B
Authority
CN
China
Prior art keywords
texture
gpu
scan
triangles
coordinates
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.)
Expired - Fee Related
Application number
CN201210127194.2A
Other languages
Chinese (zh)
Other versions
CN102631222A (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.)
ZHUHAI YIKAI ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
ZHUHAI YIKAI ELECTRONIC 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 ZHUHAI YIKAI ELECTRONIC TECHNOLOGY Co Ltd filed Critical ZHUHAI YIKAI ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201210127194.2A priority Critical patent/CN102631222B/en
Publication of CN102631222A publication Critical patent/CN102631222A/en
Application granted granted Critical
Publication of CN102631222B publication Critical patent/CN102631222B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明公开了基于GPU实现的超声成像扫描变换方法,其获取扫描数据,将扫描数据划分形成n*m份的矩形,将获得的矩形分成三角形,完成坐标变换,再对每个三角形依次进行绘制,得到扫描变换过后的图像。本发明基于GPU在不增加系统成本和复杂度的前提下,完成扫描变换,提供更好的实时性和图像质量,本发明的方法可以使用最廉价的硬件完成,不但降低成本,而且硬件结构简单,更适合小型化,同时由于硬件结构简单,整体功耗也会比以往的系统小很多,符合绿色环保的理念。

Figure 201210127194

The invention discloses an ultrasonic imaging scan transformation method based on GPU, which acquires scan data, divides the scan data into n*m rectangles, divides the obtained rectangle into triangles, completes coordinate transformation, and then draws each triangle in turn , to obtain the image after scan conversion. The present invention is based on the fact that the GPU completes scan conversion without increasing system cost and complexity, and provides better real-time performance and image quality. The method of the present invention can be completed using the cheapest hardware, which not only reduces costs, but also has a simple hardware structure , which is more suitable for miniaturization. At the same time, due to the simple hardware structure, the overall power consumption will be much smaller than that of the previous system, which is in line with the concept of green environmental protection.

Figure 201210127194

Description

The ultra sonic imaging scan conversion method of realizing based on GPU
Technical field
The present invention relates to the medical ultrasound imaging technology, particularly based on GPU(Graphics Process Unit) the ultra sonic imaging scan conversion method realized of graph processing technique.
Background technology
The transducer of most Abdominal B type ultrasonography probe is fan-shaped, so be polar coordinate system from the resulting scan-data of transducer.When showing on screen, we need to convert polar coordinate to rectangular coordinate and could show.Scan conversion is a process that transforms to rectangular coordinate system from polar coordinate system in essence.As illustrated in fig. 1 and 2, the scanning probe direction is θ, and depth direction is d, and the data of scanning gained are s (θ, d), by coordinate transform, data conversion is arrived to the i (x, y) under the xy plane, and concrete transformation for mula is:
x=?(d0+d)sin(θ)
y=?(d0+d)cos(θ)
Coordinate transform is an operation very consuming time.In order to reach the requirement of real-time, even adopt look-up table, to the burden of CPU, be also very heavy.Usually need very high performance CPU, do not adopt bilinear interpolation, or adopt DSP or FPGA to assist.
But these methods have shortcoming: 1) the common cost of high performance CPU is very high, and can't make device miniaturization; 2) do not adopt bilinear interpolation can save a part of amount of calculation, but make picture quality that obvious decline is arranged yet; 3) adopt DSP or FPGA not only to increase cost, also increased the complexity of system simultaneously.
Summary of the invention
For the problems referred to above, the invention provides a kind of quick, low-cost, high performance ultra sonic imaging scan conversion method of realizing based on GPU of realizing.
The present invention is that the technical scheme that its technical problem of solution adopts is:
The ultra sonic imaging scan conversion method of realizing based on GPU, comprise the following steps: obtain scan-data s (θ, d); Scan-data s (θ, d) is divided into to the n equal portions in the θ direction, in the d direction, is divided into the m equal portions, form the rectangle of n*m part; Rectangle triangulation by obtaining, calculate the triangular apex coordinate on xy plane corresponding with the triangle on s (θ, d) plane, and coordinate transform is closed and is: x=(d0+d) sin (θ), y=(d0+d) cos (θ); S (θ, d) as the texture of GPU, the u coordinate that the θ direction is texture, the v coordinate that the d direction is texture, the coordinate of xy plane triangle is as the apex coordinate of GPU, the u coordinate that the xy plane triangle is corresponding and v coordinate are texture coordinate, and each triangle is drawn successively, obtain scan conversion image later.
Further, the value of n and m is to be not less than 10 integer.
Become two trianglees according to the rectangle diagonal division when further, rectangle is divided into triangle.
Further, obtain scan-data s (θ, d) first create the texture of corresponding size after, scan-data s (θ, d) calculates each vertex of a triangle and texture coordinate after being divided into triangle, and summit and texture coordinate exist in internal memory, open the bilinear interpolation switch of GPU during drafting, the scan-data received is uploaded to the texture be pre-created, bind this texture, with precalculated summit and texture coordinate, draw one by one triangle.
The invention has the beneficial effects as follows: the present invention is based on GPU under the prerequisite that does not increase system cost and complexity, complete scan conversion, better real-time and picture quality are provided, method of the present invention can be used the most cheap hardware to complete, and not only reduce costs, and hardware configuration is simple, be more suitable for miniaturization, because hardware configuration is simple, overall power also can be little more a lot of than system in the past, meet the theory of environmental protection simultaneously.
The accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, be further detailed:
Fig. 1 is the front polar coordinate system scan-data figure of conversion;
Fig. 2 is the rectangular coordinate system scan-data figure after converting;
Fig. 3 is divided into leg-of-mutton scan-data figure for the front polar coordinate system of conversion;
Fig. 4 is divided into leg-of-mutton scan-data figure for the rectangular coordinate system after converting.
The specific embodiment
With reference to Fig. 1,2,3 and 4, the ultra sonic imaging scan conversion method of realizing based on GPU of the present invention, for converting the scan-data from the resulting polar coordinate system of transducer to can show at screen rectangular coordinate system data.Below detailed step of the present invention is described.
Obtain the step of scan-data s (θ, d), as shown in Figure 1, because these data are generated by slanted transducer, therefore this scan-data s (θ, d) got is under polar coordinate system, and these data must be transformed under rectangular coordinate system and could show.
The step that scan-data is divided: scan-data s (θ, d) is divided into to the n equal portions in the θ direction, in the d direction, is divided into the m equal portions, form the rectangle of n*m part.Usually, the number needs of division is wanted enough greatly, could form the rectangle of n*m part, in general embodiment, the data optimization of n, m be not less than 10 integer.
Divide triangle and the step of calculating the triangular apex coordinate: by the rectangle triangulation obtained, calculate and s (θ, d) the triangular apex coordinate on the xy plane corresponding to the triangle on plane, coordinate transform is closed: x=(d0+d) sin (θ), y=(d0+d) cos (θ).4) work as m, when n is enough large, we can think that, in triangle, the coordinate transform of each point is linear distribution.GPU why is divided into triangle, because generally can only be drawn by diabolo.As preferred embodiment, when being divided into triangle, rectangle becomes two trianglees according to the rectangle diagonal division.The schematic diagram be divided into as shown in Figure 3.
The step of drawing: s (θ, d) as the texture of GPU, the u coordinate that the θ direction is texture, the v coordinate that the d direction is texture, the coordinate of xy plane triangle is as the apex coordinate of GPU, and the u coordinate that the xy plane triangle is corresponding and v coordinate are texture coordinate, and each triangle is drawn successively, obtain scan conversion image later, as shown in Figure 4.
In specific implementation process, the API that can select Direct3D to accelerate as GPU.When the API that selects Direct3D to accelerate as GPU realizes this method, generally carry out in the following ways: obtain scan-data s (θ, d) first create the texture of corresponding size after, scan-data s (θ, d) calculate each vertex of a triangle and texture coordinate after being divided into triangle, summit and texture coordinate exist in internal memory, open the bilinear interpolation switch of GPU during drafting, the scan-data received is uploaded to the texture be pre-created, bind this texture, with precalculated summit and texture coordinate, draw one by one triangle.
Embodiments of the present invention are not restricted to the described embodiments, as long as it reaches technique effect of the present invention with essentially identical means, all should belong to protection scope of the present invention.

Claims (1)

1.基于GPU实现的超声成像扫描变换方法,其特征在于包括以下步骤: 1. the ultrasonic imaging scan conversion method realized based on GPU, is characterized in that comprising the following steps: 获取扫描数据s(θ, d),θ为探头扫描方向,d为深度方向; Obtain scan data s(θ, d), θ is the scanning direction of the probe, and d is the depth direction; 将扫描数据s(θ, d) 在θ方向分为n等份,在d方向分为m等份,形成n*m份的矩形,n和m的值为不小于10的整数; Divide the scanned data s(θ, d) into n equal parts in the θ direction and m equal parts in the d direction to form a rectangle of n*m parts, and the values of n and m are integers not less than 10; 将获得的矩形分成三角形,矩形划分为三角形时按照矩形对角线划分成两个三角形,计算与s(θ, d)平面的三角形对应的在xy平面上的三角形顶点坐标,坐标变换关系为:x= (d0+d)sin(θ),y= (d0+d)cos(θ); Divide the obtained rectangle into triangles. When the rectangle is divided into triangles, divide it into two triangles according to the diagonal of the rectangle. Calculate the coordinates of the vertices of the triangles on the xy plane corresponding to the triangles on the s(θ, d) plane. The coordinate transformation relationship is: x= (d0+d)sin(θ), y= (d0+d)cos(θ); 把s(θ, d)作为GPU的纹理,θ方向为纹理的u坐标,d方向为纹理的v坐标,xy平面三角形的坐标作为GPU的顶点坐标,xy平面三角形对应的u坐标和v坐标为纹理坐标,对每个三角形依次进行绘制,得到扫描变换过后的图像,获取扫描数据s(θ, d)后先创建好对应大小的texture,扫描数据s(θ, d)划分为三角形后计算好每个三角形的顶点和纹理坐标,顶点和纹理坐标存在内存中,绘制时打开GPU的双线性插值开关,将接收到的扫描数据上传到预先创建好的texture,绑定该texture,用预先计算好的顶点和纹理坐标逐个绘制三角形。 Take s(θ, d) as the texture of the GPU, the θ direction is the u coordinate of the texture, the d direction is the v coordinate of the texture, the coordinates of the xy plane triangle are used as the vertex coordinates of the GPU, and the u coordinates and v coordinates corresponding to the xy plane triangle are Texture coordinates, each triangle is drawn in turn to obtain the image after scan transformation, after obtaining the scan data s(θ, d), first create a texture of the corresponding size, and the scan data s(θ, d) is divided into triangles and calculated The vertices and texture coordinates of each triangle are stored in the memory. When drawing, turn on the bilinear interpolation switch of the GPU, upload the received scan data to the pre-created texture, bind the texture, and use the pre-calculated Good vertex and texture coordinates to draw triangles one by one.
CN201210127194.2A 2012-04-26 2012-04-26 Ultrasound imaging scan conversion method based on GPU Expired - Fee Related CN102631222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210127194.2A CN102631222B (en) 2012-04-26 2012-04-26 Ultrasound imaging scan conversion method based on GPU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210127194.2A CN102631222B (en) 2012-04-26 2012-04-26 Ultrasound imaging scan conversion method based on GPU

Publications (2)

Publication Number Publication Date
CN102631222A CN102631222A (en) 2012-08-15
CN102631222B true CN102631222B (en) 2014-01-01

Family

ID=46615918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210127194.2A Expired - Fee Related CN102631222B (en) 2012-04-26 2012-04-26 Ultrasound imaging scan conversion method based on GPU

Country Status (1)

Country Link
CN (1) CN102631222B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107280703B (en) * 2016-07-22 2019-12-24 珠海医凯电子科技有限公司 Real-time 3D ultrasonic scanning conversion method based on GPU platform
CN106596736B (en) * 2016-12-14 2019-06-28 天津大学 A kind of real-time ultrasound phased array total focus imaging method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1424721A2 (en) * 2002-11-27 2004-06-02 Hitachi High-Technologies Corporation Sample observation method and transmission electron microscope
CN101125089A (en) * 2007-07-23 2008-02-20 深圳市蓝韵实业有限公司 Digital scanning converter implementation method
CN101396281A (en) * 2007-09-27 2009-04-01 深圳迈瑞生物医疗电子股份有限公司 Scanning transform method and device for color ultrasound image-forming
CN101543412A (en) * 2008-03-26 2009-09-30 深圳迈瑞生物医疗电子股份有限公司 Method and device for calculating graph coordinate components based on two-dimensional ultrasonic imaging device
CN101606854A (en) * 2009-06-10 2009-12-23 无锡祥生科技有限公司 A kind of high-precision real-time ultrasonic image scan conversion method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7119810B2 (en) * 2003-12-05 2006-10-10 Siemens Medical Solutions Usa, Inc. Graphics processing unit for simulation or medical diagnostic imaging
JP5022700B2 (en) * 2006-12-27 2012-09-12 株式会社東芝 Ultrasonic diagnostic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1424721A2 (en) * 2002-11-27 2004-06-02 Hitachi High-Technologies Corporation Sample observation method and transmission electron microscope
CN101125089A (en) * 2007-07-23 2008-02-20 深圳市蓝韵实业有限公司 Digital scanning converter implementation method
CN101396281A (en) * 2007-09-27 2009-04-01 深圳迈瑞生物医疗电子股份有限公司 Scanning transform method and device for color ultrasound image-forming
CN101543412A (en) * 2008-03-26 2009-09-30 深圳迈瑞生物医疗电子股份有限公司 Method and device for calculating graph coordinate components based on two-dimensional ultrasonic imaging device
CN101606854A (en) * 2009-06-10 2009-12-23 无锡祥生科技有限公司 A kind of high-precision real-time ultrasonic image scan conversion method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
一种B超数字扫描变换器(DSC)的FPGA实现;谈宜育等;《中国医疗器械杂志》;20011231;第25卷(第4期);第213-214页 *
一种高效实现B超坐标变换的方法;彭龙飞等;《声学技术》;20090831;第28卷(第4期);第260-263页 *
彭龙飞等.一种高效实现B超坐标变换的方法.《声学技术》.2009,第28卷(第4期),第260-263页.
谈宜育等.一种B超数字扫描变换器(DSC)的FPGA实现.《中国医疗器械杂志》.2001,第25卷(第4期),第213-214页.

Also Published As

Publication number Publication date
CN102631222A (en) 2012-08-15

Similar Documents

Publication Publication Date Title
CN102631222B (en) Ultrasound imaging scan conversion method based on GPU
KR101978728B1 (en) Method and device for classifying medical ultrasound image based on deep learning using smart device
CN106210719A (en) Channel data based on Ultrasound beamforming device compresses
JP5984260B2 (en) Image processing apparatus and medical image diagnostic apparatus
CN103860197B (en) Free style 3-D supersonic imaging methods, devices and systems
CN109741433A (en) A Tile-based Triangle Multidirectional Parallel Scanning Method and Structure
CN102663805B (en) Projection-based view frustum cutting method
KR20190021394A (en) Method and device for constructing projection image
JP2011217057A (en) Lens distortion removal device, method, and program
CN104114094B (en) Diagnostic ultrasound equipment
TW201235977A (en) Image processing apparatus and method thereof
JP2018124968A5 (en)
CN104217450B (en) Quick drawing method of any-angle circular arc
Kuo et al. Interactive volume rendering of real-time three-dimensional ultrasound images
CN103686029B (en) A kind of video pixel opposite-angle interpolation method for the many optical projection systems of giant-screen
CN108765297B (en) Super-resolution reconstruction method based on loop training
CN105678820A (en) CUDA-based S-BPF reconstruction algorithm acceleration method
CN108921785A (en) Super resolution ratio reconstruction method based on wavelet packet
CN107280703B (en) Real-time 3D ultrasonic scanning conversion method based on GPU platform
WO2016080089A1 (en) Ultrasound volume data processing device and ultrasound volume data processing method
CN106780341B (en) Fifth-order self-guided super-resolution reconstruction method based on contourlet
CN209134507U (en) A visual image processing device
CN105427354B (en) Image vector expression based on plane set of blocks
CN103829968B (en) The micro CT system analyzed based on p-type laser instrument orthogonal two-dimensional discrete wavelet HARR functional image and control method thereof
CN104546008B (en) A kind of first-harmonic/harmonic wave merges the formation method combined with space compound

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140101

CF01 Termination of patent right due to non-payment of annual fee