CN101814193A - Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration - Google Patents

Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration Download PDF

Info

Publication number
CN101814193A
CN101814193A CN 201010120708 CN201010120708A CN101814193A CN 101814193 A CN101814193 A CN 101814193A CN 201010120708 CN201010120708 CN 201010120708 CN 201010120708 A CN201010120708 A CN 201010120708A CN 101814193 A CN101814193 A CN 101814193A
Authority
CN
China
Prior art keywords
data
coordinate
volume
heart
max
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
CN 201010120708
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.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN 201010120708 priority Critical patent/CN101814193A/en
Publication of CN101814193A publication Critical patent/CN101814193A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

The invention relates to a real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration, belonging to the field of graph and image processing and solving the problems of low speed and high requirement on computer performance of the traditional volume rendering the three-dimensional heart data. The real-time volume rendering method of the three-dimensional heart data based on the GPU acceleration is realized based on a PC (Personal Computer) with a graphics card supporting Cg language. The volume rendering method concretely comprises the following steps of: firstly, reading and preprocessing data: organizing data of a plurality of slices of the heart to be drawn into a volume data file, packing the volume data file into a three-dimensional grain data packet and storing the three-dimensional grain data packet into the memory of the graphics card; secondly, converting data coordinates: converting the data coordinates in the there-dimensional grain packet obtained in the data preprocessing step into screen coordinates; and thirdly, outputting the volume data after the coordinate standardization by adopting a volume rendering method. The invention is also suitable for the volume rendering of other three-dimensional organs with complex structures.

Description

