CN108597590A - The arbitrary layer data display methods of volume data based on GPU operations and system - Google Patents

The arbitrary layer data display methods of volume data based on GPU operations and system Download PDF

Info

Publication number
CN108597590A
CN108597590A CN201810433137.4A CN201810433137A CN108597590A CN 108597590 A CN108597590 A CN 108597590A CN 201810433137 A CN201810433137 A CN 201810433137A CN 108597590 A CN108597590 A CN 108597590A
Authority
CN
China
Prior art keywords
data
patch model
dicom
volume data
shader
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
CN201810433137.4A
Other languages
Chinese (zh)
Inventor
吕天予
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaao Information Technology Development Co Ltd
Original Assignee
Shanghai Jiaao Information Technology Development 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 Shanghai Jiaao Information Technology Development Co Ltd filed Critical Shanghai Jiaao Information Technology Development Co Ltd
Priority to CN201810433137.4A priority Critical patent/CN108597590A/en
Publication of CN108597590A publication Critical patent/CN108597590A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/20ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/80Shading
    • G06T15/87Gouraud shading

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Radiology & Medical Imaging (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Image Generation (AREA)

Abstract

The present invention provides a kind of arbitrary layer data display methods of volume data based on GPU operations and systems, read the DICOM data in CT or MRI data, the DICOM data include image data and information data;Multiple image datas are arranged into superposition layer by layer, form a square box;Key message needed for information data is read, and a cube is built according to the key message, the cubical length is equal to pel spacing * columns, wide equal to pel spacing * line numbers, high in the total numbers of plies of thickness *;The arbitrary tangent plane that volume data is indicated using a patch model, patch model is placed in the cube, and the actual physical location of the plane is the actual physical location for indicating tangent plane in volume data, renders patch model.Compared to the prior art, real-time of the present invention is high, and accuracy is high.

Description

The arbitrary layer data display methods of volume data based on GPU operations and system
Technical field
The present invention relates to technical field of medical image processing, and in particular, to the arbitrary tomography of volume data based on GPU operations Data display method and system.
Background technology
The three-dimensional visualization method of medical image can substantially be divided into two classes:Iso-surface patch and volume drawing.Iso-surface patch method is first Intermediate geometric graphic element is constructed by three dimensions, then carries out pattern drafting, can generate and compare clearly iso-surface images, speed Than very fast.But the surface of this method intelligence represented object, has given up the bulk information of interior of articles, can not accurate description it is complicated Human organ.And the characteristics of volume drawing, is based on directly on volume data and is shown, can obtain interior of articles information, calculation amount Greatly, real-time rendering is very difficult.
Paper " arbitrary tangent of Chinese Digital human brain volume data is drawn " (http://www.ixueshu.com/ Document/d6f13b312228e5fd.html mathematical formulae) is used to calculate the figure of the arbitrary fault plane of volume data based on CPU Picture, this method arithmetic speed cannot be satisfied real-time (the algorithm arithmetic speed based on CPU>10ms) and accuracy is (when resampling Speed and precision can not ensure together).The when pixel particle that CPU is often calculated when calculating, i.e. a, if pictures are 256*256 Pixel generally rounds up and obtains when if necessary to obtain color of the coordinate for the point (such as coordinate (55.5,55.5)) of decimal The color (for example coordinate (55.5,55.5) is rounded to (60,60)) of round numbers coordinate points, it is inaccurate, if using inserting The coordinate that value-based algorithm calculates decimal point takes very much again.
Invention content
For the defects in the prior art, it is arbitrarily disconnected that the object of the present invention is to provide a kind of volume datas based on GPU operations Layer data display methods and system.
According to a kind of arbitrary layer data display methods of volume data based on GPU operations provided by the invention, including:
DICOM data acquisition steps:The DICOM data in CT or MRI data are read, the DICOM data include picture Data and information data;
It is superimposed step:Multiple image datas are arranged into superposition layer by layer, form a cuboid;
Cube construction step:Key message needed for information data is read, and one is built according to the key message A cube, the cubical length is equal to pel spacing * columns, wide equal to pel spacing * line numbers, high in the total layers of thickness * Number;
Patch model construction step:The arbitrary tangent plane that volume data is indicated using a patch model, by the dough sheet Model is placed in the cube, and the actual physical location of the patch model is the reality for indicating tangent plane in volume data Physical location renders the patch model.
Preferably, the DICOM data acquisition steps read the DICOM in CT or MRI data using DICOM processing plug-in units Data.
Preferably, the patch model construction step renders the patch model using shader.
Preferably, the shader includes vertex shader and dough sheet tinter;
Vertex shader record vertex cuts spatial position, and the world space coordinate system position on record vertex It sets;
The world coordinate space of the cuboid to object coordinates space conversion matrix is passed to institute by the dough sheet tinter Shader is stated, by the world space coordinate on vertex by the matrix conversion to cubical object coordinates space, with the object Body coordinate space reads the color data of volume data.
According to a kind of arbitrary layer data display system of volume data based on GPU operations provided by the invention, including:
DICOM data acquisition modules:The DICOM data in CT or MRI data are read, the DICOM data include picture Data and information data;
Laminating module:Multiple image datas are arranged into superposition layer by layer, form a cuboid;
Cube builds module:Key message needed for information data is read, and one is built according to the key message A cube, the cubical length is equal to pel spacing * columns, wide equal to pel spacing * line numbers, high in the total layers of thickness * Number;
Patch model builds module:The arbitrary tangent plane that volume data is indicated using a patch model, by the dough sheet Model is placed in the cube, and the actual physical location of the patch model is the reality for indicating tangent plane in volume data Physical location renders the patch model.
Preferably, the DICOM data acquisition modules read the DICOM in CT or MRI data using DICOM processing plug-in units Data.
Preferably, the patch model structure module renders the patch model using shader.
Preferably, the shader includes vertex shader and dough sheet tinter;
Vertex shader record vertex cuts spatial position, and the world space coordinate system position on record vertex It sets;
The world coordinate space of the cuboid to object coordinates space conversion matrix is passed to institute by the dough sheet tinter Shader is stated, by the world space coordinate on vertex by the matrix conversion to cubical object coordinates space, with the object Body coordinate space reads the color data of volume data.
Compared with prior art, the present invention has following advantageous effect:
1, real-time is high:GPU is when handling parallel task relative to CPU will first-class hundred times, calculating volume data be arbitrary soon One layer of tangent plane picture meets GPU processing rules, calculates image and takes in 10ms hereinafter, can meet doctor arbitrarily watches behaviour Make, it is very smooth.
2, accuracy is high:Needing to round up when traditional CPU being avoided to obtain the color for the point that coordinate is decimal, it is whole to obtain The defect of the color of number coordinate points, therefore sample fast and accurate.
Description of the drawings
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is the flow chart of the present invention;
Fig. 2 is the schematic diagram of the embodiment of the present invention.
Specific implementation mode
With reference to specific embodiment, the present invention is described in detail.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present invention Protection domain.
As shown in Figure 1, the arbitrary layer data display methods of a kind of volume data based on GPU operations provided by the invention, packet It includes:
DICOM data acquisition steps:The DICOM data in CT or MRI data are read, the DICOM data include picture Data and information data.In the present embodiment, DICOM data acquisition steps read CT or MRI data using DICOM processing plug-in units In DICOM data, but the present invention is not limited thereto.
It is superimposed step:Multiple image datas are arranged into superposition layer by layer, form a cuboid;
Cube construction step:As shown in Fig. 2, key message needed for information data is read, and according to the key One cube of information architecture, the cubical length be equal to pel spacing * columns, it is wide be equal to pel spacing * line numbers, it is high in The total numbers of plies of thickness *;
Patch model construction step:The arbitrary tangent plane that volume data is indicated using a patch model, by patch model It is placed in the cube, the actual physical location of patch model is the actual physics position for indicating tangent plane in volume data It sets, patch model is rendered using shader.
Shader includes vertex shader and dough sheet tinter;
Vertex shader record vertex cuts spatial position, and the world space coordinate system position on record vertex;
The world coordinate space of cuboid is passed to the shader by dough sheet tinter to object coordinates space conversion matrix, By the world space coordinate on vertex by the matrix conversion to cubical object coordinates space, with the object coordinates space Read the color data of volume data.It is implemented as follows:
Data are passed to the process of GPU from CPU
Matrix4x4childMatrix=new Matrix4x4 ();
ChildMatrix.SetTRS (transform.Position, transform.Rotation, transform.localScale);
mat.SetMatrix("_LocalMatrix",childMatrix)。
On the basis of a kind of above-mentioned volume data based on GPU operations arbitrary layer data display methods, the present invention also carries The arbitrary layer data display system of a kind of volume data based on GPU operations supplied, including:
DICOM data acquisition modules:The DICOM data in CT or MRI data are read, the DICOM data include picture Data and information data.In the present embodiment, DICOM data acquisition modules read CT or MRI data using DICOM processing plug-in units In DICOM data, but the present invention is not limited thereto.
Laminating module:Multiple image datas are arranged into superposition layer by layer, form a cuboid;
Cube builds module:As shown in Fig. 2, key message needed for information data is read, and according to the key One cube of information architecture, the cubical length be equal to pel spacing * columns, it is wide be equal to pel spacing * line numbers, it is high in The total numbers of plies of thickness *;
Patch model builds module:The arbitrary tangent plane that volume data is indicated using a patch model, by patch model It is placed in the cube, the actual physical location of patch model is the actual physics position for indicating tangent plane in volume data It sets, patch model is rendered using shader.
Shader includes vertex shader and dough sheet tinter;
Vertex shader record vertex cuts spatial position, and the world space coordinate system position on record vertex;
The world coordinate space of cuboid is passed to the shader by dough sheet tinter to object coordinates space conversion matrix, By the world space coordinate on vertex by the matrix conversion to cubical object coordinates space, with the object coordinates space Read the color data of volume data.It is implemented as follows:
Data are passed to the process of GPU from CPU
Matrix4x4childMatrix=new Matrix4x4 ();
ChildMatrix.SetTRS (transform.Position, transform.Rotation, transform.localScale);
mat.SetMatrix("_LocalMatrix",childMatrix)。
One skilled in the art will appreciate that in addition to realizing system provided by the invention in a manner of pure computer readable program code It, completely can be by the way that method and step be carried out programming in logic come so that the present invention provides and its other than each device, module, unit System and its each device, module, unit with logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedding Enter the form of the controller that declines etc. to realize identical function.So system provided by the invention and its every device, module, list Member is considered a kind of hardware component, and also may be used for realizing the device of various functions, module, unit to include in it To be considered as the structure in hardware component;It can also will be considered as realizing the device of various functions, module, unit either real The software module of existing method can be the structure in hardware component again.
In the description of the present application, it is to be understood that term "upper", "front", "rear", "left", "right", " is erected at "lower" Directly ", the orientation or positional relationship of the instructions such as "horizontal", "top", "bottom", "inner", "outside" is orientation based on ... shown in the drawings or position Relationship is set, description the application is merely for convenience of and simplifies to describe, do not indicate or imply the indicated device or element is necessary With specific orientation, with specific azimuth configuration and operation, therefore should not be understood as the limitation to the application.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited in above-mentioned Particular implementation, those skilled in the art can make a variety of changes or change within the scope of the claims, this not shadow Ring the substantive content of the present invention.In the absence of conflict, the feature in embodiments herein and embodiment can arbitrary phase Mutually combination.

Claims (8)

1. a kind of arbitrary layer data display methods of volume data based on GPU operations, which is characterized in that including:
DICOM data acquisition steps:The DICOM data in CT or MRI data are read, the DICOM data include image data And information data;
It is superimposed step:Multiple image datas are arranged into superposition layer by layer, form a cuboid;
Cube construction step:Key message needed for information data is read, and builds one according to the key message and stands Cube, the cubical length is equal to pel spacing * columns, wide equal to pel spacing * line numbers, high in the total numbers of plies of thickness *;
Patch model construction step:The arbitrary tangent plane that volume data is indicated using a patch model, by the patch model It is placed in the cube, the actual physical location of the patch model is the actual physics for indicating tangent plane in volume data Position renders the patch model.
2. the arbitrary layer data display methods of the volume data according to claim 1 based on GPU operations, which is characterized in that The DICOM data acquisition steps read the DICOM data in CT or MRI data using DICOM processing plug-in units.
3. the arbitrary layer data display methods of the volume data according to claim 1 based on GPU operations, which is characterized in that The patch model construction step renders the patch model using shader.
4. the arbitrary layer data display methods of the volume data according to claim 3 based on GPU operations, which is characterized in that The shader includes vertex shader and dough sheet tinter;
Vertex shader record vertex cuts spatial position, and the world space coordinate system position on record vertex;
The dough sheet tinter is incoming described to object coordinates space conversion matrix by the world coordinate space of the cuboid Shader, by the world space coordinate on vertex by the matrix conversion to cubical object coordinates space, with the object Coordinate space reads the color data of volume data.
5. a kind of arbitrary layer data display system of volume data based on GPU operations, which is characterized in that including:
DICOM data acquisition modules:The DICOM data in CT or MRI data are read, the DICOM data include image data And information data;
Laminating module:Multiple image datas are arranged into superposition layer by layer, form a cuboid;
Cube builds module:Key message needed for information data is read, and builds one according to the key message and stands Cube, the cubical length is equal to pel spacing * columns, wide equal to pel spacing * line numbers, high in the total numbers of plies of thickness *;
Patch model builds module:The arbitrary tangent plane that volume data is indicated using a patch model, by the patch model It is placed in the cube, the actual physical location of the patch model is the actual physics for indicating tangent plane in volume data Position renders the patch model.
6. the arbitrary layer data display system of the volume data according to claim 5 based on GPU operations, which is characterized in that The DICOM data acquisition modules read the DICOM data in CT or MRI data using DICOM processing plug-in units.
7. the arbitrary layer data display system of the volume data according to claim 5 based on GPU operations, which is characterized in that The patch model structure module renders the patch model using shader.
8. the arbitrary layer data display system of the volume data according to claim 7 based on GPU operations, which is characterized in that The shader includes vertex shader and dough sheet tinter;
Vertex shader record vertex cuts spatial position, and the world space coordinate system position on record vertex;
The dough sheet tinter is incoming described to object coordinates space conversion matrix by the world coordinate space of the cuboid Shader, by the world space coordinate on vertex by the matrix conversion to cubical object coordinates space, with the object Coordinate space reads the color data of volume data.
CN201810433137.4A 2018-05-08 2018-05-08 The arbitrary layer data display methods of volume data based on GPU operations and system Pending CN108597590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810433137.4A CN108597590A (en) 2018-05-08 2018-05-08 The arbitrary layer data display methods of volume data based on GPU operations and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810433137.4A CN108597590A (en) 2018-05-08 2018-05-08 The arbitrary layer data display methods of volume data based on GPU operations and system

Publications (1)

Publication Number Publication Date
CN108597590A true CN108597590A (en) 2018-09-28

Family

ID=63636182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810433137.4A Pending CN108597590A (en) 2018-05-08 2018-05-08 The arbitrary layer data display methods of volume data based on GPU operations and system

Country Status (1)

Country Link
CN (1) CN108597590A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520900A (en) * 2009-03-30 2009-09-02 中国人民解放军第三军医大学第一附属医院 Method and special equipment for quickening CR/DR/CT graphic display and graphic processing by utilizing GPU
CN102096948A (en) * 2011-03-01 2011-06-15 西安邮电学院 Meshsing method suitable for graphics hardware
CN105825471A (en) * 2016-03-13 2016-08-03 华东理工大学 Unity-3D-based three-dimensional surface reconstruction and rendering method
CN106709240A (en) * 2016-12-01 2017-05-24 彭志勇 Medical DICOM (Digital Imaging and Communications in Medicine) image display method
CN107492138A (en) * 2017-08-25 2017-12-19 上海嘉奥信息科技发展有限公司 Body renders the seamless combination rendered with face and its collision checking method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520900A (en) * 2009-03-30 2009-09-02 中国人民解放军第三军医大学第一附属医院 Method and special equipment for quickening CR/DR/CT graphic display and graphic processing by utilizing GPU
CN102096948A (en) * 2011-03-01 2011-06-15 西安邮电学院 Meshsing method suitable for graphics hardware
CN105825471A (en) * 2016-03-13 2016-08-03 华东理工大学 Unity-3D-based three-dimensional surface reconstruction and rendering method
CN106709240A (en) * 2016-12-01 2017-05-24 彭志勇 Medical DICOM (Digital Imaging and Communications in Medicine) image display method
CN107492138A (en) * 2017-08-25 2017-12-19 上海嘉奥信息科技发展有限公司 Body renders the seamless combination rendered with face and its collision checking method

Similar Documents

Publication Publication Date Title
CN109949899B (en) Image three-dimensional measurement method, electronic device, storage medium, and program product
CN104484033B (en) Virtual reality display method and system based on BIM
CN105453139B (en) Sparse GPU voxelization for 3D resurfacing
US9928666B2 (en) Virtual three-dimensional model generation based on virtual hexahedron models
US20160232703A1 (en) System and method for image processing
WO2013069215A1 (en) Image processing device, image processing method and image file data structure
CN104537705B (en) Mobile platform three dimensional biological molecular display system and method based on augmented reality
US8149237B2 (en) Information processing apparatus and program
CN111724481A (en) Method, device, equipment and storage medium for three-dimensional reconstruction of two-dimensional image
CN110503718B (en) Three-dimensional engineering model lightweight display method
US10650604B1 (en) Method, device and system for volume visualization and interaction in a virtual reality environment
CN101561937A (en) Big data size medical image three-dimensional interaction method based on common computer
JP7247577B2 (en) 3D reconstructed image display device, 3D reconstructed image display method, program, and image generation method
AU2016262127B2 (en) Method and system for computer graphics rendering
JP5988368B2 (en) Image processing apparatus and method
Noborio et al. Experimental results of 2D depth-depth matching algorithm based on depth camera Kinect v1
CN105551002B (en) A kind of morphological image filtering method
CN108597590A (en) The arbitrary layer data display methods of volume data based on GPU operations and system
Noborio et al. Image-based initial position/orientation adjustment system between real and virtual livers
CN111915666A (en) Volume measurement method and device based on mobile terminal
Dai et al. Volume‐Rendering‐Based Interactive 3D Measurement for Quantitative Analysis of 3D Medical Images
CN103824310B (en) A kind of method and device generating light literal with special effect
CN106991643B (en) Real-time line checking method and real-time line checking system with low resource consumption
Li et al. A High-performance Cross-platform Map Rendering Engine for Mobile Geographic Information System (GIS)
CN114067091B (en) Multi-source data labeling method and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928

RJ01 Rejection of invention patent application after publication