CN111951370A - Direct volume rendering method for data acquired by rotational scanning - Google Patents

Direct volume rendering method for data acquired by rotational scanning Download PDF

Info

Publication number
CN111951370A
CN111951370A CN202010812141.9A CN202010812141A CN111951370A CN 111951370 A CN111951370 A CN 111951370A CN 202010812141 A CN202010812141 A CN 202010812141A CN 111951370 A CN111951370 A CN 111951370A
Authority
CN
China
Prior art keywords
sampling
data
proxy
formula
cylinder
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
CN202010812141.9A
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.)
Wuhan Zhaotu Science & Technology Co ltd
Original Assignee
Wuhan Zhaotu Science & 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 Wuhan Zhaotu Science & Technology Co ltd filed Critical Wuhan Zhaotu Science & Technology Co ltd
Priority to CN202010812141.9A priority Critical patent/CN111951370A/en
Publication of CN111951370A publication Critical patent/CN111951370A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/08Volume rendering

Abstract

A direct volume rendering method facing to rotation scanning collected data includes drawing proxy cylinder according to size of rotation scanning collected data being volume data, leading out ray to surface of proxy cylinder according to viewpoint, sampling on all rays, converting column coordinate of sampling point to texture coordinate, obtaining pixel value of corresponding coordinate according to texture sampling function, finding out corresponding color in color code table according to pixel value of sampling point, mixing colors of sampling point on one ray, using mixed color as pixel color value, outputting all pixels to obtain volume rendering image The sampling process is time-consuming, the accuracy of data is improved, and the sampling time is reduced.

Description