Real-time three-dimensional cardiac data object plotting method based on the GPU acceleration
Technical field
What the present invention relates to is a kind of based on GPU (Graphic Processing Unit) object plotting method, particularly a kind of with the method for baroque three-dimensional cardiac data with real-time, interactive, the demonstration of configurable form, belongs to the graph and image processing field.
Background technology
Heart is human recycle system's a power source as the vitals of human body.Heart disease such as coronary heart disease etc. have become one of maximum in the world cause of death.Reinforcement improves the diagnosis and the treatment of heart disease to heart working and pathogenetic understanding, has become a research focus of biomedical engineering field.Thereby relevant medical imaging and modeling and simulating technology are developed rapidly in recent years, have emerged in large numbers a large amount of as three-dimensional cardiac data such as medical section and electric physiological simulation.The complex structure of heart is made up of a plurality of organs and blood vessel.Outside organ has surrounded inner organ, makes people be difficult to understand the inner structure of heart, thereby is difficult to understand the one-piece construction of heart.Vassilios Hurmusiadis has developed the Virtual Heart heart emulation platform that is used for education and training, and this platform has been showed cell, tissue and the organ of heart from function and structure.Use Marching Cube method to draw three cardiac modules in the integrally-built demonstration part of heart, and use the inner structure of the method demonstration heart of shear plane.Because Marching Cube method can not be drawn out the internal information of heart, and shear plane has destroyed the effect of heart integral body, so this system can not draw out the one-piece construction of heart intuitively.People such as Yang design is applicable to the acceleration visualized algorithm of three-dimensional human heart data.This method has been showed the one-piece construction of heart well, but because render speed can't reach the purpose of good user interactions more slowly.
Volume drawing is also referred to as body and plays up (Volume Rendering), is a kind of important graphics process and visualization technique.It not only can the display model surface shape and texture information, and can show the ins and outs that is included in the data and the mutual relationship between data.Because the data volume of volume data is very big, on PC, use software approach to be difficult to realize Interactive Visualization, the researchist can only seek help from the powerful supercomputer of parallel processing capability.
Summary of the invention
The objective of the invention is to, the volume drawing speed that solves existing three-dimensional cardiac data is slow, to the demanding problem of computing power, so provide a kind of fast, can realize three-dimensional cardiac data volume method for drafting.
The real-time three-dimensional cardiac data object plotting method that quickens based on GPU of the present invention is based on that the PC that has the video card of supporting the Cg language realizes, specifically the comprising of described object plotting method:
The step of data read and pretreated step, data coordinates conversion and the step of image rendering, wherein:
Data read and pretreated step are that a plurality of slice of datas of heart to be drawn are organized into the volume data file, and after described volume data file is packaged into the three-D grain packet, store in the internal memory of video card; The sectioning image that the slice of data of heart to be drawn is represented wide and high respectively as the x of volume data, the y axle is with the quantity of all slice of datas of heart the to be drawn z axle as volume data;
The step of data coordinates conversion is to convert the data coordinates in the three-D grain packet of the pretreated step acquisition of data to screen coordinate;
The step of image rendering is to adopt the method for direct volume drawing to draw output the volume data after the coordinate standardization.
Innovative point of the present invention is the geometric manipulations ability of using GPU powerful, be applied to the interactive visual of complex three-dimensional cardiac data, make the data of heart can show the one-piece construction of heart or different organs in real time according to user's input, the present invention has avoided the method for using shear plane, make the user can observe each ingredient of heart, the while is not destroyed the structure of whole heart again.The present invention uses direct volume drawing (Direct Volume Rendering) method, makes the user can observe the one-piece construction of heart.
Advantage of the present invention has:
One, improved the image display speed: adopted the graphic hardware speed technology, promptly adopt existing high-rise painted language (with respect to the assembly language that only designs) to realize the acceleration of graphic presentation, and then improved the display speed of image greatly at specific video card based on the GPU architecture.
Two, improved the arithmetic speed of CPU: adopt graphic hardware to quicken to realize volume drawing, only the packing data that needs will be to be drawn becomes the form of texture to be transferred on the video card, then the complex calculations load also being transferred to video card carries out, make CPU be absorbed in other work, thereby improved the arithmetic speed of CPU greatly.
Three, realize the interactive visual of three-dimensional cardiac data: three-dimensional cardiac data volume method for drafting speed of the present invention is fast, can realize the Interactive Visualization of complex three-dimensional cardiac data, can make the user can alternatively dispose, observe, analyze visualization result.
Four, low cost.This method only needs a common PC and a video card of supporting the Cg language.Present household PC configuration can be used this method.
Five, Gao Du compatibility.The present invention use can be cross-platform development language and kit, so (or making an amendment slightly) may operate under the different operating system and hardware platform in theory.
Six, Gao Du ease for use.The present invention only needs mouse and keyboard just can finish adjustment and configuration to visualization result.Convenient, easy-to-use, user's medical knowledge and computation technical ability is not almost required.
Method of the present invention makes the visual observation analysis of cardiac data become possibility under the prerequisite of the render speed that guarantees cardiac module.The present invention can be applied to medic's intracardiac section foundation training and virtual operation training, also can be as the demo system of popularizing heart disease prevention knowledge.Along with the raising of people's health care consciousness, native system has enormous and latent market.
Method of the present invention still is used for the volume drawing of the three-dimensional internal organs of other labyrinth.
Description of drawings
Fig. 1 is the gray-scale value frequency statistics figure of the volume data described in the embodiment.Fig. 2 is the optical properties mapping graph of heart tissue gray-scale value and each gray-scale value correspondence.Fig. 3 adopts existing method to carry out the picture of volume drawing acquisition according to the slice of data of heart.Fig. 4 and Fig. 5 adopt method of the present invention to draw the picture that obtains, the two sight angle differences of attaching pictures according to the slice of data of heart.
Embodiment
The described real-time three-dimensional cardiac data object plotting method that quickens based on GPU of present embodiment is based on that the PC that has the video card of supporting the Cg language realizes.The graphics process acp chip of described video card is GPU (Graphic Processing Unit), specifically the comprising of this method:
The step of data read and pretreated step, data coordinates conversion and the step of image rendering, wherein:
Data read and pretreated step are that a plurality of slice of datas of heart to be drawn are organized into the volume data file, and after described volume data file is packaged into the three-D grain packet, store in the internal memory of video card; The sectioning image that the slice of data of heart to be drawn is represented wide and high respectively as the x of volume data, the y axle is with the quantity of all slice of datas of heart the to be drawn z axle as volume data; Detailed process is:
Header in each slice of data of heart to be drawn is deleted, to delete then all slice of datas after the header adjust, form satisfy the three-D grain packing require the volume data file, the GPU by the video card of supporting the Cg language is packaged into the three-D grain packet with described volume data file at last.
In the above-mentioned steps, the process of the processing of slice of data and organizator data file has the CPU of PC to realize, and the process that described volume data file is packaged into the three-D grain packet is finished by the GPU of the video card of supporting the Cg language, formed three data texturing bags are stored in the internal memory of video card, do not take the resource of CPU.
The step of data coordinates conversion is to convert the data coordinates in the three-D grain packet of the pretreated step acquisition of data to screen coordinate, and detailed process is:
The coordinate of three-dimensional data is carried out view transformation, projective transformation and normalized transformation successively, finally obtain screen coordinate.
The conversion process that data coordinates is carried out view is: with the setting coordinate of view origin P is coordinate P=(x under the world coordinate system 0, y 0, z 0), then the coordinate translation transformation for mula is:
T = 1 0 0 - x 0 0 1 0 - y 0 0 0 1 - z 0 0 0 0 1 - - - ( 1 )
The Rotating Transition of Coordinate formula is:
R = u x u y u z 0 v x v y v z 0 n x n y n z 0 0 0 0 1 - - - ( 2 )
Wherein, vector of unit length u, v, n are three direction vectors of three coordinate axis of the reference frame under the world coordinate system:
Translation transformation formula and rotational transform formula are multiplied each other, obtain to be tied to view coordinate transform formula under the view coordinate system from world coordinates:
M wc , vc = R · T = u x u y u z - u · P 0 v x v y v z - v · P 0 n x n y n z - n · P 0 0 0 0 1 - - - ( 3 )
Data coordinates and view coordinate transform formula are multiplied each other, obtain the data coordinates under the view coordinate system.
Projective transformation is meant the coordinate transformation process of the data coordinates under the view coordinate system being carried out projective transformation, adopts orthogonal projection (Orthogonal Projection) method that the data coordinates under the view coordinate system is carried out conversion in the present embodiment, and detailed process is:
(x, y z) carry out orthogonal projection, and the coordinate that obtains after the projection is: x with the arbitrfary point in the data under the view coordinate system p=x, y p=y, former and later two shear surfaces are set on z, be respectively hither plane (near plane) and far plane (far plane), part between described hither plane (near plane) and far plane (far plane) is what comes into a driver's body (View Volume), and the coordinate that carries out all data after the projective transformation all is positioned at described what comes into a driver's body (View Volume).
The effect of above-mentioned projective transformation is that the object in the three-dimensional space is represented to be mapped on the view plane of two dimension.In the process of projective transformation, can adopt various projection patterns to carry out coordinate transform, through experimental test, the orthogonal projection method that present embodiment adopted can reach best visual effect.
Normalized transformation is meant that the data coordinates that will obtain after the projection carries out normalized conversion, and detailed process is:
To be positioned at the coordinate points (x in the hither plane lower left corner Min, y Min, z Near) be mapped to (1 ,-1 ,-1), will be positioned at the coordinate points (x in the far plane upper right corner Max, y Max, z Far) be mapped to (1,1,1), then according to formula
Mortho , norm = 2 xw max - xw min 0 0 - xw max + xw min xw max - xw min 0 2 yw max - yw min 0 - yw max + yw min yw max - yw min 0 0 - 2 z near - z far z near + z far z near - z far 0 0 0 1 - - - ( 5 )
To be positioned at hither plane z NearWith far plane z FarBetween the coordinate of all data all be mapped between-1 to 1;
With the coordinate of data after the standardization according to formula
xv max - xv min 2 0 0 xv max + xv min 2 0 yv max - yv min 2 0 yw max + yw min 2 0 0 1 2 1 2 0 0 0 1 - - - ( 6 )
Become screen coordinate, the z coordinate of being had a few on screen all is 0, and the coordinate in the lower left corner of the screen area of viewport (viewport) is (xv Min, yv Min, 0), the coordinate in the upper right corner is (xv Max, yv Max, 0).
The step of image rendering is to adopt the method for direct volume drawing to draw output the volume data after the coordinate standardization.
Direct volume drawing (Direct Volume Rendering) is a kind of existing object plotting method, and it can demonstrate the overall situation of volume data, especially can disclose the internal feature of data.Its basic thought is that the optical properties that calculates voxel comprises color and opacity, and the light that simulation is injected from specific direction is propagated volume data.
(or claim: optical properties voxel) is provided with by transport function (Transfer Function) volume data usually, and acquisition has the volume data of optical properties, described transport function realizes the gray-scale value of each voxel in the volume data and the corresponding relation of optical properties, and detailed process is:
The process of the direct volume drawing in the present embodiment is: according to the design of the intensity profile in volume data transport function, set up the corresponding relation between gray-scale value and the optical properties, and store into described transport function in the internal memory of video card as the one dimension data texturing; Simulate the light of injecting from assigned direction then and volume data, propagate, finish the volume drawing of three-dimensional cardiac.
Through after the above-mentioned steps, volume data and transport function have all suffered at the video card internal memory, and then, the GPU in the video card just can calculate and obtain the optical properties of each volume data, and image rendering is come out, and has made full use of the computing power that GPU uses like this.Improved speed greatly.
Described transport function has been set up the gray-scale value of volume data and the corresponding relation between the optical properties, converts the volume data that has optical properties to so that will have the volume data of gray-scale value.
Transport function reasonable in design can disclose the important internal information and the space structure of volume data, strengthens important information, suppresses the visual effect of inessential information.
According to the design of the intensity profile in volume data transport function, the design process that the process of setting up the corresponding relation between gray-scale value and the optical properties is is in the present embodiment:
At first, the distribution situation of the gray-scale value of statistics volume data.
Adopting the gray-scale value statistical graph to realize this process in the present embodiment, referring to shown in Figure 1, is the statistics of the volume data of a heart.Among the figure, transverse axis is represented different heart tissue corresponding gray, and the scope of the gray-scale value of the data relevant with heart tissue is in interval [30,70], and the gray-scale value that is not marked in this interval on the transverse axis represents that this gray-scale value does not appear in the volume data of heart.
Then, grey value profile situation according to volume data, determine the heart tissue of different gray scale correspondences, and its corresponding optical properties is set according to the locus of described heart tissue, be opacity and color value, the opacity that setting is finished and the set of color are organized into color lookup table ColorMap; Between gray-scale value and the optical properties corresponding relation set up and to finish.
In the process of image rendering, in color lookup table ColorMap, retrieve corresponding optical properties according to the gray-scale value of the different heart tissues of volume data, according to the corresponding formula of gray scale-optical properties:
F(g)→(R,G,B,A)????????????????????????????(7)
Realize that wherein g represents gray-scale value, (B A) represents the optical properties of this gray scale correspondence for R, G, and wherein R, G and B represent color, and A represents opacity (opacity).
When different gray-scale value optical properties was set, the main principle of following was the three-dimensional relative position by the comparison heart tissue, made the lacuna opacity of heart inside be higher than the tissue of heart outside, and the link portions branch of different lacunas is different from lacuna itself.
In the present embodiment, determine the tissue of different gray scale correspondences and its corresponding optical properties is set according to intensity profile shown in Figure 1 according to the locus of organizing, the heart tissue gray-scale value that forms and the optical properties mapping graph of each gray-scale value correspondence are referring to shown in Figure 2, and the longitudinal axis is represented heart volume data gray scale is added up the different gray-scale values that obtain among the figure.Square color lump among the figure represents to use the corresponding formula of gray scale-optical properties to retrieve this gray-scale value in color lookup table ColorMap, according to the optical properties of the data that this gray scale is arranged.Four-tuple (R, G, B, A) expression of the optical properties of each gray value data below square color lump.
Adopt radiation-absorption (the emission and absorption) spread state of modeling light in volume data then, and finally produce sampling to volume data along direction of visual lines, and along the color of direction of visual lines accumulative total voxel and the result of opacity, the volume drawing of the heart of finally completing.
Color during final drafting of the volume data that each is discrete is:
C = Σ i = 1 n C i Π j = 1 i - 1 ( 1 - A i ) - - - ( 8 )
Opacity during final drafting of the volume data that each is discrete is:
A = 1 - Π j = 1 n ( 1 - A j ) - - - ( 9 )
Wherein, C iAnd A iBy the transport function setting, represent color and opacity respectively i sampling number certificate.A iThe light that the approximate representation volume data absorbs.The color C of opacity weighting iApproximate representation is along volume data radiation between light sampled point i and i+1 the sampling and the light that absorbs.The light that partly is illustrated in i sampled point for the product in the color component had been constantly to decay before intelligent's eyes.
Use OpenGL and Cg implementation algorithm, wherein OpenGL is responsible for the demonstration of processing graphics, and user interactions, and Cg is used for writing vertex program (vertex shader) and sheet metaprogram (fragment shader).
Three-dimensional cardiac rendering algorithm based on GPU can adopt following program to realize:
Input:segmented?3D?heart?volume?dataset,color?lookup?table
Output:heart?image
1.VolumeTexture←Volume?Dataset,ColorMap←Color?lookup?table;
2.while?v?in?VolumeTexture
3.????v=T·v;
4.????clip(v);
5.????v(color)=ColorMap[v(greyLevel)];
6.for?i←1?to?sliceNum
7.????drawSlice();
8.????composite();
The implication of said procedure section is:
Be input as: cut apart the volume data behind the tissue, and color lookup table;
Be output as: cardiac image.
Variable V olumeTexture represents the three-D grain of package data, Volume Dataset represents the set of volume data, ColorMap represents to deposit the one dimension texture of the volume data optical properties of different gray scales, Colorlookup table represents color lookup table (optical properties of different gray-scale value correspondences), and sliceNum represents the quantity of volume data along the section of the direction of sight line.
To each voxel v in three-D grain, adopt matrix T to carry out coordinate conversion, then adopting Clip (v) voxel v to be limited in the effective space, adopt ColorMap[v (greyLevel) again], with the gray-scale value v (greyLevel) of voxel v as index, in color lookup table, search corresponding one dimension data texturing, and the optical properties v (color) of this voxel is set according to result for retrieval.
SliceNum does following processing respectively until last is cut into slices to the 1st the section beginning of direction along sight line: adopt drawSlice () to draw current section, adopt composite () that current slice and previous section are mixed then.Handle after all sliceNum the sections, drawing result is presented on the view plane the most at last.
The described object plotting method of present embodiment can adopt Intel Core2 Quad CPU 2.41GHz, internal memory 4GB, video card NVIDIA GF8600, video memory 256MB hardware environment.Use C Plus Plus and OpenGL to realize the framework of program, the summit of GPU and sheet metaprogram adopt the Cg language compilation, use version to be Cg2.0.
In the read method of volume data, contrast OpenGL that acceleration ray cast (Accelerated Ray Casting) ARC method, OpenGL (Open Graphics Library) stationary pipes collimation method and present embodiment that people such as existing Yang proposes adopt in conjunction with Cg pipeline method able to programme processing time of totally three kinds of methods, through the data read time of the above-mentioned three kinds of methods of experiment acquisition, result's ginseng is shown in Table 1:
Table 1 algorithms of different reading of data time ratio
Method Pretreatment time Size of data
The ARC method 150.562 second ?472×325×4878bit
The OpenGL method 9.671 second ?472×325×4878bit
The OpenGL+Cg method 0.344 second ?472×325×4878bit
In drawing process, because the ARC method is difficult to realize real-time user interactions that only compared the drafting efficient of the OpenGL of OpenGL fixed pipelines method and present embodiment employing in conjunction with the method for Cg pipeline able to programme here, experimental result is as shown in table 2.
The average render speed of table 2 algorithms of different relatively
Method for drafting Size of data The average frame number of per second (f/s)
The OpenGL method ??472×325×4878bit ?8.5
The OpenGL+Cg method ??472×325×4878bit ?14.6
Referring to Fig. 3-shown in Figure 5, be comparison to drawing result before and after the data classification.Use transport function to carry out sorted image and can obviously see the profile of heart, structure and inner lacuna.The function void glBlendFunc (GLenumsfactor, GLenum dfactor) that the color of classification back image uses OpenGL to provide by the color among Fig. 1 mixes.
The present invention uses GPU figure speed technology to realize the three-dimensional cardiac visualization of data, makes the user significantly reduce the response time of system with respect to non-GPU method with alternant way observer heart.This paper is made into three-D grain with the three-dimensional cardiac data set, has designed transport function according to the characteristics of cardiac data, uses the method for rectangle closure to design rendering algorithm at cardiac data.
Use OpenGL and Cg that algorithm is realized, and use three-dimensional cardiac data to test.Can see that according to experimental result method used herein is significantly increased with software approach reading in the process relatively of data, in the process of drafting, has realized real-time user interactions on efficient.

