Volume ultrasound curved surface imaging method and system
Through volume probe and Bezier curve technology, the problem of surface selection in three-dimensional ultrasound imaging is solved, efficient and accurate surface rendering is achieved, and diagnostic efficiency is improved.
Patent Information
- Application Number
- CN202411002725.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-27
AI Technical Summary
In three-dimensional ultrasound imaging, it is difficult to flexibly and accurately select a specific surface in the area of interest, which cannot meet the needs of clinical diagnosis and treatment.
Acquire three-dimensional data through volume probe scanning, set the perspective change framework, calculate curves and surface equations, use Bezier curves to fit the surface, and combine perspective transformation and GPU calculations to achieve accurate selection and rendering of surface VOI.
It improves detection efficiency and accuracy, achieves accurate selection and rendering speed of curved VOI, and meets the needs of clinical diagnosis and treatment.
Smart Images

Figure CN118697380A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ultrasound and image processing, and in particular to a volume ultrasound curved surface imaging method and system. Background Art
[0002] Volume Ultrasound, also known as 3D Ultrasound or 4D Ultrasound (when the time dimension is included), is a method of three-dimensional imaging of objects using ultrasound technology. Compared with traditional two-dimensional ultrasound, volume ultrasound can provide more detailed and comprehensive three-dimensional images.
[0003] With the development of ultrasound technology, three-dimensional volume probes have become increasingly popular. Volume probes use mechanical scanning to collect multiple two-dimensional images, reconstruct three-dimensional information using the spatial position relationship between the images, and render and display the reconstructed data. Three-dimensional volume ultrasound imaging technology has a wide range of uses in clinical diagnosis and treatment, and plays an important role in obstetrics and gynecology, cardiology, and abdominal organ examinations.
[0004] In three-dimensional ultrasound imaging, the region of interest is usually a rectangular block. In actual use, doctors need to select a specific surface for analysis. Generally, one face of the rectangular block is changed into a curved surface, and then the region of interest is rendered and subsequently analyzed. However, currently, the selection of specific surfaces in the rectangular block region of interest cannot be flexible and accurate, which makes it difficult to meet people's needs. Summary of the invention
[0005] The object of the present invention is to provide a volume ultrasound curved imaging method and system to solve the problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a curved surface imaging method of volume ultrasound, the method comprising the following steps:
[0007] S1. Use the volume probe to scan and obtain volume data, reconstruct and set the perspective change framework;
[0008] S2, set the initial control points of the surface and calculate the corresponding curve and surface equations;
[0009] S3, determining the positional relationship between the VOI area including the curved surface and the volume data under the perspective transformation, and performing rendering calculation on the area inside the curved surface;
[0010] S4, rendering volume data in the VOI area;
[0011] The volume probe is an ultrasonic probe that can acquire three-dimensional data. Unlike a traditional two-dimensional probe, the volume probe acquires three-dimensional data through multi-angle scanning.
[0012] The volume data is three-dimensional data obtained by scanning;
[0013] The VOI region refers to a specific volume region of interest in three-dimensional imaging data processing.
[0014] In step S1,
[0015] The volume data is obtained by scanning with a volume probe. After three-dimensional reconstruction, the view transformation framework is set. The position of the reconstructed data remains unchanged. Eight view transformation auxiliary points are constructed to form an auxiliary cube. The auxiliary points change with the view transformation.
[0016] The eight perspective transformation auxiliary points are located at eight vertices of the space cube.
[0017] In step S2,
[0018] Initial control point, change one face of the selection box of the region of interest into a curved surface, set the vertex P (x, y, z) of the curved surface, point P and points E and G form the curve EPG, and point F and H form the curve FPH; use Bezier curve to realize the calculation of the curved surface: the specific steps are as follows:
[0019] S3-1, control point calculation;
[0020] S3-2, curve fitting;
[0021] S3-3, surface equation calculation;
[0022] In step S3-1,
[0023] On a plane parallel to yoz, if P is known c1 , E and G, then the curve FPH is fitted by the Bezier curve; if the coordinates of the vertex P of the surface and the coordinates of the points F and H on the auxiliary cube are known, the control point P needs to be obtained first. c1 The coordinates of , and then curve fitting is performed;
[0024]
[0025] Among them, P c1 represents the coordinates of the control points of the curve FPH; P represents the coordinates of the vertex of the surface; F and H represent the coordinates of the points on the auxiliary cube; FP and HP represent the Euclidean distances from point F to point P and from point H to point P respectively; represents the sum of the unit vectors of vector (FP) and vector (HP);
[0026] Similarly, in order to fit the EPG curve, P c2 for:
[0027]
[0028] Among them, P c2 represents the coordinates of the control points of the curve EPG; P represents the coordinates of the vertex of the surface; E and G represent the coordinates of the points on the auxiliary cube; EP and GP represent the Euclidean distances from point E to point P and from point G to point P respectively; represents the sum of the unit vectors of vector (EP) and vector (GP);
[0029] By P c1 and P c2 Calculation is used to control the curve.
[0030] In step S3-2,
[0031] According to the coordinate system in the above algorithm, point P is the vertex of the surface, and the surface is changed by changing the coordinates of point P. According to the above calculation formula, the control points P are calculated respectively. c1 and P c2 , using point P c1 , F and H and P c2 , E and G are fitted to curve EPG and curve FPH respectively;
[0032] FPH curve: On a plane parallel to yoz, F and H are the two endpoints, P c1 is the control point, P is the vertex of the FPH curve, so the curve equation of the second-order Bezier curve is:
[0033]
[0034] The t1 value is calculated by the above formula (1):
[0035]
[0036] Wherein, F and H are the coordinates of two endpoints, the three-dimensional coordinates of point F (x, y, z) are x = F0, y = F1, z = F2, and the three-dimensional coordinates of point H (x, y, z) are x = H0, y = H1, z = H2;
[0037] yt1∈[y=H1,F1], select an integer point according to the value range of y, calculate the corresponding t1 value, and substitute:
[0038] z1t1=(1-t1) 2 *F2+2t11-t1*P c1 2+t1 2 *H[2]
[0039] The curve z1 is obtained, denoted as CurveZ1;
[0040] EPG curve: On a plane parallel to xoy, E[0] and G[0] are the two endpoints, P c2 is the control point, P is the vertex of the EPG curve, and the curve equation of the second-order Bezier curve is:
[0041]
[0042] The t2 value is calculated by the above formula (3):
[0043]
[0044] Where E and G are the coordinates of the two endpoints, the three-dimensional coordinates of point E (x, y, z) are x = E0, y = E1, z = E2, and the three-dimensional coordinates of point G (x, y, z) are x = G0, y = G1, z = G2; P c2 is the control point; P is the vertex of the EPG curve;
[0045] xt2∈[y=E0,G0], select an integer point according to the value range of x, calculate the corresponding t2 value, and substitute:
[0046] z2t2=(1-t2) 2 *E2+2t21-t2*P c2 2+t2 2 *G[2]
[0047] The curve z2 is obtained, recorded as CurveZ2.
[0048] In step S3-3, CurveZ1 is the corresponding coordinates of the y value and the z value on the FPH curve, and CurveZ2 is the corresponding coordinates of the x value and the z value on the EPG curve. Then CurveZ1 and CurveZ2 are expressed as two matrices, and the surface equation is expressed as:
[0049] CurvesurfaceZ=CurveZ1*CurveZ2'
[0050] Where CurveZ2' represents the transposed matrix of CurveZ2 matrix;
[0051] Save the parameter values of the surface equation in the Z-axis direction as a parameter table.
[0052] In step S3,
[0053] In the perspective transformation framework, determine whether the point in the 3D data is inside the surface VOI. Only when it is inside the surface does it need to be rendered. Since the 3D image has rotation and translation functions, consider the impact of the rotation and translation functions on the judgment, construct auxiliary coordinate points, calculate the distance d from the 3D data to the plane ABCD, and compare it with the parameter value in CurvesurfaceZ to make a judgment.
[0054] First calculate the projection P' of point P on plane ABCD and the distance d from the point to the plane:
[0055] Given three points A, B and C on a plane, the plane normal vector
[0056]
[0057] in, represents the plane normal vector; A, B and C represent the coordinates of three points on the plane respectively;
[0058] The projection distance d and projection point P' of a point P in space projected onto the plane:
[0059]
[0060] Where d is the projection distance of a point P in space onto the plane; P' is the projection point;
[0061] Calculate the distance P' from the projection point P' to the two straight lines AB and AC x and P' y :
[0062]
[0063]
[0064] Among them, size represents the side length of the auxiliary cube, d AB and d AC Indicates the length of AB and AC; P' x and P' y are the distances from the projection point P' to the two straight lines AB and AC respectively; and Represents the vector between two points; d P'-AB and d P'-AC are the projection distances of point P onto the plane from the straight lines AB and AC respectively;
[0065] Using P' x and P' yThe value of is combined with the CurvesurfaceZ parameter table to perform two-dimensional linear interpolation to calculate the Z value IndexZ of the corresponding surface, and then determine whether the data point needs to be rendered based on whether the surface is concave or convex;
[0066] When the surface is concave, the value CurveZ of point R in the volume data in the Z direction needs to satisfy:
[0067] (IndexZ-distance_E)≤CurveZ≤(size-2*distance_E)
[0068] Wherein, distance_E is the distance between the auxiliary cube surface and the VOI surface in the Z-axis direction; IndexZ is the corresponding surface Z value in CurvesurfaceZ;
[0069] When the surface is convex, first determine whether the volume data is within the projection area. All volume data within the projection area needs to be rendered. Then determine whether the 3D data point is within the convex surface. The value CurveZ in the Z direction needs to satisfy:
[0070] CurveZ≤(distance_E-IndexZ)
[0071] Wherein, CurveZ represents the value of the three-dimensional data point in the Z direction;
[0072] Utilize GPU, use OpenCL and CUDA for parallel computing to accelerate judgment calculations.
[0073] In step S4, the three-dimensional data in the VOI region is three-dimensionally rendered using a light projection method to obtain a three-dimensional rendered image.
[0074] A curved surface imaging system for volume ultrasound, the system comprising a data acquisition module, a visual framework building module, a calculation control module, a judgment module and a rendering module;
[0075] The data acquisition module is used to obtain raw data from the detection device; obtain three-dimensional data through scanning by the volume probe; and transmit the data to the visual framework building module; the visual framework building module is used to build a visual reference frame for display and analysis; the specific functions include setting the perspective transformation framework, auxiliary point construction and auxiliary cube generation; the calculation control module is used to use Bezier curves to calculate initial control points, perform curve fitting and surface equation calculation; the judgment module is used to judge the positional relationship between the VOI area containing the surface and the volume data; the rendering module is used to use the light projection method to perform three-dimensional rendering on the stereo data in the VOI area to obtain a three-dimensional rendered image;
[0076] The setting perspective transformation framework defines a reference framework for observing three-dimensional data, which is convenient for perspective adjustment; the auxiliary point construction is used to construct perspective transformation auxiliary points and use them in the visual framework; the auxiliary cube generation is used to generate auxiliary cubes according to the auxiliary points to help users understand and operate perspective transformation;
[0077] The output end of the data acquisition module is connected to the input end of the visual framework building module; the output end of the visual framework building module is connected to the input end of the calculation control module; the output end of the calculation control module is connected to the input end of the judgment module; the output end of the judgment module is connected to the input end of the rendering module.
[0078] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0079] 1. The present invention uses a three-dimensional volume probe to detect spatial relationships and perform three-dimensional reconstruction, which greatly improves the efficiency and accuracy of detection;
[0080] 2. The present invention uses Bezier curve correlation calculation combined with three-dimensional section images to achieve accurate selection of curved surface VOI;
[0081] 3. The present invention utilizes perspective transformation to realize surface selection in any state, and combines perspective transformation with GPU calculation to accelerate the rendering speed of surface VOI. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0083] Figure 1 It is a flow chart of a volume ultrasound curved surface imaging method and system of the present invention;
[0084] Figure 2 It is to use auxiliary points to construct a schematic diagram of the selection box of the area of interest;
[0085] Figure 3 The present invention changes a surface of the region of interest selection box into a curved surface schematic diagram;
[0086] Figure 4 It is a schematic diagram of control point calculation;
[0087] Figure 5 It is the projection of point P onto the plane diagram;
[0088] Figure 6 It is a schematic diagram when the surface is concave;
[0089] Figure 7 This is a schematic diagram when the surface is convex. DETAILED DESCRIPTION
[0090] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0091] See also Figure 1-Figure 7 The present invention provides a technical solution: a curved surface imaging method of volume ultrasound, the method comprising the following steps:
[0092] S1. Use the volume probe to scan and obtain volume data, reconstruct and set the perspective change framework;
[0093] S2, set the initial control points of the surface and calculate the corresponding curve and surface equations;
[0094] S3, determining the positional relationship between the VOI area including the curved surface and the volume data under the perspective transformation, and performing rendering calculation on the area inside the curved surface;
[0095] S4, rendering volume data in the VOI area;
[0096] The volume probe is an ultrasonic probe that can acquire three-dimensional data. Unlike a traditional two-dimensional probe, the volume probe acquires three-dimensional data through multi-angle scanning.
[0097] The volume data is three-dimensional data obtained by scanning;
[0098] The VOI region refers to a specific volume region of interest in three-dimensional imaging data processing.
[0099] In step S1,
[0100] The volume data is obtained by scanning with a volume probe. After three-dimensional reconstruction, the view transformation framework is set. The position of the reconstructed data remains unchanged. Eight view transformation auxiliary points are constructed to form an auxiliary cube. The auxiliary points change with the view transformation.
[0101] The eight perspective transformation auxiliary points are located at eight vertices of the space cube.
[0102] In step S2,
[0103] Initial control point, change one face of the selection box of the region of interest into a curved surface, set the vertex P (x, y, z) of the curved surface, point P and points E and G form the curve EPG, and point F and H form the curve FPH; use Bezier curve to realize the calculation of the curved surface: the specific steps are as follows:
[0104] S3-1, control point calculation;
[0105] S3-2, curve fitting;
[0106] S3-3, surface equation calculation;
[0107] In step S3-1,
[0108] On a plane parallel to yoz, if P is known c1 , E and G, then the curve FPH is fitted by the Bezier curve; if the coordinates of the vertex P of the surface and the coordinates of the points F and H on the auxiliary cube are known, the control point P needs to be obtained first. c1 The coordinates of , and then curve fitting is performed;
[0109]
[0110] Among them, P c1 represents the coordinates of the control points of the curve FPH; P represents the coordinates of the vertex of the surface; F and H represent the coordinates of the points on the auxiliary cube; FP and HP represent the Euclidean distances from point F to point P and from point H to point P respectively; represents the sum of the unit vectors of vector (FP) and vector (HP);
[0111] Similarly, in order to fit the EPG curve, P c2 for:
[0112]
[0113] Among them, P c2 represents the coordinates of the control points of the curve EPG; P represents the coordinates of the vertex of the surface; E and G represent the coordinates of the points on the auxiliary cube; EP and GP represent the Euclidean distances from point E to point P and from point G to point P respectively; represents the sum of the unit vectors of vector (EP) and vector (GP);
[0114] By P c1 and P c2 Calculation is used to control the curve.
[0115] In step S3-2,
[0116] According to the coordinate system in the above algorithm, point P is the vertex of the surface, and the surface is changed by changing the coordinates of point P. According to the above calculation formula, the control points P are calculated respectively. c1 and P c2 , using point P c1 , F and H and P c2 , E and G are fitted to curve EPG and curve FPH respectively;
[0117] FPH curve: On a plane parallel to yoz, F and H are the two endpoints, P c1 is the control point, P is the vertex of the FPH curve, so the curve equation of the second-order Bezier curve is:
[0118]
[0119] The t1 value is calculated by the above formula (1):
[0120]
[0121] Wherein, F and H are the coordinates of two endpoints, the three-dimensional coordinates of point F (x, y, z) are x = F0, y = F1, z = F2, and the three-dimensional coordinates of point H (x, y, z) are x = H0, y = H1, z = H2;
[0122] yt1∈[y=H1,F1], select an integer point according to the value range of y, calculate the corresponding t1 value, and substitute:
[0123] z1t1=(1-t1) 2 *F2+2t11-t1*P c1 2+t1 2 *H[2]
[0124] The curve z1 is obtained, denoted as CurveZ1;
[0125] EPG curve: On a plane parallel to xoy, E[0] and G[0] are the two endpoints, P c2 is the control point, P is the vertex of the EPG curve, and the curve equation of the second-order Bezier curve is:
[0126]
[0127] The t2 value is calculated by the above formula (3):
[0128]
[0129] Where E and G are the coordinates of the two endpoints, the three-dimensional coordinates of point E (x, y, z) are x = E0, y = E1, z = E2, and the three-dimensional coordinates of point G (x, y, z) are x = G0, y = G1, z = G2; P c2is the control point; P is the vertex of the EPG curve;
[0130] xt2∈[y=E0,G0], select an integer point according to the value range of x, calculate the corresponding t2 value, and substitute:
[0131] z2t2=(1-t2) 2 *E2+2t21-t2*P c2 2+t2 2 *G[2]
[0132] The curve z2 is obtained, recorded as CurveZ2.
[0133] In step S3-3, CurveZ1 is the corresponding coordinates of the y value and the z value on the FPH curve, and CurveZ2 is the corresponding coordinates of the x value and the z value on the EPG curve. Then CurveZ1 and CurveZ2 are expressed as two matrices, and the surface equation is expressed as:
[0134] CurvesurfaceZ=CurveZ1*CurveZ2'
[0135] Where CurveZ2' represents the transposed matrix of CurveZ2 matrix;
[0136] Save the parameter values of the surface equation in the Z-axis direction as a parameter table.
[0137] In step S3,
[0138] In the perspective transformation framework, determine whether the point in the 3D data is inside the surface VOI. Only when it is inside the surface does it need to be rendered. Since the 3D image has rotation and translation functions, consider the impact of the rotation and translation functions on the judgment, construct auxiliary coordinate points, calculate the distance d from the 3D data to the plane ABCD, and compare it with the parameter value in CurvesurfaceZ to make a judgment.
[0139] First calculate the projection P' of point P on plane ABCD and the distance d from the point to the plane:
[0140] Given three points A, B and C on a plane, the plane normal vector
[0141]
[0142] in, represents the plane normal vector; A, B and C represent the coordinates of three points on the plane respectively;
[0143] The projection distance d and projection point P' of a point P in space projected onto the plane:
[0144]
[0145] Where d is the projection distance of a point P in space onto the plane; P' is the projection point;
[0146] Calculate the distance P' from the projection point P' to the two straight lines AB and AC x and P' y :
[0147]
[0148] Among them, size represents the side length of the auxiliary cube, d AB and d AC Indicates the length of AB and AC; P' x and P' y are the distances from the projection point P' to the two straight lines AB and AC respectively; and Represents the vector between two points; d P'-AB and d P'-AC are the projection distances of point P onto the plane from the straight lines AB and AC respectively;
[0149] Using P' x and P' y The value of is combined with the CurvesurfaceZ parameter table to perform two-dimensional linear interpolation to calculate the Z value IndexZ of the corresponding surface, and then determine whether the data point needs to be rendered based on whether the surface is concave or convex;
[0150] When the surface is concave, the value CurveZ of point R in the volume data in the Z direction needs to satisfy:
[0151] (IndexZ-distance_E)≤CurveZ≤(size-2*distance_E)
[0152] Wherein, distance_E is the distance between the auxiliary cube surface and the VOI surface in the Z-axis direction; IndexZ is the corresponding surface Z value in CurvesurfaceZ;
[0153] When the surface is convex, first determine whether the volume data is within the projection area. All volume data within the projection area needs to be rendered. Then determine whether the 3D data point is within the convex surface. The value CurveZ in the Z direction needs to satisfy:
[0154] CurveZ≤(distance_E-IndexZ)
[0155] Wherein, CurveZ represents the value of the three-dimensional data point in the Z direction;
[0156] Utilize GPU, use OpenCL and CUDA for parallel computing to accelerate judgment calculations.
[0157] In step S4, the three-dimensional data in the VOI region is three-dimensionally rendered using a light projection method to obtain a three-dimensional rendered image.
[0158] A curved surface imaging system for volume ultrasound, the system comprising a data acquisition module, a visual framework building module, a calculation control module, a judgment module and a rendering module;
[0159] The data acquisition module is used to obtain raw data from the detection device; obtain three-dimensional data through scanning by the volume probe; and transmit the data to the visual framework building module; the visual framework building module is used to build a visual reference frame for display and analysis; the specific functions include setting the perspective transformation framework, auxiliary point construction and auxiliary cube generation; the calculation control module is used to use Bezier curves to calculate initial control points, perform curve fitting and surface equation calculation; the judgment module is used to judge the positional relationship between the VOI area containing the surface and the volume data; the rendering module is used to use the light projection method to perform three-dimensional rendering on the stereo data in the VOI area to obtain a three-dimensional rendered image;
[0160] The setting perspective transformation framework defines a reference framework for observing three-dimensional data, which is convenient for perspective adjustment; the auxiliary point construction is used to construct perspective transformation auxiliary points and use them in the visual framework; the auxiliary cube generation is used to generate auxiliary cubes according to the auxiliary points to help users understand and operate perspective transformation;
[0161] The output end of the data acquisition module is connected to the input end of the visual framework building module; the output end of the visual framework building module is connected to the input end of the calculation control module; the output end of the calculation control module is connected to the input end of the judgment module; the output end of the judgment module is connected to the input end of the rendering module.
[0162] In an embodiment of the present invention,
[0163] The goal of cardiac ultrasound imaging is to obtain a three-dimensional image of the heart using a volumetric ultrasound probe and to perform detailed curved imaging of a specific area of the heart (the left ventricle).
[0164] Step S1: using a volume probe to scan and acquire volume data, and reconstructing and setting a perspective change framework;
[0165] Volume probe scanning:
[0166] The heart is scanned at multiple angles using a volumetric ultrasound probe to obtain three-dimensional data. The data points include the coordinates of various parts of the heart in three-dimensional space and the corresponding ultrasound signal intensity.
[0167] 3D Reconstruction:
[0168] The two-dimensional slice data obtained by scanning are reconstructed into three dimensions to generate a complete three-dimensional model of the heart.
[0169] like Figure 2 As shown,
[0170] Set the perspective change frame:
[0171] The reconstructed 3D heart data model is fixed, the perspective change frame is set, and an auxiliary cube is constructed around the model. The 8 vertices of the auxiliary cube serve as auxiliary points for perspective change.
[0172] Step S2: setting the initial control points of the surface and calculating the corresponding curve and surface equations;
[0173] like Figure 3 As shown,
[0174] Set the initial control point:
[0175] Change one surface of the selection box of the left ventricle of the heart's region of interest into a curved surface, and set the surface vertex P(x, y, z).
[0176] Calculate the curve equation:
[0177] like Figure 4 As shown,
[0178] Initial control point, change one face of the selection box of the region of interest into a curved surface, set the vertex P (x, y, z) of the curved surface, point P and points E and G form the curve EPG, and point F and H form the curve FPH; use Bezier curve to realize the calculation of the curved surface:
[0179] Calculate the control point P of the curve FPH c1 ,
[0180] Calculate the control point P of the curve EPG c2 ,
[0181] By P c1 and P c2 Calculation is used to control the curve.
[0182] Then perform curve fitting:
[0183] By the Bezier curve equation:
[0184] Using points F and P c1 And H fit the curve FPH:
[0185]
[0186] Using points E and P c2 And G fit the curve FPH:
[0187]
[0188] The surface equation is calculated by fitting the curves CurveZ1 and CurveZ2:
[0189] CurvesurfaceZ
[0190] =CurveZ1
[0191] *CurveZ2
[0192] Next, calculate the projection distance:
[0193] like Figure 5 As shown: Calculate the projection distance and perform two-dimensional linear interpolation calculation;
[0194] Next, judge the surface:
[0195] like Figure 6 As shown: When the surface is concave:
[0196] (IndexZ-distance_E)≤CurveZ≤(size-2*distance_E)
[0197] Wherein, distance_E is the distance between the auxiliary cube surface and the VOI surface in the Z-axis direction;
[0198] IndexZ is the corresponding surface Z value in CurvesurfaceZ;
[0199] like Figure 7 As shown: When the surface is convex:
[0200] When the surface is convex, first determine whether the volume data is within the solid rectangle. All those within the solid rectangle need to be rendered; then determine whether the three-dimensional data point is in the convex surface, and the value CurveZ in the Z direction needs to satisfy:
[0201] CurveZ≤(distance_E-IndexZ)
[0202] Wherein, CurveZ represents the value of the three-dimensional data point in the Z direction;
[0203] After the judgment is completed, the three-dimensional data in the VOI area is three-dimensionally rendered using the light projection method to obtain a three-dimensional rendered image.
[0204] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0205] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for curved surface imaging of volume ultrasound, characterized in that: The method comprises the following steps: S1. Use the volume probe to scan and obtain volume data, reconstruct and set the perspective change framework; S2, set the initial control points of the surface and calculate the corresponding curve and surface equations; S3, determining the positional relationship between the VOI area including the curved surface and the volume data under the perspective transformation, and performing rendering calculation on the area inside the curved surface; S4, rendering volume data in the VOI area; The volume probe is an ultrasonic probe that can acquire three-dimensional data. Unlike a traditional two-dimensional probe, the volume probe acquires three-dimensional data through multi-angle scanning. The volume data is three-dimensional data obtained by scanning; The VOI region refers to a specific volume region of interest in three-dimensional imaging data processing.
2. The method for curved surface imaging of volume ultrasound according to claim 1, characterized in that: In step S1, The volume data is obtained by scanning with a volume probe. After three-dimensional reconstruction, the view transformation framework is set. The position of the reconstructed data remains unchanged. Eight view transformation auxiliary points are constructed to form an auxiliary cube. The auxiliary points change with the view transformation. The eight perspective transformation auxiliary points are located at eight vertices of the space cube.
3. The method for curved surface imaging of volume ultrasound according to claim 1, characterized in that: In step S2, Initial control point, change one face of the selection box of the region of interest into a curved surface, set the vertex P (x, y, z) of the curved surface, point P and points E and G form the curve EPG, and point F and H form the curve FPH; use Bezier curve to realize the calculation of the curved surface: the specific steps are as follows: S3-1, control point calculation; S3-2, curve fitting; S3-3. Calculation of surface equations.
4. The method for curved surface imaging of volume ultrasound according to claim 3, characterized in that: In step S3-1, On a plane parallel to yoz, if P is known c1 , E and G, the curve FPH is fitted by the Bezier curve; if the coordinates of the vertex P of the surface and the coordinates of the points F and H on the auxiliary cube are known, the control point P needs to be obtained first. c1 The coordinates of , and then curve fitting is performed; Among them, P c1 represents the coordinates of the control points of the curve FPH; P represents the coordinates of the vertex of the surface; F and H represent the coordinates of the points on the auxiliary cube respectively; |FP| and |HP| represent the Euclidean distances from point F to point P and from point H to point P respectively; represents the sum of the unit vectors of vector (FP) and vector (HP); Similarly, in order to fit the EPG curve, P c2 for: Among them, P c2 represents the coordinates of the control points of the curve EPG; P represents the coordinates of the vertex of the surface; E and G represent the coordinates of the points on the auxiliary cube; |EP| and |GP| represent the Euclidean distances from point E to point P and from point G to point P respectively; represents the sum of the unit vectors of vector (EP) and vector (GP); By P c1 and P c2 Calculation is used to control the curve.
5. The method for curved surface imaging of volume ultrasound according to claim 4, characterized in that: In step S3-2, According to the coordinate system in the above algorithm, point P is the vertex of the surface, and the surface is changed by changing the coordinates of point P. According to the above calculation formula, the control points P are calculated respectively. c1 and P c2 , using point P c1 , F and H and P c2 , E and G are fitted to curve EPG and curve FPH respectively; FPH curve: On a plane parallel to yoz, F and H are the two endpoints, P c1 is the control point, P is the vertex of the FPH curve, so the curve equation of the second-order Bezier curve is: Calculate the t1 value using the above formula: Where F and H are the coordinates of two endpoints. The three-dimensional coordinates of point F (x, y, z) are x = F[0], y = F[1], z = F[2], and the three-dimensional coordinates of point H (x, y, z) are x = H[0], y = H[1], z = H[2]; y(t1)∈[y=H[1],F[1]], select an integer point according to the value range of y, calculate the corresponding t1 value, and substitute: z1(t1)=(1-t1) 2 *F[2]+2t1(1-t1)*P c1 [2]+t1 2 *H[2] The curve z1 is obtained, denoted as CurveZ1; EPG curve: On a plane parallel to xoy, E[0] and G[0] are the two endpoints, P c2 is the control point, P is the vertex of the EPG curve, and the curve equation of the second-order Bezier curve is: Calculate the t2 value using the above formula: Where E and G are the coordinates of the two endpoints. The three-dimensional coordinates of point E(x, y, z) are x=E[0], y=E[1], z=E[2], and the three-dimensional coordinates of point G(x, y, z) are x=G[0], y=G[1], z=G[2]; P c2 is the control point; P is the vertex of the EPG curve; x(t2)∈[y=E[0],G[0]], select an integer point according to the value range of x, calculate the corresponding t2 value, and substitute: z2(t2)=(1-t2) 2 *E[2]+2t2(1-t2)*P c2 [2]+t2 2 *G[2] The curve z2 is obtained, recorded as CurveZ2.
6. The method for curved surface imaging of volume ultrasound according to claim 5, characterized in that: In step S3-3, CurveZ1 is the corresponding coordinates of the y value and the z value on the FPH curve, and CurveZ2 is the corresponding coordinates of the x value and the z value on the EPG curve. Then CurveZ1 and CurveZ2 are expressed as two matrices, and the surface equation is expressed as: CurvesurfaceZ=CurveZ1*CurveZ2' Where CurveZ2' represents the transposed matrix of CurveZ2 matrix; Save the parameter values of the surface equation in the Z-axis direction as a parameter table.
7. The method for curved surface imaging of volume ultrasound according to claim 1, characterized in that: In step S3, In the perspective transformation framework, determine whether the point in the 3D data is inside the surface VOI. Only when it is inside the surface does it need to be rendered. Since the 3D image has rotation and translation functions, consider the impact of the rotation and translation functions on the judgment, construct auxiliary coordinate points, calculate the distance d from the 3D data to the plane ABCD, and compare it with the parameter value in CurvesurfaceZ to make a judgment. First calculate the projection P' of point P on plane ABCD and the distance d from the point to the plane: Given three points A, B and C on a plane, the plane normal vector in, represents the plane normal vector; A, B and C represent the coordinates of three points on the plane respectively; The projection distance d and projection point P' of a point P in space projected onto the plane: Where d is the projection distance of a point P in space onto the plane; P' is the projection point; Calculate the distance P' from the projection point P' to the two straight lines AB and AC x and P' y : Among them, size represents the side length of the auxiliary cube, d AB and d AC Indicates the length of AB and AC; P' x and P' y are the distances from the projection point P' to the two straight lines AB and AC respectively; and Represents the vector between two points; d P'-AB and d P'-AC are the projection distances of point P onto the plane from the straight lines AB and AC respectively; Using P' x and P' y The value of is combined with the CurvesurfaceZ parameter table to perform two-dimensional linear interpolation to calculate the Z value IndexZ of the corresponding surface, and then determine whether the data point needs to be rendered based on whether the surface is concave or convex; When the surface is concave, the value CurveZ of point R in the volume data in the Z direction needs to satisfy: (IndexZ-distance_E)≤CurveZ≤(size-2*distance_E) Wherein, distance_E is the distance between the auxiliary cube surface and the VOI surface in the Z-axis direction; IndexZ is the corresponding surface Z value in CurvesurfaceZ; When the surface is convex, first determine whether the volume data is within the projection area. All volume data within the projection area needs to be rendered. Then determine whether the 3D data point is within the convex surface. The value CurveZ in the Z direction needs to satisfy: CurveZ≤(distance_E-IndexZ) Wherein, CurveZ represents the value of the three-dimensional data point in the Z direction; Utilize GPU, use OpenCL and CUDA for parallel computing to accelerate judgment calculations.
8. The method for curved surface imaging of volume ultrasound according to claim 1, characterized in that: In step S4, the three-dimensional data in the VOI region is three-dimensionally rendered using a light projection method to obtain a three-dimensional rendered image.
9. A volume ultrasound curved surface imaging system, executing the volume ultrasound curved surface imaging method according to claim 1, characterized in that: The system includes a data acquisition module, a visual framework building module, a calculation control module, a judgment module and a rendering module; The data acquisition module is used to obtain raw data from the detection device; obtain three-dimensional data through scanning by the volume probe; and transmit the data to the visual framework building module; the visual framework building module is used to build a visual reference frame for display and analysis; The specific functions include setting the perspective transformation framework, auxiliary point construction and auxiliary cube generation; the calculation control module is used to calculate using Bezier curves, calculate initial control points, perform curve fitting and surface equation calculation; the judgment module is used to judge the positional relationship between the VOI area containing the surface and the volume data; The rendering module is used to perform three-dimensional rendering on the stereoscopic data in the VOI area by using a light projection method to obtain a three-dimensional rendering image; The setting perspective transformation framework defines a reference frame for observing three-dimensional data, which facilitates perspective adjustment; The auxiliary point construction is used to construct the perspective transformation auxiliary points and use them in the visual framework; the auxiliary cube generation is used to generate auxiliary cubes according to the auxiliary points to help users understand and operate the perspective transformation; The output end of the data acquisition module is connected to the input end of the visual framework building module; the output end of the visual framework building module is connected to the input end of the calculation control module; the output end of the calculation control module is connected to the input end of the judgment module; the output end of the judgment module is connected to the input end of the rendering module.
Citation Information
Cited By
Ultrasound-guided transcranial nerve regulation system and method
CN119258421A