Direct volume rendering method for data acquired by rotational scanning
Technical Field
The invention relates to a direct volume rendering method for rotational scanning acquired data, and belongs to the technical field of three-dimensional data visualization.
Background
In many industrial fields, a rotary scanning mode is used for acquiring volume data of real entities, and the data acquired by the acquisition mode is closer to an actually scanned object. The rotary scanning is to transmit detection signals to a real entity through a scanning antenna on the side surface of a scanner and receive echo signals; and the side surface of the scanner is also provided with a scanning trigger which moves synchronously with the scanning antenna and is used for recording the movement distance of the scanning antenna, and when the movement distance reaches the preset movement distance, the scanning trigger triggers the signal transceiver circuit once, so that the signal transceiver circuit controls the scanning antenna to transmit detection signals to the detected object and outputs all the detection signals to acquire the body data of the real entity. The volume data is a description of a data type, and may be called volume data as long as it contains internal details, and the volume data generated by the rotational scanning method is a type of volume data stored based on cylindrical coordinates.
At present, in the existing volume rendering, a regular cube is used as a proxy geometric body in a three-dimensional rectangular coordinate, a ray is emitted from a viewpoint along a fixed direction, data sampling is carried out according to the sampling position of the ray in the cube, and finally, a corresponding color value is found from a color code table according to a sampled superposition value and is used as a color value of one pixel on the surface of the cube for display and output.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a direct volume rendering method for rotational scanning acquired data, which can directly render the rotational scanning acquired volume data and has the advantages of high calculation speed and high sampling precision.
The technical scheme for realizing the aim of the invention is that the direct volume rendering method facing the data acquired by the rotational scanning at least comprises the following steps:
(1) drawing a proxy cylinder according to the size of the rotary scanning acquired data, namely the volume data;
(2) respectively leading out rays from a viewpoint to different points on the surface of the proxy cylinder, sampling on all the rays with a fixed step length to obtain sampling points, wherein the sampling points are data points on a column coordinate, specifically, sampling on the rays with the viewpoint as a starting point with the fixed step length to obtain the sampling points, continuously sampling the newly obtained sampling points on the rays with the fixed step length as the starting point to obtain sub-sampling points, repeating the sampling steps, namely, the light passes through the whole cylinder to obtain N sampling points, and only selecting the sampling points in the proxy cylinder;
(3) and converting the cylindrical coordinates of the obtained sampling points into texture coordinates, and acquiring pixel values of corresponding coordinates according to a texture sampling function, wherein the texture coordinate conversion formula is as follows:
s ═ phi + pi)/(2 pi) formula 1
P/rad equation 2
r-z/h equation 3
In the formula, s, t and r are coordinate values of three dimensions of texture, phi is an azimuth angle value in a column coordinate, rho is a radius value in the column coordinate, rad is the radius of the proxy cylinder, and h is the height of the proxy cylinder;
(4) finding out corresponding colors in a color code table according to pixel values of sampling points, mixing the colors of the selected sampling points on one ray according to a light transmission formula from back to front, and taking the mixed colors as pixel color values of ray extraction points on the surface of the proxy cylinder;
(5) and (5) repeating the step (4), and outputting all pixels after obtaining the pixel color values of all points on the surface of the proxy cylinder to obtain the volume rendering image.
The technical scheme is further improved in that the data values of the sampling points in the step (2) are obtained by the following formula:
Figure BDA0002631342840000021
Figure BDA0002631342840000022
Z-Z equation 6
In the formula 4, x and y are data values of a horizontal axis and a longitudinal axis of the sampling point in a three-dimensional rectangular coordinate respectively, and rho is a radius value in a column coordinate; in the formula 5, x and y are data values of a horizontal axis and a vertical axis of the sampling point in a three-dimensional rectangular coordinate respectively, and phi is an azimuth angle value in a column coordinate; in the formula 6, Z is a vertical axis data value of a sampling point in a three-dimensional rectangular coordinate, and Z is a height coordinate value in a column coordinate;
and the step length in the step (2) is obtained by the following formula:
D=V÷S
in the formula, D is the step length, V is the diameter of the proxy cylinder surrounding ball, and S is the maximum sampling step number.
And the light transmission formula in the step (4) is as follows:
Figure BDA0002631342840000031
Figure BDA0002631342840000032
in the formula, CiFor sampling the resulting color values, AiOpacity for sampling;
Figure BDA0002631342840000033
the color value obtained after the accumulation;
Figure BDA0002631342840000034
opacity of color values obtained after integration.
Known from the above technical solutions, the method for direct volume rendering oriented to the rotational scanning acquired data provided by the present invention draws a proxy cylinder according to the size of the rotational scanning acquired data, i.e. the volume data, then draws rays from a viewpoint to the surface of the proxy cylinder, and samples all the rays with a fixed step length to obtain sampling points, converts the cylindrical coordinates of the sampling points into texture coordinates, obtains the pixel values of the corresponding coordinates according to a texture sampling function, finds the corresponding colors in a color code table according to the pixel values of the sampling points, mixes the colors of the selected sampling points on one ray in a back-to-front manner, uses the mixed colors as the pixel color values of the ray-drawn points on the surface of the proxy cylinder, outputs all the pixels after obtaining the pixel color values of all the points on the surface of the proxy cylinder, and obtains the result image, according to the method, the proxy cylinder is drawn according to the size of the volume data, then rays are taken on the proxy cylinder and sampling is carried out, the data of the cylindrical coordinates can be directly processed, the problems that the volume data which are generated by a rotary scanning method and stored based on the cylindrical coordinates need to be resampled into the volume data under the three-dimensional rectangular coordinates by a volume drawing technology, the generated data can lack accuracy, and the sampling process is time-consuming are solved, the accuracy of the data is improved, and the sampling time is shortened.
Drawings
FIG. 1 is a projection diagram of a conventional volume rendering method according to the present invention;
fig. 2 is a projection diagram of the direct volume rendering method for rotational scan data acquisition according to the present invention.
Detailed Description
The present invention will be described in detail with reference to the accompanying drawings and examples.
Referring to fig. 1 to 2, acquiring rotational scanning acquired data and drawing a proxy cylinder according to the size of the rotational scanning acquired data, i.e., volume data;
the volume data is three-dimensional grid field data, each grid point corresponds to a data value and is stored as a binary file;
respectively leading out rays from a viewpoint to different points on the surface of the proxy cylinder, sampling on all the rays with a fixed step length to obtain sampling points, wherein the sampling points are data points on a column coordinate, specifically, sampling on the rays with the viewpoint as a starting point with the fixed step length to obtain the sampling points, continuously sampling the newly obtained sampling points with the newly obtained sampling points as the starting point on the rays with the fixed step length to obtain sub-sampling points, repeating the sampling steps, namely, the light passes through the whole cylinder to obtain N sampling points, N is more than or equal to 1, and only selecting the sampling points in the proxy cylinder;
the data values of the sampling points in this embodiment are obtained by the following formula:
Figure BDA0002631342840000041
Figure BDA0002631342840000042
Z-Z equation 3
In the formula 1, x and y are data values of a horizontal axis and a longitudinal axis of a sampling point in a three-dimensional rectangular coordinate respectively, and rho is a radius value in a column coordinate; in the formula 2, x and y are data values of a horizontal axis and a vertical axis of the sampling point in a three-dimensional rectangular coordinate respectively, and phi is an azimuth angle value in a column coordinate; in the formula 3, Z is a vertical axis data value of a sampling point in a three-dimensional rectangular coordinate, and Z is a height coordinate value in a column coordinate; the step size in this embodiment is obtained by the following formula:
D=V÷S
in the formula, D is the step length, V is the diameter of the proxy cylinder surrounding ball, and S is the maximum sampling step number.
Converting the cylindrical coordinates of the obtained sampling points into texture coordinates again, and then obtaining pixel values of corresponding coordinates according to a texture sampling function, specifically obtaining the pixel values of the corresponding coordinates through the texture sampling function in a shader, wherein the texture coordinate conversion formula is as follows:
s ═ phi + pi)/(2 pi) equation 4
P/rad equation 5
r-z/h equation 6
In the formula, s, t and r are coordinate values of three dimensions of texture, phi is an azimuth angle value in a column coordinate, rho is a radius value in the column coordinate, rad is the radius of the proxy cylinder, and h is the height of the proxy cylinder;
then finding out corresponding colors in a color code table according to pixel values of sampling points, mixing the colors of the selected sampling points on one ray according to a light transmission formula from back to front, and taking the mixed colors as pixel color values of ray extraction points on the surface of the proxy cylinder;
the color code table, i.e., RGB color scheme, is a color standard in the industry, which obtains various colors by changing three color channels of red (R), green (G), and blue (B) and superimposing them with each other, where RGB represents the colors of the three channels of red, green, and blue, and this standard almost includes all colors that can be perceived by human vision, and is one of the most widely used color systems at present.
The RGB color mode uses an RGB model to assign an intensity value in the range of 0-255 to the RGB components of each pixel in the image. The RGB image uses only three colors, which can be mixed in different proportions to reproduce 16777216(256 by 256) colors on the screen.
And finally, repeating the steps, and outputting all pixels after obtaining the pixel color values of all points on the surface of the proxy cylinder to obtain a volume rendering image. Wherein the light transmission formula is shown below:
Figure BDA0002631342840000051
Figure BDA0002631342840000052
in the formula, CiFor sampling the resulting color values, AiOpacity for sampling;
Figure BDA0002631342840000053
the color value obtained after the accumulation;
Figure BDA0002631342840000054
accumulationAnd the color value opacity obtained thereafter.
According to the method, the proxy cylinder is drawn according to the size of the volume data, then rays are taken on the proxy cylinder and sampling is carried out, the data of the cylindrical coordinates can be directly processed, the problems that the volume data which are generated by a rotary scanning method and stored based on the cylindrical coordinates need to be resampled into the volume data under the three-dimensional rectangular coordinates by a volume drawing technology, the generated data can lack accuracy, and the sampling process is time-consuming are solved, the accuracy of the data is improved, and the sampling time is shortened.