Claims (10)

1. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU is characterized in that it is based on that the PC that has the video card of supporting the Cg language realizes, specifically the comprising of described object plotting method:
The step of data read and pretreated step, data coordinates conversion and the step of image rendering, wherein:
Data read and pretreated step are that a plurality of slice of datas of heart to be drawn are organized into the volume data file, and after described volume data file is packaged into the three-D grain packet, store in the internal memory of video card; The sectioning image that the slice of data of heart to be drawn is represented wide and high respectively as the x of volume data, the y axle is with the quantity of all slice of datas of heart the to be drawn z axle as volume data;
The step of data coordinates conversion is to convert the data coordinates in the three-D grain packet of the pretreated step acquisition of data to screen coordinate;
The step of image rendering is to adopt the method for direct volume drawing to draw output the volume data after the coordinate standardization.
2. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 1 is characterized in that the process that a plurality of slice of datas of heart to be drawn is organized into the volume data file is:
With the header in each slice of data of heart to be drawn deletion, will delete then all slice of datas after the header adjust, form satisfy that three-D grain packs require the volume data file.
3. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 1 is characterized in that the detailed process of the step of data coordinates conversion is:
The coordinate of three-dimensional data is carried out view transformation, projective transformation and normalized transformation successively, finally obtain screen coordinate.
4. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 3, it is characterized in that, view transformation is meant the conversion of data coordinates being carried out view, and detailed process is: with the setting coordinate of view origin P is coordinate P=(x under the world coordinate system 0, y 0, z 0), then the coordinate translation transformation for mula is:
T = 1 0 0 - x 0 0 1 0 - y 0 0 0 1 - z 0 0 0 0 1
The Rotating Transition of Coordinate formula is:
R = u x u y u z 0 v x v y v z 0 n x n y n z 0 0 0 0 1
Wherein, vector of unit length u, v, n are three direction vectors of three coordinate axis of the reference frame under the world coordinate system:
Translation transformation formula and rotational transform formula are multiplied each other, obtain to be tied to view coordinate transform formula under the view coordinate system from world coordinates:
M wc , vc = R · T = u x u y u z - u · P 0 v x v y v z - v · P 0 n x n y n z - n · P 0 0 0 0 1
Data coordinates and view coordinate transform formula are multiplied each other, obtain the data coordinates under the view coordinate system.
5. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 3, it is characterized in that, described projective transformation is meant the coordinate transformation process of the data coordinates under the view coordinate system being carried out projective transformation, adopt the orthogonal projection method that the data coordinates under the view coordinate system is carried out conversion, detailed process is:
(x, y z) carry out orthogonal projection, and the coordinate that obtains after the projection is: x with the arbitrfary point in the data under the view coordinate system p=x, y p=y is provided with former and later two shear surfaces on z, be respectively hither plane and far plane, and the part between described hither plane and far plane is the what comes into a driver's body, and the coordinate that carries out all data after the projective transformation all is positioned at described what comes into a driver's body.
6. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 3 is characterized in that, normalized transformation is meant that the data coordinates that will obtain after the projection carries out normalized conversion, and detailed process is:
To be positioned at the coordinate points (x in the hither plane lower left corner Min, y Min, z Near) be mapped to (1 ,-1 ,-1), will be positioned at the coordinate points (x in the far plane upper right corner Max, y Max, z Far) be mapped to (1,1,1), then according to formula
Mortho , norm = 2 xw max - xw min 0 0 - xw max + xw min xw max - xw min 0 2 yw max - yw min 0 - yw max + yw min yw max - yw min 0 0 - 2 z near - z far z near + z far z near - z far 0 0 0 1
To be positioned at hither plane z NearWith far plane z FarBetween the coordinate of all data all be mapped between-1 to 1;
With the coordinate of data after the standardization according to formula
Mnormviewvol , 3 Dscreen = xv max - xv min 2 0 0 xv max + xv min 2 0 yv max - yv min 2 0 yw max + yw min 2 0 0 1 2 1 2 0 0 0 1
Become screen coordinate, the z coordinate of being had a few on screen all is 0, and the coordinate in the lower left corner of the screen area of viewport is (xv Min, yv Min, 0), the coordinate in the upper right corner is (xv Max, yv Max, 0).
7. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 1, the step that it is characterized in that image rendering adopts the method for direct volume drawing to realize, the process of direct volume drawing is: according to the design of the intensity profile in volume data transport function, set up the corresponding relation between gray-scale value and the optical properties, and store into described transport function in the internal memory of video card as the one dimension data texturing; Simulate the light of injecting from assigned direction then and volume data, propagate, finish the volume drawing of three-dimensional cardiac.
8. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 7 is characterized in that, described according to the design of the intensity profile in volume data transport function, the process of setting up the corresponding relation between gray-scale value and the optical properties is:
At first, the distribution situation of the gray-scale value of statistics volume data;
Then, grey value profile situation according to volume data, determine the heart tissue of different gray scale correspondences, and its corresponding optical properties is set according to the locus of described heart tissue, be opacity and color value, the opacity that setting is finished and the set of color are organized into color lookup table ColorMap; Between gray-scale value and the optical properties corresponding relation set up and to finish.
9. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 7, it is characterized in that, the light that simulation is injected from assigned direction is propagated volume data, the process of finishing the volume drawing of cardiac data is: adopt the spread state of radiation-absorbing model simulated light in volume data, and finally produce sampling to volume data along direction of visual lines, and along the color of direction of visual lines accumulative total voxel and the result of opacity, obtain the final drafting color and the opacity of each voxel one by one, and then the volume drawing of the heart of finally completing.
10. the real-time three-dimensional cardiac data object plotting method that quickens based on GPU according to claim 9 is characterized in that the final drafting color of each voxel and the preparation method of opacity are: the color during final drafting of the volume data that each is discrete is:
C = Σ i = 1 n C i Π j = 1 i - 1 ( 1 - A i )
Opacity during final drafting of the volume data that each is discrete is:
A = 1 - Π j = 1 n ( 1 - A j )
Wherein, C iAnd A iBy the transport function setting, represent color and opacity respectively, A i sampling number certificate iThe light that the approximate representation volume data absorbs.
CN 201010120708 2010-03-09 2010-03-09 Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration Pending CN101814193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010120708 CN101814193A (en) 2010-03-09 2010-03-09 Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010120708 CN101814193A (en) 2010-03-09 2010-03-09 Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration

