Liver surface reconstruction method and device for laparoscopic surgery, computer equipment and storage medium
By using multi-view scanning and parallax map processing technology during the open period of liver blood flow in laparoscopic surgery, combined with point cloud splicing, the problem of global liver surface reconstruction in laparoscopic surgery is solved, real-time and high-precision liver surface reconstruction is achieved. Provides technical support for augmented reality navigation.
Patent Information
- Application Number
- CN202411440804.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult to reconstruct the liver global surface during laparoscopic surgery, and it is difficult for the existing technology to obtain the global geometric information of the liver using a limited field of vision, which affects the automatic registration and real-time navigation of augmented reality navigation.
Multi-view scanning of segmented locations during the open period of liver blood flow, combined with the central symmetric census transformation matching algorithm and semi-global cost aggregation method to generate dense matching disparity maps, and the liver tissue area is extracted by pixel-by-pixel connectivity segmentation method, and the hepatic tissue area is extracted through The point cloud splicing algorithm splices local point clouds into a global surface reconstruction point cloud.
It realizes real-time and high-precision reconstruction of the global surface of the liver without affecting surgical operations, providing technical support for augmented reality navigation, and improving the accuracy and real-time nature of liver surface reconstruction.
Smart Images

Figure CN118967951A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, computer equipment and storage medium for liver surface reconstruction in laparoscopic surgery. Background Art
[0002] Using laparoscopic intraoperative scenes to reconstruct the three-dimensional surface of abdominal tissue for augmented reality navigation-assisted surgery has been a research hotspot in recent years. Liver surface reconstruction technology requires the acquisition of complex geometric information of the intraoperative scene. Currently, there are four main methods that rely on analyzing laparoscopic images to obtain intraoperative geometric information for surface reconstruction, including: stereo vision, simultaneous localization and mapping (SLAM), structure from motion (SfM), and shape from shadow (SfS). Among them, stereo vision can complete depth calculation by matching the features of the left and right images, and use the stereo camera calibration parameters to directly calculate the physical three-dimensional reconstruction of the stereo image pixels from the disparity. The estimation of disparity is achieved through stereo matching, which is the key technology of the stereo vision method.
[0003] At present, the stereoscopic laparoscope-based stereo vision algorithm used for surface reconstruction during laparoscopic liver resection obtains a dense point cloud of the liver surface during surgery through dense stereo reconstruction and automatic surface segmentation, and has achieved good results. However, due to the very limited laparoscope viewing angle (the angle of the laparoscope viewing angle is only 70°), only a small piece of the liver surface can be reconstructed, and it is difficult to obtain the global reconstruction structure of the liver. This makes it very challenging to automatically align with the global preoperative 3D anatomical model to achieve intraoperative augmented reality navigation. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, device, computer equipment and storage medium for liver surface reconstruction in laparoscopic surgery.
[0005] In order to solve at least one of the above technical problems, an embodiment of the present invention provides a method for liver surface reconstruction in laparoscopic surgery, comprising: Acquiring left local surface information and right local surface information of the liver during the liver blood flow opening period during laparoscopic surgery; The left local surface information and the right local surface information are processed by a central symmetric census transform matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map; The disparity gradient information pixel-by-pixel connectivity segmentation method is used to extract and process the edge of the disparity map to obtain an edge extraction map, and a GPU-based segmentation and merging connected domain labeling method is used to mark and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and the segmented disparity map is used to perform three-dimensional reconstruction on the extracted liver tissue area to obtain a local point cloud of the liver; The local point clouds of the liver are stitched and fused using a point cloud stitching algorithm to obtain the global surface reconstruction point cloud of the liver.
[0006] Preferably, the step of obtaining the left local surface information and the right local surface information of the liver during the liver blood flow opening period during laparoscopic surgery includes: During the period of open liver blood flow in laparoscopic surgery, the liver section and the liver surface on both sides are scanned independently from multiple perspectives by laparoscope to obtain the left and right local surface information of the liver.
[0007] Preferably, the processing of the left local surface information and the right local surface information by a centrally symmetric census transform matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map includes: Using a local matching cost algorithm of a centrosymmetric census transformation to perform pixel conversion on the left local surface information and the right local surface information, and performing binary encoding during the pixel conversion to obtain a first CSCT bit vector and a second CSCT bit vector; Calculating the Hamming distance between the first CSCT bit vector and the second CSCT bit vector, calculating the matching costs of pixels of the left local surface information and the right local surface information according to the Hamming distance, and constructing a cost map based on the matching costs of the pixels; A densely matched disparity map is generated based on the cost map and a semi-global cost aggregation method is used to combine multi-directional 1D paths in multiple directions in the left and right views.
[0008] Preferably, generating a densely matched disparity map based on the cost map and using a semi-global cost aggregation method in combination with multi-directional 1D paths in multiple directions in left and right views includes: In the cost map, a semi-global cost aggregation method is used to combine multi-directional 1D paths in multiple directions in the left and right views to approximate the global 2D smoothness constraint; The dynamic programming method is used to calculate the cost aggregation and the minimum cost of each path Lr in the multi-directional 1D path is calculated in combination with the global 2D smoothness constraint; Obtaining a disparity estimate for each pixel according to the minimum cost of each path Lr; A densely matched disparity map is generated according to the disparity estimation of each pixel.
[0009] Preferably, the pixel-by-pixel connectivity segmentation method using disparity gradient information to extract and process the edge of the disparity map to obtain an edge extraction map includes: According to the triangulation reconstruction principle, the 3D information of each pixel in the disparity map is calculated using the calibrated camera parameters; Use the Canny edge detection algorithm to perform edge detection on the three-dimensional information of each pixel to obtain invalid edges; The invalid edge is degraded by using a disparity gradient information pixel-by-pixel connectivity segmentation method to obtain the edge extraction map.
[0010] Preferably, the GPU-based segmentation and merging connected domain labeling method is used to label and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and the segmented disparity map is used to perform three-dimensional reconstruction on the extracted liver tissue area to obtain a liver local point cloud, including: Using a GPU-based partition-merging connected region labeling method to label and extract the connected regions; Creating a partition path table with all non-edge points in the edge extraction graph, obtaining a partition map, further constructing a coordinate lookup table of points based on the partition map, and merging the regions of the partition map through chained update of values to perform self-iteration of the lookup table; Using the coordinate lookup table to update the partition mapping, a new label mapping is obtained; Extracting the liver tissue region in the laparoscopic image in the disparity map by marking the position of the label value; The segmented disparity map is used to perform three-dimensional reconstruction of the extracted target point cloud, and the surface reconstruction of the local point cloud of the liver under each laparoscope field of view is completed.
[0011] Preferably, the step of stitching and fusing the local point clouds of the liver by a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver includes: The local point clouds of each liver are matched and spliced using an adaptive point cloud stitching algorithm based on geometric feature registration and image feature registration; In the matching and stitching process, after alignment and registration, a random sample consistency algorithm is used to remove mismatched feature points, and the removed liver local point clouds are stitched into an overall point cloud structure to obtain the global surface reconstruction point cloud.
[0012] A liver surface reconstruction device for laparoscopic surgery, comprising: An acquisition module, used for acquiring left local surface information and right local surface information of the liver during the liver blood flow opening period in laparoscopic surgery; A generation module, used for processing the left local surface information and the right local surface information by using a central symmetric census transformation matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map; A first reconstruction module is used to extract and process the edge of the disparity map by using a pixel-by-pixel connectivity segmentation method based on disparity gradient information to obtain an edge extraction map, and to label and extract the connected areas in the edge extraction map by using a GPU-based segmentation and merging connected domain labeling method to obtain a liver tissue area in a laparoscopic image, and to perform three-dimensional reconstruction on the extracted liver tissue area by using the segmented disparity map to obtain a liver local point cloud; The second reconstruction module is used to stitch and fuse the local point clouds of the liver through a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver.
[0013] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the above embodiments when executing the computer program.
[0014] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described in any of the above embodiments.
[0015] The above-mentioned liver surface reconstruction method, device, computer equipment and storage medium for laparoscopic surgery obtain the left local surface information and the right local surface information of the liver during the liver blood flow opening period during laparoscopic surgery; the left local surface information and the right local surface information are processed by a central symmetric census transformation matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map; the disparity gradient information pixel-by-pixel connectivity segmentation method is used to extract and process the edges of the disparity map to obtain an edge extraction map, and the GPU-based segmentation and merging connected domain labeling method is used to mark and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and the segmented disparity map is used to perform three-dimensional reconstruction of the extracted liver tissue area to obtain a liver local point cloud; the liver local point clouds are spliced and fused by a point cloud splicing algorithm to obtain a global surface reconstruction point cloud of the liver. Therefore, we can combine the surgical operation rules and take advantage of the fact that the liver is in a relatively static state during the period of blood flow occlusion (no liver resection is required, and the deformation caused by the interaction of surgical instruments is small) to perform laparoscopic multi-view scanning in different regions to capture local information of the liver. Then, we can generate dense matching disparity maps through the stereo matching algorithm of the central symmetric survey transform (CSCT) module combined with semi-global block matching dynamic programming to achieve high-precision dense reconstruction of each local area of the liver in real time and obtain the corresponding surface reconstruction point cloud. Then, we combine the point cloud stitching algorithm to stitch and fuse the local point cloud information into the overall liver surface reconstruction point cloud, providing technical support for subsequent image overlay navigation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic flow chart of a method for liver surface reconstruction in laparoscopic surgery in an embodiment of the present invention; Figure 2 It is a schematic diagram of a processing flow of a method for liver surface reconstruction in laparoscopic surgery in an application scenario of the present invention; Figure 3 is a structural block diagram of a liver surface reconstruction device for laparoscopic surgery in an embodiment of the present invention; Figure 4 It is a schematic diagram of the structural composition of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] 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.
[0018] The embodiment of the present invention provides a method for liver surface reconstruction in laparoscopic surgery. Figure 1 As shown, a laparoscopic liver surface reconstruction method includes the following steps: S101, obtaining left local surface information and right local surface information of the liver during the liver blood flow opening period during laparoscopic surgery.
[0019] Preferably, the method of obtaining the left local surface information and the right local surface information of the liver during the open blood flow period of the liver during laparoscopic surgery includes: during the open blood flow period of the liver during laparoscopic surgery, independently scanning the liver section and the liver surfaces on both sides from multiple perspectives in different regions through a laparoscope to obtain the left local surface information and the right local surface information of the liver.
[0020] In clinical practice, when surgeons perform liver resection, compared with other organ surgeries, intraoperative bleeding control is more important due to the rich blood supply to the liver. Among the various techniques for liver blood flow blocking, the Pringle method, which temporarily blocks the whole liver blood flow at room temperature, is the most commonly used one. This method blocks the hepatoduodenal ligament to block the blood flow to the liver and reduce liver bleeding during surgery. In clinical operations, the rule is generally to block for 15-20 minutes and open for 5 minutes, and repeat this process if necessary. During the period of open blood flow to the liver, surgeons generally no longer perform liver resection to reduce bleeding on the cut surface. At this time, the overall morphology of the liver is relatively fixed, and the information obtained by scanning is also relatively stable. At this stage, the liver can be divided into the liver parenchyma section of the cut area and the liver surface on both sides. A clear contour line can be seen between the liver parenchyma section and the liver surface. The liver parenchyma section has a rough granular feel as a whole, while the liver surface is mostly a smoother surface.
[0021] Therefore, multi-angle scanning of different parts can be performed during this time period, and independent scans can be performed from the liver parenchyma section and the liver surface on both sides to obtain liver surface information of different parts. According to the surgical operation rules of clinicians, the laparoscope lens generally enters the abdominal cavity from above the navel and extends to the liver headward. Therefore, when performing multi-view scanning of different parts of the liver, it can be scanned from the tail side to the head side at a uniform speed. The laparoscope field of view is controlled to scan the target part scene to obtain the liver geometry information of that part. After repeated operations, the complete geometric information of different parts of the liver in the incision scene during the operation can be obtained.
[0022] S102, processing the left local surface information and the right local surface information by using a centrosymmetric census transform matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map.
[0023] Preferably, the processing of the left local surface information and the right local surface information by a centrally symmetric census transform matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map includes: performing pixel conversion on the left local surface information and the right local surface information using a local matching cost algorithm of a centrally symmetric census transform, and performing binary encoding during the pixel conversion to obtain a first CSCT bit vector and a second CSCT bit vector; calculating a Hamming distance between the first CSCT bit vector and the second CSCT bit vector, and calculating the matching cost of pixels of the left local surface information and the right local surface information according to the Hamming distance, and constructing a cost map based on the matching cost of the pixels; generating a densely matched disparity map according to the cost map and using a semi-global cost aggregation method in combination with multi-directional 1D paths in multiple directions in left and right views.
[0024] Furthermore, the method of generating a densely matched disparity map based on the cost map and using a semi-global cost aggregation method in combination with multi-directional 1D paths in multiple directions in the left and right views includes: approximating a global 2D smooth constraint by using a semi-global cost aggregation method in the cost map and using multi-directional 1D paths in multiple directions in the left and right views; calculating the minimum cost of each path Lr in the multi-directional 1D path using a dynamic programming method and combining the global 2D smooth constraint; obtaining a disparity estimate for each pixel based on the minimum cost of each path Lr; and generating a densely matched disparity map based on the disparity estimate for each pixel.
[0025] Specifically, in binocular stereo laparoscope, the left and right views can be superimposed to form a laparoscopic picture with a sense of depth, and the stereoscopic vision method can complete the depth calculation through the feature matching of the left and right images. The local surface information of each part of the liver is obtained during the liver blood flow opening period during the operation, and the dense matching disparity map is generated by the central symmetric census transform (CSCT) module stereo matching algorithm combined with semi-global block matching dynamic programming to achieve real-time high-precision dense reconstruction and extraction of the liver surface and liver section in the laparoscopic scene. Specifically, the anatomical geometric information of the liver surface and liver section is obtained by scanning during the liver blood flow opening period using a stereo laparoscope commonly used in clinical practice. First, feature matching depth calculation is performed, and feature extraction and matching processing are performed in the obtained left and right views to estimate the geometric relationship between the camera motion between the two views. First, key features are extracted from the left and right images, and then the extracted feature points are matched in the left and right images to find the best corresponding relationship. Through the matched feature points, the depth of the point pair in the left and right images is calculated using the camera's internal and external parameters. The relative motion parameters between the left and right images and the depth information of each feature point can be determined through feature matching depth calculation. The CSCT local matching cost algorithm is used for pixel conversion to enhance the accuracy and reliability of matching cost calculation. First, a fixed-size pixel block (window) is defined. The window extracts features from the left and right images. When matching, the algorithm compares the pixels in one window with its corresponding window (in the other view). The CSCT algorithm extracts feature information by considering the relationship between a pixel block and its symmetrical pixel block. The data described by the extracted features in the left and right views will be encoded into binary bit vectors after pixel conversion, and two CSCT bit vectors can be obtained, representing the feature information of the pixel blocks to be matched in the left and right images. Then, the matching cost of the two pixels to be matched in the left and right images is calculated by the Hamming distance of the two CSCT bit vectors and a cost volume is constructed. Further, the semi-global cost aggregation method is used in the cost volume to approximate the global 2D smoothness constraint by combining the multi-directional 1D paths in multiple directions in the left and right views. Here, the semi-global cost aggregation method first performs initialization cost aggregation, and initializes the cost volume to the original matching cost of each pixel at each disparity. Next, multiple 1D paths are defined in the image (which can be up and down, left and right, and diagonal directions, etc.). Each path will enter each pixel from a certain direction and accumulate the matching cost along the path. The cost is then aggregated along the path. On each path, starting from one edge of the image, the cost is gradually aggregated. When each pixel is reached, the accumulated cost along the path is added to the cost map of the pixel and updated. The cost of each pixel retains the accumulated cost of multiple paths to the pixel. Smoothness constraints are introduced during the cost aggregation process.That is, a penalty term is used to constrain the disparity values of adjacent pixels from changing too much (i.e., smoothing). This is achieved by defining a cost for cost accumulation, in order to ensure that the disparity between adjacent pixels does not change too much. Next, the dynamic programming method is used to calculate the minimum cost of each path Lr in the multi-directional 1D path (Lr represents the cost aggregation on the current path r). The above multi-directional 1D paths are paths in different directions defined when performing semi-global cost aggregation, which are used to calculate the minimum cost from the cost map. Multi-directional 1D paths can include multiple directions, such as: horizontal direction (left to right and right to left); vertical direction (top to bottom and bottom to top); diagonal direction (four diagonal directions). Each path is one-dimensional, and along a certain direction of the image, the image pixels are traversed one by one through this path.
[0026] Finally, after obtaining the minimum cost of the cost aggregation of each path, the disparity estimate of each pixel is obtained. Specifically, the matching cost of each pixel in the cost map corresponds to different disparity values. In the dimensions (W, H, D) of the cost map, W and H are the width and height of the image, respectively, and D is the maximum disparity value. For each path Lr, the minimum cost from the starting pixel to the current pixel is calculated by dynamic programming, and an aggregated cost map is generated. The value of each pixel in this map at different disparities reflects the best cost of matching the pixel. After combining the cost results obtained from all paths, the lowest cost is selected at the disparity of each pixel. This means adding the costs of each pixel at different disparities and reflecting the results in the final cost map. For each pixel, traverse all possible disparity values in the cost map to find the disparity with the lowest cost. Finally, a final disparity map is generated for each pixel based on the selected best disparity value. This map is the disparity estimation result for each pixel.
[0027] Among them, the global 2D smoothness constraint has the following effects on the subsequent dynamic programming method to calculate the cost aggregation: 1. Reduce the possibility of mismatching: The smoothness constraint reduces the possibility of disparity mismatching caused by noise or changes in regional edges. By controlling the disparity consistency between adjacent pixels, a more correct global structure can be obtained. 2. Improve matching consistency: When the dynamic programming method is operated, the previous global 2D smoothness constraint helps to ensure that the global characteristics of adjacent pixels are considered when calculating the cost. This consistency helps to ensure that the path gives priority to those costs that can form a natural transition when applying dynamic programming to find the optimal path. 3. Optimize cost aggregation calculation: The introduced smoothness constraint information enables dynamic programming to effectively select dynamic programming paths during the cost aggregation process, reducing the complexity of the calculation process, forcing it to select disparities that better match adjacent pixels, and optimizing the final cost output. 4. Promote global information integration: By integrating the information of multiple paths into the final cost aggregation, the global 2D smoothness constraint ensures that the results of dynamic programming calculations are more reliable, which directly affects the accuracy of the disparity map.
[0028] After completing the disparity estimation of each pixel, the disparity map is calculated. According to the principle of triangulation reconstruction, the calibrated camera parameters are used to calculate the three-dimensional information of each pixel in the image. Among them, the process of calculating the view disparity is: first create a disparity map array of the same size as the input image, usually initialized with zero or other marks. Then traverse each pixel and fill the previously calculated best disparity value into the disparity map. In order to improve the visual effect and the quality of the depth map, the generated disparity map can be further processed. The processing methods include 1. Smoothing, that is, using filtering techniques (such as median filtering or bilateral filtering) to eliminate noise, so that the disparity map is smoother; 2. Hole filling: For disparities marked as invalid, interpolation methods or filling algorithms (such as nearest neighbor interpolation or Laplace smoothing) can be used to fill the missing depth information.
[0029] S103, using the disparity gradient information pixel-by-pixel connectivity segmentation method to extract and process the edges of the disparity map to obtain an edge extraction map, using a GPU-based segmentation and merging connected domain labeling method to annotate and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and using the segmented disparity map to perform three-dimensional reconstruction on the extracted liver tissue area to obtain a local point cloud of the liver.
[0030] Preferably, the method of pixel-by-pixel connectivity segmentation using disparity gradient information is used to extract and process the edges of the disparity map to obtain an edge extraction map, including: calculating the three-dimensional information of each pixel in the disparity map using calibrated camera parameters according to the triangulation reconstruction principle; performing edge detection on the three-dimensional information of each pixel using the Canny edge detection algorithm to obtain invalid edges; and performing degradation processing on the invalid edges using the pixel-by-pixel connectivity segmentation method using disparity gradient information to obtain the edge extraction map.
[0031] Preferably, the GPU-based segmentation and merging connected domain labeling method is used to label and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and the extracted liver tissue area is three-dimensionally reconstructed using the segmented disparity map to obtain the liver local point cloud, including: using the GPU-based partitioning and merging connected area labeling method to label and extract the connected areas; creating a partition path table with all non-edge points in the edge extraction map to obtain a partition map, further constructing a coordinate lookup table of points based on the partition map, and merging the areas of the partition map through chained update of values to perform self-iteration of the lookup table; using the coordinate lookup table to update the partition map to obtain a new label map; extracting the liver tissue area in the laparoscopic image in the disparity map by marking the position of the label value; using the segmented disparity map to perform three-dimensional reconstruction of the extracted target point cloud to complete the surface reconstruction of the liver local point cloud under each laparoscope field of view.
[0032] Specifically, although CSCT-based stereo matching improves the computational efficiency of three-dimensional information of liver surface and cross-section in laparoscopic images, the generated disparity map has blurred boundaries, which increases the difficulty of segmenting the liver from the disparity map. Therefore, a GPU-based pixel-by-pixel connectivity segmentation method using disparity gradient information is proposed here. After extracting the edge of the disparity map, the invalid edge is degraded, and then the segmentation and merging connected domain labeling method is used to complete the liver segmentation. In this process, the improved Canny edge detection algorithm is used for edge detection and then edge degradation is performed to remove false edges while avoiding edge damage, and finally the edge extraction map is obtained. Subsequently, the GPU-based partition merging connected region labeling method is used to label and extract the connected region. A partition path table is created with all non-edge points in the edge extraction map to obtain a partition map. Specifically, using the partition path table, a "partition map" can be constructed, which indicates which non-edge points belong to the same region. This is achieved by the following steps: First, the mapping value of each non-edge point is initialized, that is, its own index. Then, the partition path table is traversed, and for each connected non-edge point, the corresponding mapping value is updated to the same region identifier by finding the connection relationship recorded in its path table. Union-Find is used for efficient region merging to ensure that all points in the same connected region have the same mapping value.
[0033] Further, we build a coordinate lookup table of the points based on the partition map, and merge the partition map regions more quickly through chained value updates to perform self-iteration of the lookup table. Finally, we use the lookup table to merge the partitions. After updating the partition map, we get a new label map by marking the position of the label value. The position of the label value refers to the label obtained by marking and extracting the connected regions in the previous step. These labels are used to identify each connected region, so as to distinguish different regions in subsequent processing.
[0034] The liver tissue area in the laparoscopic image is extracted from the disparity map, and the extracted target point cloud is 3D reconstructed using the segmented disparity map to complete the reconstruction of the local surface of the liver under each laparoscope field of view. Specifically, the relationship between "extracting liver tissue area from disparity map" and "partitioned connected region annotation extraction" is direct, and the former depends on the result of the latter. Connected region annotation extraction → Generate label mapping of connected regions. Label mapping → Used for subsequent processing of disparity map. Extract liver tissue area from disparity map → Extract the pixels of the liver area from the disparity map according to the label mapping. Based on the results of "partitioned connected region annotation extraction", the necessary identification and basis are provided for the subsequent "extracting liver tissue area from disparity map". Only through effective connected region annotation can the relevant target area, such as liver tissue, be accurately identified and extracted in the disparity map. This coherent process makes the entire image segmentation and analysis process more accurate and efficient.
[0035] The extracted target point cloud refers to the set of liver tissue points in three-dimensional space identified and extracted from the disparity map. These points represent the three-dimensional coordinates of the liver tissue surface at a specific viewing angle.
[0036] By processing the disparity map (including edge extraction, connected region annotation, etc.), the relevant tissue regions of the liver are identified and extracted. These regions include various parts of the liver. The local liver surface refers to a three-dimensional surface model further constructed from the extracted liver tissue regions. This process is based on the extracted target point cloud data and reflects the true shape and structure of the liver. The extracted tissue regions provide the basis for generating the local liver surface. These tissue regions can reconstruct the detailed surface of the liver in three-dimensional space by combining depth information and point cloud data.
[0037] S104, stitching and fusing the local point clouds of the liver using a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver.
[0038] Preferably, the stitching and fusing of each liver local point cloud by a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver includes: matching and stitching each liver local point cloud by an adaptive point cloud stitching algorithm based on geometric feature registration and based on image feature registration; in the matching and stitching process, after alignment and registration, a random sample consistency algorithm is used to remove mismatched feature points, and the removed liver local point clouds are stitched into an overall point cloud structure to obtain the global surface reconstruction point cloud.
[0039] Specifically, the above method can be used to obtain local three-dimensional point clouds of the liver surface and liver section during the period of open hepatic blood flow. In order to avoid local minima when the small-area surface point cloud during surgery is aligned with the large-area surface point cloud of the preoperative model during subsequent image superposition for intraoperative navigation, point cloud matching and stitching are performed here using adaptive point cloud stitching algorithms based on geometric feature alignment and image feature alignment. After alignment and registration, the random sample consistency (RANSAC) algorithm is used to remove mismatched feature points, and the local point cloud structures of the liver surface and liver section are converted into an overall point cloud structure, so as to construct a global complete three-dimensional surface reconstruction point cloud of the liver containing anatomical information of the liver section during the period of open liver blood flow.
[0040] First, the above segmented laparoscopic image sequence is represented as I1, I2, …, In, where In represents the current image frame. The laparoscopic image sequence refers to the original video or image frame sequence used to generate and reconstruct these point clouds. These image sequences contain image frames obtained by laparoscope, which are processed (such as edge detection, connected region annotation, etc.) to extract and segment the liver tissue area of interest. Each frame (I1, I2, …, In) represents a laparoscopic image acquired at a different time point. These image frames are used in the subsequent reconstruction process to help identify the surface and features of different positions of the liver, thereby providing a principle basis for the generation of three-dimensional point clouds. The reconstructed surface point clouds corresponding to the laparoscopic image sequence are recorded as K1, K2, …, Kn. The two local point clouds reconstructed from adjacent images (such as from I1 to I2) are first spliced and fused. In this process, the speeded up robust features (SURF) between I1 and I2 are detected and matched, and the random sample consensus (RANSAC) algorithm is used to remove the mismatched feature points. The 3D correspondence of the matched 2D features is calculated from the disparity map, and then the point-based registration method is used to obtain the transformation from K1 to K2, which is recorded as T12. Then K1 is transformed into the coordinate system of K2 through K1*T12. The transformation points that fall in the non-overlapping area of the K2 segmented disparity map are selected. Among them, the transformation points in the non-overlapping area are mainly used in the process of point cloud stitching and registration to ensure that the subsequent processing and analysis are more accurate and efficient. Specifically, it is reflected in: 1. Point cloud stitching transmission: The transformation points in the non-overlapping area provide the basis for ensuring that the liver point cloud data in the current frame is correctly aligned with the previous frames (such as K1 and K2). This transformation ensures that the process from K1 to K2 is accurate and can effectively fuse the point cloud data captured at different times. 2. False match removal: In the process of point cloud stitching, the transformation points in the non-overlapping area help to effectively remove the feature points that are mismatched through the random sample consensus (RANSAC) algorithm. This means that the calculated transformation matrix and its corresponding point cloud will not be disturbed by noisy data or mismatched data in the overlapping area, thereby improving the accuracy of stitching. 3. Complete 3D model construction: By selecting only the transformation points in the non-overlapping area, the overall structure of each local point cloud can be clearly constructed in different image frames. This plays a vital role in the final global 3D reconstruction, allowing all local point clouds to be combined in a seamless manner. 4. Optimization processing: By processing the transformation points in the non-overlapping area, the noise in the local stitching can be reduced, providing a cleaner and more accurate point cloud for meshing and downsampling, thereby further optimizing the final point cloud quality.
[0041] Similarly, the chain rule is used to initialize the transformation matrix T1n, ..., Tn-1n. Among them, T1n, ..., Tn-1n expresses the recursive relationship of the transformation matrix. T12 represents the transformation relationship from point cloud K1 to K2. And T1n, ..., Tn-1n represents the transformation relationship from K1 to Kn. These transformation matrices are used to describe the mapping relationship between continuous local point clouds.
[0042] Then the global bundle adjustment algorithm is used to eliminate the accumulated error. The elimination of accumulated error is achieved by the Global Bundle Adjustment method. Global bundle adjustment is an optimization algorithm that adjusts the camera parameters and point cloud positions by minimizing the global error to obtain a more accurate reconstruction result. First, all point clouds and camera transformations are regarded as optimization variables and an error function is constructed. This function calculates the reprojection error of the point cloud projected onto the image. Then, all transformation matrices T1n, …, Tn−1n are globally adjusted using the nonlinear least squares method to minimize the reprojection error. By jointly optimizing all parameters, the layer by layer error accumulation can be effectively eliminated. This improves the geometric consistency of the entire model by adjusting each transformation matrix, and ultimately achieves accurate registration of the entire point cloud. Global bundle adjustment uses the paired information of the entire point cloud and image as constraints, which can correct the accumulated errors caused by feature matching errors or improper point cloud stitching. The feature matching results between previous adjacent images provide basic data for subsequent adjustments. In global bundle adjustment, the results of these feature matching are used as input to help determine the optimization target. In addition, after initializing the transformation matrix, the global bundle adjustment process will take these initial values into account and continuously provide feedback corrections during the global optimization process to improve the accuracy of the final 3D reconstruction.
[0043] Finally, all non-overlapping points are converted to the current frame In. Specifically, the laparoscopic image sequence I1, I2, …, In refers to the original image frames used for feature matching and obtaining the transformation matrix. The key features of each frame are extracted for subsequent point cloud generation and stitching. In the process of generating point clouds or performing transformations, the features extracted from these laparoscopic images are used for feature matching, and these matched feature points are used to calculate the transformation matrix between the two frames. The current frame (such as the feature points extracted in I2) is selected, and then compared and matched with the feature points extracted in the previous frame (such as I1). The transformation points of the non-overlapping areas are selected from the matching to ensure that the calculated transformation is not interfered by the overlapping areas, and is based on the results of matching these image features.
[0044] Thus, the reconstruction point clouds of the local surfaces of the liver are spliced and fused into the reconstruction point cloud K of the liver's overall surface, providing a technical basis for subsequent image superposition and navigation registration. Specifically, in the previous step, when all non-overlapping points are converted to the current frame, the current frame refers to the image frame used to generate the reconstruction point cloud K of the liver's overall surface. In the algorithm, these non-overlapping points are transformed into the coordinate system of the current frame using the calculated transformation matrix. This means that the positions of these points will be described from the perspective of the current frame, so that they can be effectively incorporated into the new three-dimensional model. The current frame (for example, the nth frame) contains the image data just captured during the operation, and on this basis, the reconstruction point cloud K of the overall surface of the liver is generated after calculation using non-overlapping points and associated transformations. K is obtained by combining the previous points (after transformation) with the current frame data to form a complete three-dimensional model representing the overall surface structure of the liver.
[0045] In addition, K is subjected to a grid average downsampling method using a box grid filter to reduce noise, that is, K is gridded and then the average value is calculated in each grid cell, thereby downsampling the point cloud and further reducing noise to optimize the stitching effect. Specifically, the main purpose of downsampling is to reduce the number of points in the point cloud while retaining the original shape and feature information as much as possible. The method for downsampling is to average the points in the grid cells. First, grid division is performed to divide the point cloud into multiple grid cells. Each grid cell represents a certain volume in space. Then the average value is calculated, and in each grid cell, the average position of all points is calculated. This involves finding the coordinates of all points in each grid cell, and then calculating the average of these coordinates to obtain the center point of the grid cell. Finally, the sampling output is used, and the average position of each grid cell is used as the corresponding point in the downsampled point cloud. This means that for each grid cell, only one point (i.e., the average value of the points in the cell) is retained, thereby forming a new, smaller point cloud.
[0046] The relationship between downsampling and reducing point cloud noise is mainly reflected in the following aspects: 1. Reducing the number of points and filtering errors: Through downsampling, especially the averaging process, fewer points will remove random noise and mismatches that may exist in the data set. 2. Smoothing effect: After downsampling, the new point cloud shows a smoother shape and eliminates small-scale high-frequency noise. 3. Improving processing efficiency: Reducing the number of data points makes subsequent processing (such as visualization, analysis, and modeling) more efficient.
[0047] In an application scenario, the processing flow of a laparoscopic liver resurfacing method can be found in Figure 2 shown.
[0048] In response to the technical pain point of real-time surface reconstruction in augmented reality navigation under limited field of view during laparoscopic liver resection, the present invention combines the clinical law of blood flow opening period in the hepatic blood flow control technique, uses multi-view scanning of different parts to obtain geometric information of the intraoperative scene, generates a dense matching disparity map through CSCT stereo matching algorithm combined with semi-global dynamic programming, and then uses the disparity gradient information pixel-by-pixel connectivity segmentation method to extract and process the edges of the disparity map, and then uses the segmentation and merging connected domain marking method to complete liver segmentation, obtain local surface reconstruction point clouds of various parts, and finally use the point cloud stitching algorithm to splice and fuse the local surface reconstruction point clouds to generate the liver overall surface reconstruction point cloud, which solves the problem of real-time overall surface reconstruction of the liver under limited field of view of laparoscopy during surgery, and provides a technical basis for subsequent image registration and overlay navigation.
[0049] The present invention provides a method for liver surface reconstruction in laparoscopic surgery. The method utilizes geometric information in each local field of view under the laparoscope to first perform surface reconstruction respectively to generate corresponding local surface reconstruction point clouds, and then utilizes a point cloud stitching algorithm to perform stitching and fusion to generate real-time liver overall surface reconstruction during surgery. The method conforms to the operating rules of clinical practice, realizes real-time and efficient completion of liver surface reconstruction in the intraoperative scene without affecting the implementation of the surgery, and provides strong technical support for real-time augmented reality navigation of laparoscopic liver resection.
[0050] The present invention has the following beneficial effects: The intraoperative multi-view scanning of different parts to obtain liver geometric information for real-time surface reconstruction proposed in the present invention combines the clinical operation habits of liver surgery, uses the open period of hepatic blood flow to capture multi-view information of the intraoperative scene and perform real-time surface reconstruction, and then splices them to complete the overall liver surface reconstruction. While following the surgical operation rules and not affecting the safety of the operation, it fully combines the characteristics of laparoscopic image acquisition, breaks the whole into parts, ensures the accuracy and real-time of information acquisition and surface reconstruction of various parts of the liver, and then splices and merges the surface reconstruction results of various parts, thereby improving the effectiveness and real-time of the overall surface reconstruction of the liver during surgery.
[0051] The present invention proposes to perform surface reconstruction during the open period of intraoperative hepatic blood flow, which complements the collection and surface reconstruction of complex geometric information of the liver section and liver surface after intraoperative liver parenchyma incision, and achieves a surface reconstruction effect that is better than existing solutions and closer to clinical practical applications, providing a new research idea for the development of real-time navigation technology for liver resection surgery.
[0052] The present invention also provides a liver surface reconstruction device for laparoscopic surgery. Figure 3 As shown, a liver surface reconstruction device for laparoscopic surgery includes an acquisition module 301 , a generation module 302 , a first reconstruction module 303 and a second reconstruction module 304 .
[0053] An acquisition module 301 is used to acquire left local surface information and right local surface information of the liver during the liver blood flow opening period in laparoscopic surgery; A generating module 302, configured to process the left local surface information and the right local surface information by using a centrosymmetric census transform matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map; The first reconstruction module 303 is used to extract and process the edge of the disparity map by using the disparity gradient information pixel-by-pixel connectivity segmentation method to obtain an edge extraction map, and to label and extract the connected areas in the edge extraction map by using the GPU-based segmentation and merging connected domain labeling method to obtain the liver tissue area in the laparoscopic image, and to perform three-dimensional reconstruction on the extracted liver tissue area by using the segmented disparity map to obtain a liver local point cloud; The second reconstruction module 304 is used to stitch and fuse the local point clouds of the liver through a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver.
[0054] For the specific definition of a liver surface reconstruction device for laparoscopic surgery, please refer to the definition of a liver surface reconstruction method for laparoscopic surgery above, which will not be repeated here. Each module in the above-mentioned liver surface reconstruction device for laparoscopic surgery can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0055] A computer-readable storage medium is provided in an embodiment of the present invention, and an application is stored on the computer-readable storage medium. When the program is executed by a processor, a method for liver surface reconstruction in laparoscopic surgery of any one of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0056] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute a method for liver surface reconstruction in laparoscopic surgery according to any one of the above embodiments.
[0057] also, Figure 4 It is a schematic diagram of the structural composition of a computer device in an embodiment of the present invention.
[0058] The embodiment of the present invention also provides a computer device, such as Figure 4 The computer device includes a processor 402, a memory 403, an input unit 404, a display unit 405 and other devices. Those skilled in the art will understand that Figure 4 The device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 403 can be used to store the application 401 and various functional modules, and the processor 402 runs the application 401 stored in the memory 403, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only used as an example and not as a limitation.
[0059] The input unit 404 is used to receive the input of signals and keywords input by the user. The input unit 404 may include a touch panel and other input devices. The touch panel can collect the user's touch operations on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a play control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 405 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 405 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 402 is the control center of the terminal device, which uses various interfaces and lines to connect various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 403, and calling data stored in the memory.
[0060] As an embodiment, the computer device includes: one or more processors 402, a memory 403, and one or more applications 401, wherein the one or more applications 401 are stored in the memory 403 and are configured to be executed by the one or more processors 402, and the one or more applications 401 are configured to execute a laparoscopic liver surface reconstruction method in any of the above-mentioned embodiments.
[0061] In addition, the above describes in detail a method, device, computer equipment and storage medium for liver surface reconstruction in laparoscopic surgery provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for liver surface reconstruction in laparoscopic surgery, characterized in that: include: Acquiring left local surface information and right local surface information of the liver during the liver blood flow opening period during laparoscopic surgery; The left local surface information and the right local surface information are processed by a central symmetric census transform matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map; The disparity gradient information pixel-by-pixel connectivity segmentation method is used to extract and process the edge of the disparity map to obtain an edge extraction map, and a GPU-based segmentation and merging connected domain labeling method is used to mark and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and the segmented disparity map is used to perform three-dimensional reconstruction on the extracted liver tissue area to obtain a local point cloud of the liver; The local point clouds of the liver are stitched and fused using a point cloud stitching algorithm to obtain the global surface reconstruction point cloud of the liver.
2. The method according to claim 1, characterized in that: The method of obtaining the left local surface information and the right local surface information of the liver during the liver blood flow opening period during the laparoscopic surgery includes: During the period of open liver blood flow in laparoscopic surgery, the liver section and the liver surface on both sides are scanned independently from multiple perspectives by laparoscope to obtain the left and right local surface information of the liver.
3. The method according to claim 1, characterized in that: The processing of the left local surface information and the right local surface information by using a central symmetric census transformation matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map includes: Using a local matching cost algorithm of a centrosymmetric census transformation to perform pixel conversion on the left local surface information and the right local surface information, and performing binary encoding during the pixel conversion to obtain a first CSCT bit vector and a second CSCT bit vector; Calculating the Hamming distance between the first CSCT bit vector and the second CSCT bit vector, calculating the matching costs of pixels of the left local surface information and the right local surface information according to the Hamming distance, and constructing a cost map based on the matching costs of the pixels; A densely matched disparity map is generated based on the cost map and a semi-global cost aggregation method is used to combine multi-directional 1D paths in multiple directions in the left and right views.
4. The method according to claim 3, characterized in that The method of generating a densely matched disparity map based on the cost map and combining multi-directional 1D paths in multiple directions in the left and right views by using a semi-global cost aggregation method includes: In the cost map, a semi-global cost aggregation method is used to combine multi-directional 1D paths in multiple directions in the left and right views to approximate the global 2D smoothness constraint; The dynamic programming method is used to calculate the cost aggregation and the minimum cost of each path Lr in the multi-directional 1D path is calculated in combination with the global 2D smoothness constraint; Obtaining a disparity estimate for each pixel according to the minimum cost of each path Lr; A densely matched disparity map is generated according to the disparity estimation of each pixel.
5. The method according to claim 1, characterized in that The pixel-by-pixel connectivity segmentation method using disparity gradient information is used to extract and process the edge of the disparity map to obtain an edge extraction map, including: According to the triangulation reconstruction principle, the disparity map is calculated using the calibrated camera parameters. The three-dimensional information of each pixel in; Use the Canny edge detection algorithm to perform edge detection on the three-dimensional information of each pixel to obtain invalid edges; The invalid edge is degraded by using a disparity gradient information pixel-by-pixel connectivity segmentation method to obtain the edge extraction map.
6. The method according to claim 1, characterized in that The GPU-based segmentation and merging connected domain labeling method is used to mark and extract the connected areas in the edge extraction map to obtain the liver tissue area in the laparoscopic image, and the segmented disparity map is used to perform three-dimensional reconstruction on the extracted liver tissue area to obtain a liver local point cloud, including: Using a GPU-based partition-merging connected region labeling method to label and extract the connected regions; Creating a partition path table with all non-edge points in the edge extraction graph, obtaining a partition map, further constructing a coordinate lookup table of points based on the partition map, and merging the regions of the partition map through chained update of values to perform self-iteration of the lookup table; Using the coordinate lookup table to update the partition mapping, a new label mapping is obtained; Extracting the liver tissue region in the laparoscopic image in the disparity map by marking the position of the label value; The segmented disparity map is used to perform three-dimensional reconstruction of the extracted target point cloud, and the surface reconstruction of the local point cloud of the liver under each laparoscope field of view is completed.
7. The method according to claim 1, characterized in that The method of stitching and fusing the local point clouds of the liver by a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver includes: The local point clouds of each liver are matched and spliced using an adaptive point cloud stitching algorithm based on geometric feature registration and image feature registration; In the matching and stitching process, after alignment and registration, a random sample consistency algorithm is used to remove mismatched feature points, and the removed liver local point clouds are stitched into an overall point cloud structure to obtain the global surface reconstruction point cloud.
8. A liver surface reconstruction device for laparoscopic surgery, characterized in that: include: An acquisition module, used for acquiring left local surface information and right local surface information of the liver during the liver blood flow opening period in laparoscopic surgery; A generation module, used for processing the left local surface information and the right local surface information by using a central symmetric census transformation matching algorithm combined with a semi-global cost aggregation method to generate a densely matched disparity map; A first reconstruction module is used to extract and process the edge of the disparity map by using a pixel-by-pixel connectivity segmentation method based on disparity gradient information to obtain an edge extraction map, and to label and extract the connected areas in the edge extraction map by using a GPU-based segmentation and merging connected domain labeling method to obtain a liver tissue area in a laparoscopic image, and to perform three-dimensional reconstruction on the extracted liver tissue area by using the segmented disparity map to obtain a liver local point cloud; The second reconstruction module is used to stitch and fuse the local point clouds of the liver through a point cloud stitching algorithm to obtain a global surface reconstruction point cloud of the liver.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Three-dimensional imaging scanning system based on combined lens group and point cloud registration method
CN112085793A
Augmented reality fusion method in thoracoscope lung tumor resection surgical navigation
CN116421313A
Cited By
Artificial intelligence algorithm-based laparoscopic liver resection operation registration method and system
CN120765708A
Laparoscopic liver resection surgery registration method and system based on artificial intelligence algorithm
CN120765708B