Claims (4)

1. A direct volume rendering method for rotational scan acquired data, comprising at least the steps of:
(1) drawing a proxy cylinder according to the size of the rotary scanning acquired data, namely the volume data;
(2) respectively leading out rays from a viewpoint to different points on the surface of the proxy cylinder, sampling on all the rays with a fixed step length to obtain sampling points, wherein the sampling points are data points on a column coordinate, specifically, sampling on the rays with the viewpoint as a starting point with the fixed step length to obtain the sampling points, continuously sampling the newly obtained sampling points on the rays with the fixed step length as the starting point to obtain sub-sampling points, repeating the sampling steps, namely, the light passes through the whole cylinder to obtain N sampling points, and only selecting the sampling points in the proxy cylinder;
(3) and converting the cylindrical coordinates of the obtained sampling points into texture coordinates, and acquiring pixel values of corresponding coordinates according to a texture sampling function, wherein the texture coordinate conversion formula is as follows:
s ═ phi + pi)/(2 pi) formula 1
P/rad equation 2
r-z/h equation 3
In the formula, s, t and r are coordinate values of three dimensions of texture, phi is an azimuth angle value in a column coordinate, rho is a radius value in the column coordinate, rad is the radius of the proxy cylinder, and h is the height of the proxy cylinder;
(4) finding out corresponding colors in a color code table according to pixel values of sampling points, mixing the colors of the selected sampling points on one ray according to a light transmission formula from back to front, and taking the mixed colors as pixel color values of ray extraction points on the surface of the proxy cylinder;
(5) and (5) repeating the step (4), and outputting all pixels after obtaining the pixel color values of all points on the surface of the proxy cylinder to obtain the volume rendering image.
2. The direct volume rendering method facing rotational scan acquisition data as claimed in claim 1, wherein the data values of the sampling points in step (2) are obtained by the following formula:
Figure FDA0002631342830000011
Figure FDA0002631342830000012
Z-Z equation 6
In the formula 4, x and y are data values of a horizontal axis and a longitudinal axis of the sampling point in a three-dimensional rectangular coordinate respectively, and rho is a radius value in a column coordinate; in the formula 5, x and y are data values of a horizontal axis and a vertical axis of the sampling point in a three-dimensional rectangular coordinate respectively, and phi is an azimuth angle value in a column coordinate; in the formula 6, Z is a vertical axis data value of the sampling point in a three-dimensional rectangular coordinate, and Z is a height coordinate value in a column coordinate.
3. The method for direct volume rendering oriented to rotational scan acquisition data as claimed in claim 1, wherein the step size in step (2) is obtained by the following formula:
D=V÷S
in the formula, D is the step length, V is the diameter of the proxy cylinder surrounding ball, and S is the maximum sampling step number.
4. The method of direct volume rendering oriented to rotational scan acquisition data of claim 1, wherein the light transmission formula in step (4) is as follows:
Figure FDA0002631342830000021
Figure FDA0002631342830000022
in the formula, CiFor sampling the resulting color values, AiOpacity for sampling;
Figure FDA0002631342830000023
the color value obtained after the accumulation;
Figure FDA0002631342830000024
opacity of color values obtained after integration.
CN202010812141.9A 2020-08-13 2020-08-13 Direct volume rendering method for data acquired by rotational scanning Pending CN111951370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010812141.9A CN111951370A (en) 2020-08-13 2020-08-13 Direct volume rendering method for data acquired by rotational scanning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010812141.9A CN111951370A (en) 2020-08-13 2020-08-13 Direct volume rendering method for data acquired by rotational scanning