Publications (1)

Publication Number Publication Date
CN101814193A true CN101814193A (en) 2010-08-25

Family

ID=42621440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010120708 Pending CN101814193A (en) 2010-03-09 2010-03-09 Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration

Country Status (1)

Country Link
CN (1) CN101814193A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074036A (en) * 2010-12-07 2011-05-25 中国地质大学(武汉) Graphics processing unit (GPU) based accelerated dynamic sectioning method of volume data
CN102254337A (en) * 2011-04-26 2011-11-23 厦门吉比特网络技术股份有限公司 Method for changing colours of 2D (Two-Dimensional) animation chartlet
CN103198506A (en) * 2011-11-21 2013-07-10 甘恒全 Image output method and device for solving PDEs (product data systems) in cooperation with GPU (graphics processing Unit), recording medium and software
CN104537187A (en) * 2015-01-14 2015-04-22 哈尔滨工业大学 Steering type virtual heart simulation method
CN104616344A (en) * 2013-11-05 2015-05-13 镇江华扬信息科技有限公司 Method for 3D JAVA realization of texture mapping volume rendering
CN104936021A (en) * 2015-06-02 2015-09-23 无锡天脉聚源传媒科技有限公司 Video play monitoring method and apparatus
CN105493153A (en) * 2013-08-23 2016-04-13 西门子公司 Method for displaying on a screen an object shown in a 3D data set
CN105719333A (en) * 2014-12-02 2016-06-29 上海联影医疗科技有限公司 3D image data processing method and 3D image data processing device
CN107657648A (en) * 2017-09-30 2018-02-02 广州悦世界信息科技有限公司 The colouring method and system of real-time high-efficiency in a kind of moving game
US11094067B2 (en) 2014-12-02 2021-08-17 Shanghai United Imaging Healthcare Co., Ltd. Method and system for image processing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100498839C (en) * 2006-03-08 2009-06-10 杭州电子科技大学 Multi-modality medical data three-dimensional visualization method
CN101577001A (en) * 2009-05-20 2009-11-11 电子科技大学 Partition method of three dimensional medical images based on ray casting volume rendering algorithm

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100498839C (en) * 2006-03-08 2009-06-10 杭州电子科技大学 Multi-modality medical data three-dimensional visualization method
CN101577001A (en) * 2009-05-20 2009-11-11 电子科技大学 Partition method of three dimensional medical images based on ray casting volume rendering algorithm

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Computer Graphics and Applications, IEEE》 19880531 Marc Levoy Display of Surfaces from Volume Data 第31页左栏-32页右栏 10 第8卷, 2 *
《中国优秀硕士学位论文全文数据库 信息科技辑》 20090715 刘光国 基于GPU的直接体绘制关键技术研究 第11,13,23,46页 1-10 , 第7期 2 *
《中国优秀硕士学位论文全文数据库 信息科技辑》 20100115 齐蕊 体绘制传递函数设定方法的研究和应用 第10-11页 7-10 , 第1期 2 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074036B (en) * 2010-12-07 2013-01-09 中国地质大学(武汉) Graphics processing unit (GPU) based accelerated dynamic sectioning method of volume data
CN102074036A (en) * 2010-12-07 2011-05-25 中国地质大学(武汉) Graphics processing unit (GPU) based accelerated dynamic sectioning method of volume data
CN102254337A (en) * 2011-04-26 2011-11-23 厦门吉比特网络技术股份有限公司 Method for changing colours of 2D (Two-Dimensional) animation chartlet
CN103198506B (en) * 2011-11-21 2017-09-12 甘恒全 Image output method and device for solving PDEs (product data systems) in cooperation with GPU (graphics processing Unit)
CN103198506A (en) * 2011-11-21 2013-07-10 甘恒全 Image output method and device for solving PDEs (product data systems) in cooperation with GPU (graphics processing Unit), recording medium and software
CN105493153A (en) * 2013-08-23 2016-04-13 西门子公司 Method for displaying on a screen an object shown in a 3D data set
CN104616344A (en) * 2013-11-05 2015-05-13 镇江华扬信息科技有限公司 Method for 3D JAVA realization of texture mapping volume rendering
US11094067B2 (en) 2014-12-02 2021-08-17 Shanghai United Imaging Healthcare Co., Ltd. Method and system for image processing
CN105719333B (en) * 2014-12-02 2019-12-20 上海联影医疗科技有限公司 Three-dimensional image data processing method and device
CN105719333A (en) * 2014-12-02 2016-06-29 上海联影医疗科技有限公司 3D image data processing method and 3D image data processing device
CN104537187B (en) * 2015-01-14 2017-08-25 哈尔滨工业大学 One kind controls formula virtual heart emulation mode
CN104537187A (en) * 2015-01-14 2015-04-22 哈尔滨工业大学 Steering type virtual heart simulation method
CN104936021B (en) * 2015-06-02 2018-03-09 无锡天脉聚源传媒科技有限公司 The monitoring method and device of a kind of video playback
CN104936021A (en) * 2015-06-02 2015-09-23 无锡天脉聚源传媒科技有限公司 Video play monitoring method and apparatus
CN107657648A (en) * 2017-09-30 2018-02-02 广州悦世界信息科技有限公司 The colouring method and system of real-time high-efficiency in a kind of moving game

