CN102631222B - CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method - Google Patents

CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method 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
coordinate
texture
triangle
scan
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.)
Active
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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

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

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. the ultra sonic imaging scan conversion method of realizing based on GPU is characterized in that comprising the following steps:
Obtain scan-data s (θ, d), θ is the scanning probe direction, and d is depth direction;
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, the value of n and m is to be not less than 10 integer;
By the rectangle triangulation obtained, when being divided into triangle, rectangle becomes two trianglees according to the rectangle diagonal division, 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 (θ);
S (θ, d) as the stricture of vagina of GPU, manage, 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, each triangle is drawn successively, obtain scan conversion image later, 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, draw one by one triangle with precalculated summit and texture coordinate.
CN201210127194.2A 2012-04-26 2012-04-26 CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method Active CN102631222B (en)

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 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 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)

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
EP2437503A3 (en) Image processing apparatus, image processing method, and computer program
CN102631222B (en) CPU (Central Processing Unit)-based ultrasonic imaging scanning transform method
RU2008110951A (en) METHOD FOR PROCESSING IMAGES, PROGRAM FOR PROCESSING IMAGES AND DEVICE FOR PROCESSING IMAGES
US20130172752A1 (en) Ultrasound transducer apparatus and ultrasound imaging system and imaging method
WO2012049124A3 (en) Methods and systems for producing compounded ultrasound images
CN107049358A (en) The optimum utilization of bandwidth between ultrasonic probe and display unit
GB2492039A (en) Two dimensional super resolution scaling
CN102663805B (en) Projection-based view frustum cutting method
EP2544457A3 (en) 3D image processing apparatus, implementation method of the same and computer-readable storage medium thereof
KR101978728B1 (en) Method and device for classifying medical ultrasound image based on deep learning using smart device
JP5390645B2 (en) Ultrasonic diagnostic equipment
CN103985083A (en) Reconfigurable one-dimensional convolution processor
CN101354793B (en) Real time three-dimensional image smoothing process method based on pattern processor
Kuo et al. Interactive volume rendering of real-time three-dimensional ultrasound images
CN105678820A (en) CUDA-based S-BPF reconstruction algorithm acceleration method
CN205003120U (en) C -SCAN supersonic reflectoscope that forms images
CN107280703B (en) Real-time 3D ultrasonic scanning conversion method based on GPU platform
CN203366317U (en) Image wave beam forming device
CN110058247A (en) A kind of method of synthetic aperture sonar real time imagery
CN106157277A (en) GPU Ultrasound Harmonic Imaging complex method
孙晓冬 et al. Reception pattern influence on magnetoacoustic tomography with magnetic induction
Younis Hardware Implementation of 3D-Bresenham’s Algorithm Using FPGA
CN104546008B (en) A kind of first-harmonic/harmonic wave merges the formation method combined with space compound
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
JP5072585B2 (en) Ultrasonic diagnostic apparatus, ultrasonic image processing apparatus, and ultrasonic image processing program

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