CN102631222A - CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method - Google Patents
CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method Download PDFInfo
- Publication number
- CN102631222A CN102631222A CN2012101271942A CN201210127194A CN102631222A CN 102631222 A CN102631222 A CN 102631222A CN 2012101271942 A CN2012101271942 A CN 2012101271942A CN 201210127194 A CN201210127194 A CN 201210127194A CN 102631222 A CN102631222 A CN 102631222A
- Authority
- CN
- China
- Prior art keywords
- coordinate
- texture
- triangle
- gpu
- data
- 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
Links
Images
Abstract
The invention discloses a CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method which comprises the steps of: obtaining scanning data, dividing the scanning data into n*m parts of rectangles, dividing the obtained rectangles into triangles, finishing coordinate transform, and sequentially drawing each triangle to obtain a scanning transformed image. The transform method disclosed by the invention finishes the scanning transform on the condition of not increasing the system cost or complexity on the basis of CPU and provides better instantaneity and image quality, and the method disclosed by the invention can be finished by cheapest hardware, thereby not only reducing the cost, but also having simple hardware structure, so that the method is more suitable for miniaturization; and meanwhile, the hardware structure is simple, so that the integral power consumption is much smaller than that of the traditional systems, and the environmental-friendly conception is satisfied.
Description
Technical field
The present invention relates to the medical ultrasound imaging technology, the ultra sonic imaging scan conversion method of particularly realizing based on GPU (Graphics Process Unit) graph processing technique.
Background technology
The transducer of most Abdominal B type ultrasonography probe is segmental, so be polar coordinate system from the resulting scan-data of transducer.We need convert polar coordinate to rectangular coordinate and could show when on screen, showing.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, the data of scanning gained be s (θ, d), through coordinate transform, with data conversion to the xy plane down i (x, y), specifically 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,, also be very heavy to the burden of CPU even adopt look-up table.Usually need very high performance CPU, do not adopt bilinear interpolation, perhaps adopt DSP or FPGA auxiliary.
But these methods all 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
To the problems referred to above, the present invention provides a kind of and realizes fast, low-cost, the high performance ultra sonic imaging scan conversion method of realizing based on GPU.
The technical scheme that the present invention is adopted for its technical problem of solution is:
Ultra sonic imaging scan conversion method based on GPU realizes may further comprise the steps: obtain scan-data s (θ, d); (θ d) is divided into the n equal portions in the θ direction, is divided into the m equal portions in the d direction, forms the rectangle of n*m part with scan-data s; With the rectangle triangulation that obtains, (the coordinate transform relation is: x=(d0+d) sin (θ), y=(d0+d) cos (θ) for θ, d) the corresponding triangular apex coordinate on the xy plane of planar triangle with s in calculating; S (θ; D) as the texture of GPU, the θ direction is the u coordinate of texture, and the d direction is the v coordinate of texture; The coordinate of xy plane triangle is as the apex coordinate of GPU; Corresponding u coordinate and the v coordinate of xy plane triangle is texture coordinate, and each triangle is drawn successively, obtains 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) texture of the good correspondence size of back establishment earlier; (θ d) is divided into and calculates good each vertex of a triangle and texture coordinate behind the triangle scan-data s, and summit and texture coordinate exist in the internal memory; Open the bilinear interpolation switch of GPU during drafting; The scan-data that receives is uploaded to the good texture of establishment in advance, bind this texture, draw triangle one by one with calculating good summit and texture coordinate in advance.
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, accomplish scan conversion, better real-time property and picture quality are provided; Method of the present invention can use the most cheap hardware to accomplish, and not only reduce cost, 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.
Description of drawings
Further explain below in conjunction with the accompanying drawing and the specific embodiment:
Fig. 1 is the polar coordinate system scan-data figure before the conversion;
Fig. 2 is the rectangular coordinate system scan-data figure after the conversion;
Fig. 3 is divided into leg-of-mutton scan-data figure for the polar coordinate system before the conversion;
Fig. 4 is divided into leg-of-mutton scan-data figure for the rectangular coordinate system after the conversion.
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 is used for converting the scan-data under the resulting polar coordinate system of transducer to can show at screen rectangular coordinate system data.Describe in the face of detailed step of the present invention down.
Obtain scan-data s (θ, step d), as shown in Figure 1 because these data generate by slanted transducer, so this scan-data s that gets access to (θ is under the polar coordinate system d), and these data must be transformed under the rectangular coordinate system and could show.
Step with the scan-data division: (θ d) is divided into the n equal portions in the θ direction, is divided into the m equal portions in the d direction, forms the rectangle of n*m part with scan-data s.Usually, it is enough big that the number needs of division is wanted, and could form the rectangle of n*m part, and in general embodiment, the data of n, m preferably are not less than 10 integer.
Divide triangle and the step of calculating the triangular apex coordinate: with the rectangle triangulation that obtains; Calculate and s (θ; D) the corresponding triangular apex coordinate on the xy plane of planar triangle, the coordinate transform relation is: x=(d0+d) sin (θ), y=(d0+d) cos (θ).4) work as m, when n was enough big, we can think that in triangle, the coordinate transform of each point is a linear distribution.GPU why is divided into triangle, because generally can only draw by diabolo.As preferred embodiment, when being divided into triangle, rectangle becomes two trianglees according to the rectangle diagonal division.The sketch map that is divided into is as shown in Figure 3.
The step of drawing: s (θ, d) as the texture of GPU, the θ direction is the u coordinate of texture; The d direction is the v coordinate of texture; The coordinate of xy plane triangle is as the apex coordinate of GPU, and corresponding u coordinate and the v coordinate of xy plane triangle is texture coordinate, and each triangle is drawn successively; Obtain scan conversion image later, as shown in Figure 4.
In the practical implementation process, the API that can select for use Direct3D to quicken as GPU.When the API that selects for use Direct3D to quicken as GPU realizes this method; The following mode of general employing is carried out: obtain scan-data s (θ, the d) texture of the good correspondence size of back establishment earlier, scan-data s (θ; D) be divided into and calculate good each vertex of a triangle and texture coordinate behind the triangle; Summit and texture coordinate exist in the internal memory, open the bilinear interpolation switch of GPU during drafting, the scan-data that receives is uploaded to create good texture in advance; Bind this texture, draw triangle one by one with calculating good summit and texture coordinate in advance.
Embodiment of the present invention is 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 (4)
1. the ultra sonic imaging scan conversion method of realizing based on GPU is characterized in that may further comprise the steps:
Obtain scan-data s (θ, d);
(θ d) is divided into the n equal portions in the θ direction, is divided into the m equal portions in the d direction, forms the rectangle of n*m part with scan-data s;
With the rectangle triangulation that obtains, (the coordinate transform relation is: x=(d0+d) sin (θ), y=(d0+d) cos (θ) for θ, d) the corresponding triangular apex coordinate on the xy plane of planar triangle with s in calculating;
S (θ; D) as the texture of GPU, the θ direction is the u coordinate of texture, and the d direction is the v coordinate of texture; The coordinate of xy plane triangle is as the apex coordinate of GPU; Corresponding u coordinate and the v coordinate of xy plane triangle is texture coordinate, and each triangle is drawn successively, obtains scan conversion image later.
2. the ultra sonic imaging scan conversion method of realizing based on GPU according to claim 1, the value that it is characterized in that n and m is to be not less than 10 integer.
3. the ultra sonic imaging scan conversion method of realizing based on GPU according to claim 1 becomes two trianglees according to the rectangle diagonal division when it is characterized in that rectangle is divided into triangle.
4. the ultra sonic imaging scan conversion method of realizing based on GPU according to claim 1; It is characterized in that obtaining scan-data s (θ, the d) texture of the good correspondence size of back establishment earlier, scan-data s (θ; D) be divided into and calculate good each vertex of a triangle and texture coordinate behind the triangle; Summit and texture coordinate exist in the internal memory, open the bilinear interpolation switch of GPU during drafting, the scan-data that receives is uploaded to create good texture in advance; Bind this texture, draw triangle one by one with calculating good summit and texture coordinate in advance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210127194.2A CN102631222B (en) | 2012-04-26 | 2012-04-26 | CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210127194.2A CN102631222B (en) | 2012-04-26 | 2012-04-26 | CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102631222A true CN102631222A (en) | 2012-08-15 |
CN102631222B CN102631222B (en) | 2014-01-01 |
Family
ID=46615918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210127194.2A Active CN102631222B (en) | 2012-04-26 | 2012-04-26 | CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102631222B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106596736A (en) * | 2016-12-14 | 2017-04-26 | 天津大学 | Real-time ultrasonic phased array total focusing imaging method |
CN107280703A (en) * | 2016-07-22 | 2017-10-24 | 珠海医凯电子科技有限公司 | Real-time 3D ultrasound scan conversions method based on GPU platform |
Citations (7)
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 |
US20050122333A1 (en) * | 2003-12-05 | 2005-06-09 | Siemens Medical Solutions Usa, Inc. | Graphics processing unit for simulation or medical diagnostic imaging |
CN101125089A (en) * | 2007-07-23 | 2008-02-20 | 深圳市蓝韵实业有限公司 | Digital scanning converter implementation method |
US20080161690A1 (en) * | 2006-12-27 | 2008-07-03 | Kabushiki Kaisha Toshiba | Ultrasonic imaging apparatus and a method for displaying diagnostic images |
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 |
-
2012
- 2012-04-26 CN CN201210127194.2A patent/CN102631222B/en active Active
Patent Citations (7)
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 |
US20050122333A1 (en) * | 2003-12-05 | 2005-06-09 | Siemens Medical Solutions Usa, Inc. | Graphics processing unit for simulation or medical diagnostic imaging |
US20080161690A1 (en) * | 2006-12-27 | 2008-07-03 | Kabushiki Kaisha Toshiba | Ultrasonic imaging apparatus and a method for displaying diagnostic images |
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 (2)
Title |
---|
彭龙飞等: "一种高效实现B超坐标变换的方法", 《声学技术》, vol. 28, no. 4, 31 August 2009 (2009-08-31), pages 260 - 263 * |
谈宜育等: "一种B超数字扫描变换器(DSC)的FPGA实现", 《中国医疗器械杂志》, vol. 25, no. 4, 31 December 2001 (2001-12-31), pages 213 - 214 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107280703A (en) * | 2016-07-22 | 2017-10-24 | 珠海医凯电子科技有限公司 | Real-time 3D ultrasound scan conversions method based on GPU platform |
CN106596736A (en) * | 2016-12-14 | 2017-04-26 | 天津大学 | Real-time ultrasonic phased array total focusing imaging method |
CN106596736B (en) * | 2016-12-14 | 2019-06-28 | 天津大学 | A kind of real-time ultrasound phased array total focus imaging method |
Also Published As
Publication number | Publication date |
---|---|
CN102631222B (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2008110951A (en) | METHOD FOR PROCESSING IMAGES, PROGRAM FOR PROCESSING IMAGES AND DEVICE FOR PROCESSING IMAGES | |
CN108805806B (en) | Image processing method and device | |
CN107958437A (en) | A kind of big resolution ratio multi-screen figure block parallel rendering intents of more GPU | |
CN105913488B (en) | A kind of three-dimensional point cloud fast reconstructing method based on three-dimensional mapping table | |
CN106210719A (en) | Channel data based on Ultrasound beamforming device compresses | |
CN102631222A (en) | CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method | |
KR20190021394A (en) | Method and device for constructing projection image | |
WO2016151790A1 (en) | Texture mapping device, texture mapping method, and program | |
KR101978728B1 (en) | Method and device for classifying medical ultrasound image based on deep learning using smart device | |
US11055820B2 (en) | Methods, apparatus and processor for producing a higher resolution frame | |
US20160063757A1 (en) | System and Method for Remote Shadow Rendering in a 3D Virtual Environment | |
CN101354793B (en) | Real time three-dimensional image smoothing process method based on pattern processor | |
JP5390645B2 (en) | Ultrasonic diagnostic equipment | |
CN104224230A (en) | Three-dimensional and four-dimensional ultrasonic imaging method and device based on GPU (Graphics Processing Unit) platform and system | |
CN103730097B (en) | The display packing of ultrahigh resolution image and system | |
CN112294354A (en) | Ultrasound imaging method and system | |
CN107280703B (en) | Real-time 3D ultrasonic scanning conversion method based on GPU platform | |
CN109961395A (en) | The generation of depth image and display methods, device, system, readable medium | |
CN105678820A (en) | CUDA-based S-BPF reconstruction algorithm acceleration method | |
JP6443574B1 (en) | Ray casting program, search control data, search control data generation method, and ray casting apparatus | |
CN201453295U (en) | Digital scanning conversion device | |
CN106157277A (en) | GPU Ultrasound Harmonic Imaging complex method | |
CN205003120U (en) | C -SCAN supersonic reflectoscope that forms images | |
Younis | Hardware Implementation of 3D-Bresenham’s Algorithm Using FPGA | |
Zhao et al. | A GPU based high-definition ultrasound digital scan conversion algorithm |
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 |