Similar Documents

Publication Publication Date Title
CN101814193A (en) Real-time volume rendering method of three-dimensional heart data based on GPU (Graphic Processing Unit) acceleration
CN101336831B (en) Rebuilding method of real-time three-dimensional medical ultrasonic image
Kutter et al. Visualization and GPU-accelerated simulation of medical ultrasound from CT images
CN103106685B (en) A kind of abdominal organs three-dimensional visualization method based on GPU
Westwood A GPU accelerated spring mass system for surgical simulation
CN107924580A (en) The visualization of surface volume mixing module in medical imaging
Soferman et al. Advanced graphics behind medical virtual reality: evolution of algorithms, hardware, and software interfaces
CN101354794B (en) Light irradiation analogy method of real time three-dimensional image based on pattern processor
Jung et al. Using X3D for medical training simulations
CN1776747A (en) GPU hardware acceleration based body drawing method for medical image
Wang et al. Illustrative visualization of segmented human cardiac anatomy based on context-preserving model
Noon A volume rendering engine for desktops, laptops, mobile devices and immersive virtual reality systems using GPU-based volume raycasting
Kaufman et al. A survey of architectures for volume rendering
Shi et al. A new volumetric geometric model for cutting procedures in surgical simulation
Zhang et al. G-Heart: A GPU-based System for Electrophysiological Simulation and Multi-modality Cardiac Visualization.
Masutani et al. Development of surgical simulator based on FEM and deformable volume-rendering
Zhao et al. High-performance and real-time volume rendering in CUDA
Zhang et al. Real-time interactive heart illustration platform via hardware accelerated rendering
Inoue et al. Development of surgical simulator with high‐quality visualization based on finite‐element method and deformable volume rendering
Sud et al. Surface distance maps
EP4273809A1 (en) Technique for real-time rendering of medical images using virtual spherical light sources
Madi et al. Modeling and visualization of layered objects
CN104616344A (en) Method for 3D JAVA realization of texture mapping volume rendering
Ruthenbeck Interactive soft tissue for surgical simulation
Wang et al. Accelerated algorithm for 3D intestine Volume Reconstruction base on VTK

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100825