Publications (1)

Publication Number Publication Date
CN111951370A true CN111951370A (en) 2020-11-17

Family

ID=73332982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010812141.9A Pending CN111951370A (en) 2020-08-13 2020-08-13 Direct volume rendering method for data acquired by rotational scanning

Country Status (1)

Country Link
CN (1) CN111951370A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077539A (en) * 2021-04-08 2021-07-06 网易(杭州)网络有限公司 Target virtual model rendering method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050237336A1 (en) * 2004-04-23 2005-10-27 Jens Guhring Method and system for multi-object volumetric data visualization
US20050264578A1 (en) * 2004-05-25 2005-12-01 Engel Klaus D Sliding texture volume rendering
CN102074036A (en) * 2010-12-07 2011-05-25 中国地质大学(武汉) Graphics processing unit (GPU) based accelerated dynamic sectioning method of volume data
CN103559733A (en) * 2013-10-09 2014-02-05 浙江大学 Spherical body drawing method supporting three-dimension data inner viewpoint roaming
CN111652961A (en) * 2020-07-10 2020-09-11 中国水利水电科学研究院 Meteorological data volume rendering method based on GPU

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050237336A1 (en) * 2004-04-23 2005-10-27 Jens Guhring Method and system for multi-object volumetric data visualization
US20050264578A1 (en) * 2004-05-25 2005-12-01 Engel Klaus D Sliding texture volume rendering
CN102074036A (en) * 2010-12-07 2011-05-25 中国地质大学(武汉) Graphics processing unit (GPU) based accelerated dynamic sectioning method of volume data
CN103559733A (en) * 2013-10-09 2014-02-05 浙江大学 Spherical body drawing method supporting three-dimension data inner viewpoint roaming
CN111652961A (en) * 2020-07-10 2020-09-11 中国水利水电科学研究院 Meteorological data volume rendering method based on GPU

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
梅鸿辉等: "一种全球尺度三维大气数据可视化系统", 《软件学报》 *
蔡勋等: "光线跟踪方法在体绘制中的应用与发展", 《计算机工程与设计》 *
郑迟: "体绘制采样方法研究", 《中国优秀硕士学位论文数据库(信息科技辑)》 *
陈简: "电磁数据三维可视化关键技术研究及其应用", 《中国优秀硕士学位论文数据库(信息科技辑)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077539A (en) * 2021-04-08 2021-07-06 网易(杭州)网络有限公司 Target virtual model rendering method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US7079679B2 (en) Image processing apparatus
US8089396B2 (en) System and method for volume visualization in ultra-wideband radar
US20150085079A1 (en) Dynamic range of color camera images superimposed on scanned three-dimensional gray-scale images
CN111551530B (en) Method and device for acquiring three-dimensional distribution information of chlorophyll fluorescence of canopy of crop group
CN101667303A (en) Three-dimensional reconstruction method based on coding structured light
CN107358627B (en) Fruit size detection method based on Kinect camera
CN102980526A (en) Three-dimensional scanister using black and white camera to obtain color image and scan method thereof
CN113160328A (en) External reference calibration method, system, robot and storage medium
CN111951370A (en) Direct volume rendering method for data acquired by rotational scanning
CN112927307A (en) Calibration method, calibration device, electronic equipment and storage medium
CN112880563B (en) Single-dimensional pixel combination mode equivalent narrow-area-array camera spatial position measuring method
CN104374374B (en) 3D environment dubbing system and 3D panoramas display method for drafting based on active panoramic vision
CN112819935A (en) Method for realizing three-dimensional reconstruction of workpiece based on binocular stereo vision
WO2015048053A1 (en) Improved dynamic range of color camera images superimposed on scanned three dimensional gray scale images
CN112132957A (en) High-precision annular scanning method and device
CN110686651B (en) Building facade measuring method and system based on three-dimensional laser scanning
CN116503248A (en) Infrared image correction method and system for crude oil storage tank
CN111023994A (en) Grating three-dimensional scanning method and system based on multiple measurements
CN113436214B (en) Brinell hardness indentation circle measuring method and system and computer readable storage medium
CN113379844B (en) Method for detecting large-range surface quality of airplane
CN110610462B (en) Method for forming pseudo color image by 16bit data
CN109341576B (en) Method for rapidly measuring three-dimensional appearance and color of object surface
CN102798351B (en) Method for scanning normal map of cultural relic
CN111080716B (en) Camera calibration target based on color coding phase shift stripes and calibration point extraction method
CN106885512A (en) A kind of 3-D scanning imaging method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201117