CN117437350A - Three-dimensional reconstruction system and method for preoperative planning - Google Patents
Three-dimensional reconstruction system and method for preoperative planning Download PDFInfo
- Publication number
- CN117437350A CN117437350A CN202311173175.8A CN202311173175A CN117437350A CN 117437350 A CN117437350 A CN 117437350A CN 202311173175 A CN202311173175 A CN 202311173175A CN 117437350 A CN117437350 A CN 117437350A
- Authority
- CN
- China
- Prior art keywords
- image
- dimensional reconstruction
- value
- dimensional
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000007246 mechanism Effects 0.000 claims abstract description 37
- 238000004220 aggregation Methods 0.000 claims abstract description 16
- 230000002776 aggregation Effects 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims abstract description 15
- 238000003709 image segmentation Methods 0.000 claims abstract description 12
- 238000005457 optimization Methods 0.000 claims abstract description 9
- 238000012800 visualization Methods 0.000 claims abstract description 7
- 238000004364 calculation method Methods 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 13
- 238000003384 imaging method Methods 0.000 claims description 11
- 230000000007 visual effect Effects 0.000 claims description 11
- 238000003062 neural network model Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 6
- 238000003860 storage Methods 0.000 claims description 5
- 238000005481 NMR spectroscopy Methods 0.000 claims description 3
- 235000007164 Oryza sativa Nutrition 0.000 claims description 3
- 235000009566 rice Nutrition 0.000 claims description 3
- 240000007594 Oryza sativa Species 0.000 claims 1
- 230000011218 segmentation Effects 0.000 abstract description 9
- 238000004422 calculation algorithm Methods 0.000 description 15
- 230000000875 corresponding effect Effects 0.000 description 6
- 238000005520 cutting process Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 210000004185 liver Anatomy 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 101100269850 Caenorhabditis elegans mask-1 gene Proteins 0.000 description 2
- 241000209094 Oryza Species 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 210000004204 blood vessel Anatomy 0.000 description 2
- 238000005266 casting Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 230000002596 correlated effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000012952 Resampling Methods 0.000 description 1
- 210000003484 anatomy Anatomy 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000004195 computer-aided diagnosis Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000002059 diagnostic imaging Methods 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000003902 lesion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/41—Medical
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- Computer Graphics (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Quality & Reliability (AREA)
- Image Processing (AREA)
- Apparatus For Radiation Diagnosis (AREA)
Abstract
The invention discloses a three-dimensional reconstruction system and a three-dimensional reconstruction method for preoperative planning, which belong to the technical field of medical images, and specifically comprise the following steps: collecting images of focus positions of patients, carrying out graying and denoising treatment on the images, extracting features of the images subjected to the graying and denoising treatment by utilizing an image segmentation strategy, segmenting the images of the focus positions subjected to the treatment into a plurality of parts by combining an attention mechanism, solving matching cost of segmented image slices by utilizing a three-dimensional reconstruction strategy, carrying out fitting reconstruction on the segmented image slices by means of cost aggregation and parallax optimization, displaying focus areas of the patients in a three-dimensional visualization mode, processing edges when the images are segmented, and carrying out matching by utilizing edge pixels when the segmented image slices are matched, so that segmentation precision and matching precision are improved, three-dimensional images of the focus positions of the patients after the three-dimensional reconstruction are accurately displayed, surgical success rate is improved, and surgical risks are greatly reduced.
Description
Technical Field
The invention belongs to the technical field of medical images, and particularly relates to a three-dimensional reconstruction system and method for preoperative planning.
Background
In recent years, as patients increase, medical image processing technology as a key auxiliary diagnosis and treatment means has been attracting more attention, and the design of segmentation and reconstruction methods has been a focus of research in the fields of medical image processing and computer-aided diagnosis, which are focused and extremely active. Before operation, three-dimensional imaging is carried out on the focus position of a patient, so that the method has important significance for planning and guiding a preoperative doctor, the success probability of the operation can be greatly improved, and the risk in the operation is reduced. However, in the imaging process, noise is often superimposed and appears, so that the quality of the acquired image is degraded, the segmentation precision is limited, the existing automatic or semi-automatic segmentation method is difficult to accurately predict the boundary of the region of interest, a nonlinear curved surface with complex patient focus tissues is difficult to present in reconstruction, and on the aspect of matching of cut image slices, the matching precision of the cut image slices is limited due to complex patient focus tissues, so that the three-dimensional image of the focus position of the patient cannot be accurately displayed.
Chinese patent publication No. CN107895364B, for example, discloses a three-dimensional reconstruction system for virtual preoperative planning. The scheme includes preprocessing CT or MRI image, image segmentation of the denoised, smoothed and reinforced image, and cavity processing introduced after segmentation to obtain complete image without information. And then the segmented complete image is subjected to three-dimensional reconstruction, 9 types of improved MC algorithms are added on the basis of 15 basic topological configurations of the original algorithm, the defect of connection problem of the original algorithm is overcome, the fitted curved surface is more complete and is not easy to generate a cavity, and finally smooth treatment is introduced, so that the fitted curved surface is smooth and flat, and the reconstructed model can be directly used for the following virtual operation cutting and collision detection application.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a three-dimensional reconstruction system and a three-dimensional reconstruction method for preoperative planning, the system has comprehensive functions, images of focus positions of patients are acquired, the images are subjected to graying and denoising treatment, the characteristics of the images after the graying and denoising treatment are extracted by utilizing an image segmentation strategy, the images of the focus positions after the treatment are segmented into a plurality of parts by combining an attention mechanism, the matching cost of segmented image slices is solved by utilizing the three-dimensional reconstruction strategy, the segmented image slices are subjected to fitting reconstruction by cost aggregation and parallax optimization, focus areas of the patients are displayed in a three-dimensional visualization mode, edges of the segmented image are processed, and when the segmented image slices are matched, the edge pixels are utilized for matching, so that the segmentation precision and the matching precision are improved, the three-dimensional images of the focus positions of the patients after the three-dimensional reconstruction are accurately displayed, and the planning precision is improved when the planning is performed before the operation, the success rate of the operation is improved, and the operation risk is greatly reduced.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a three-dimensional reconstruction method for preoperative planning, comprising the specific steps of:
collecting an image of the focus position of a patient, and carrying out graying and denoising treatment on the image;
extracting the characteristics of the processed image by utilizing an image segmentation strategy, and segmenting the image of the processed focus position into a plurality of parts by combining an attention mechanism;
and (3) solving the matching of the segmented image slices by utilizing a three-dimensional reconstruction strategy, and carrying out fitting reconstruction by cost aggregation and parallax optimization to display the focus area of the patient in a three-dimensional visualization mode.
Specifically, the specific method for the image segmentation strategy comprises the following steps:
step S101: placing the processed image into a trained neural network model, splicing shallow layer features and high layer features in the neural network model, performing convolution operation to obtain a gray value feature value, and setting the extracted gray value feature value as Query;
step S102: combining an attention mechanism, carrying out weighted calculation on the extracted gray value feature Query, capturing the edge gray value feature of the whole image, and obtaining the whole gray value feature of the image;
step S103: counting the number of each gray pixel in the image subjected to gray and denoising treatment, and settingFor the number of pixels with gray level i in the image after the graying and denoising treatment, the probability of gray level i in the image after the graying and denoising treatment is +.>And->Setting the gray value of the whole image after the graying and denoising treatment as +.>The gray threshold is +.>The probability of a pixel being divided into A is +.>The average gray scale of the pixels assigned to A is +.>The probability of a pixel being split into B is +.>The average gray scale of the pixel allocated to B is;
Step S104: the maximized inter-class variance of the pixel is calculated as:
;
wherein,,/>,/>,,/>;
and (3) carrying out pixel classification according to the calculated variance, and dividing the image of the focus position by combining the gray value characteristic value and the pixel classification.
Specifically, the three-dimensional reconstruction strategy specifically comprises the following steps:
step S201: setting the segmented image slicesAnd arbitrary image slice +.>Is P and Q, < >>,/>Wherein->Representing slice->I-th edge pixel point, of (a) a pixel of (b)>Representing slice->The j-th edge pixel point of the pixel is respectively gray value +>And->,,/>Calculating the matching initial cost of the segmented image slices, wherein a cost value calculation formula is as follows:
;
wherein,representing a cost value control parameter,/-, for>Representing an absolute value function, e representing the base of the natural logarithm;
step S202: cost aggregation, setting gray level difference threshold asThe pixel distance difference threshold is +.>Slice->And->Is +.>The principle formula of pixel aggregation is:
;
wherein,representing pixel dot +.>And pixel dot->Is a pixel distance of (2);
step S203: according to the cost value, calculating an aggregated cost value, wherein a calculation formula is as follows:
;
wherein w represents a sliceAnd->W-th edge pixel point of (a), a->Representing slice->W-th edge pixel point of (a), a->Representing slice->W-th edge pixel point in (a);
step S204: according to the steps S201-S203, calculating the segmented image sliceThe aggregate cost value of the four edges of the upper, lower, left and right sides and the parallax value are +.>Selecting the average value with the minimum four-side cost value, namelyWherein->Representing a segmented image slice->Polymeric minimum cost value of upper edge, < >>Representing a segmented image slice->The aggregate minimum cost value of the lower edge,representing a segmented image slice->Polymeric minimum cost value of left edge, < ->Representing segmented image slicesAggregate minimum cost value for right side edge;
step S205: according to the parallax valueAnd selecting the matched segmented image slices, and performing three-dimensional reconstruction to display the focus area of the patient in a three-dimensional visual mode.
Specifically, the graying and denoising processes specifically include graying a color image and processing Gaussian noise and rice noise in an imaging process.
Specifically, the neural network model in step S101 is a Densenet network.
Specifically, the attention mechanism in step S102 includes: channel attention mechanisms and spatial attention mechanisms.
Specifically, the channel attention mechanism is used for weighting operation in the channel domain of the feature map.
Specifically, the spatial attention mechanism is used for converting various deformation data in space and automatically capturing regional characteristics.
Specifically, the three-dimensional reconstruction in step S205 performs three-dimensional reconstruction on the matched image slices by using cubic convolution interpolation.
A three-dimensional reconstruction system for preoperative planning, comprising:
the image acquisition equipment is used for shooting focus position images of a patient;
the image processing unit is used for carrying out graying and denoising treatment on the focus position image of the patient, extracting the characteristics of the image subjected to the graying and denoising treatment by utilizing an image segmentation strategy, segmenting the image of the focus position after the treatment into a plurality of parts by combining an attention mechanism, solving the matching of segmented image slices by utilizing a three-dimensional reconstruction strategy, and carrying out fitting reconstruction by cost aggregation and parallax optimization so as to enable the focus region of the patient to be displayed in a three-dimensional visual mode;
the three-dimensional imaging device is used for displaying the three-dimensional reconstructed focus position image of the patient in a three-dimensional visual form.
The image acquisition apparatus includes: nuclear magnetic resonance equipment, CT equipment and PET equipment.
An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of a three-dimensional reconstruction method for preoperative planning.
A computer-readable storage medium having stored thereon computer instructions which, when executed, perform the steps of a three-dimensional reconstruction method for preoperative planning.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention optimizes and improves the architecture, operation steps and flow of the three-dimensional reconstruction system for preoperative planning, and the system has the advantages of simple flow, low investment and operation cost and low production and working cost, and improves the three-dimensional reconstruction precision.
2. The invention provides a three-dimensional reconstruction method for preoperative planning, which is used for collecting images of focus positions of a patient, carrying out graying and denoising treatment on the images, extracting features of the images subjected to the graying and denoising treatment by utilizing an image segmentation strategy, dividing the images of the focus positions after treatment into a plurality of parts by combining an attention mechanism, solving matching cost of segmented image slices by utilizing a three-dimensional reconstruction strategy, carrying out fitting reconstruction by cost aggregation and parallax optimization, displaying focus areas of the patient in a three-dimensional visualization mode, processing edges when the images are segmented, and carrying out matching by utilizing edge pixels when the segmented image slices are matched, so that the segmentation precision and the matching precision are improved, the three-dimensional images of the focus positions of the patient after three-dimensional reconstruction are accurately displayed, and the planning precision is improved, the surgical success rate is improved and the surgical risk is greatly reduced when the images are planned before the surgery.
3. According to the three-dimensional reconstruction method, a three-dimensional reconstruction strategy is provided, matching cost among edges of the images is calculated, cost aggregation is carried out, edge cost of four sides of the images is calculated, the average value of minimum values of the edge cost of the four sides of the images is taken, the influence of noise on the edges is effectively reduced through edge processing, the matching accuracy is greatly improved, and then the three-dimensional reconstruction is carried out, so that the focus position of a patient is accurately displayed, and the three-dimensional image under a complex environment is displayed.
Drawings
FIG. 1 is a flow chart of a three-dimensional reconstruction method for preoperative planning of the present invention;
FIG. 2 is a graph of edge and edge matching of a segmented image slice according to the present invention;
fig. 3 is a diagram of a three-dimensional reconstruction system architecture for preoperative planning in accordance with the present invention.
Fig. 4 is an electronic device diagram of the three-dimensional reconstruction method for preoperative planning of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
Example 1
Referring to fig. 1, an embodiment of the present invention is provided: a three-dimensional reconstruction method for preoperative planning, comprising the specific steps of:
collecting an image of the focus position of a patient, and carrying out graying and denoising treatment on the image;
extracting features of the image subjected to graying and denoising treatment by utilizing an image segmentation strategy, and segmenting the image of the focus position after treatment into a plurality of parts by combining an attention mechanism;
and solving the matching cost of the segmented image slices by utilizing a three-dimensional reconstruction strategy, and carrying out fitting reconstruction on the segmented image slices by cost aggregation and parallax optimization to display the focus area of the patient in a three-dimensional visualization mode.
The specific method of the image segmentation strategy comprises the following steps:
step S101: putting the image subjected to graying and denoising treatment into a trained neural network model, splicing shallow layer features and high layer features in the neural network model, then performing convolution operation to obtain a gray value feature value, and setting the extracted gray value feature value as Query;
step S102: combining an attention mechanism, carrying out weighted calculation on the extracted gray value characteristic value Query, capturing the edge gray value characteristic of the whole image, and obtaining the whole gray value characteristic of the image;
in a conventional convolutional neural network, an operation object is usually a feature map and a network parameter, and the network parameter is always fixed and shared in a forward process, so that the feature map is difficult to realize second-order operation, such as modulo or correlation calculation, and although the operation process can be approximately fitted in a fourier expansion manner in a macroscopic manner, the feasibility is relatively low from the aspects of complexity and efficiency of network fitting. How to design a self-interaction mechanism between features in a network to improve the characterization capability of the network to the features, so as to improve the construction capability of the features of the network is a considerable problem. The intuitiveness of the attention mechanism, which is an operation of correlating and reassigning feature weights, is described as weighted summation of features to focus on important features and suppress the remaining features, but analyzed essentially, important features are defined as task-based highly correlated features, which is advantageous in that self-interaction between features is achieved.
Step S103: counting the number of each gray pixel in the image subjected to gray and denoising treatment, and settingFor the number of pixels with gray level i in the image after the graying and denoising treatment, the probability of gray level i in the image after the graying and denoising treatment is +.>And->Setting the gray value of the whole image after the graying and denoising treatment as +.>The gray threshold is +.>The probability of a pixel being divided into A is +.>The average gray scale of the pixels assigned to A is +.>The probability of a pixel being split into B is +.>The average gray scale of the pixel allocated to B is;
Step S104: the maximized inter-class variance of the pixel is calculated as:
;
wherein,,/>,/>,,/>;
and (3) carrying out pixel classification according to the calculated variance, and dividing the image of the focus position after the graying and denoising treatment by combining the gray value characteristic value and the pixel classification.
Example 2
Referring to fig. 2, another embodiment of the present invention is provided: the three-dimensional reconstruction strategy comprises the following specific steps:
step S201: setting the segmented image slicesAnd arbitrary image slice +.>Is P and Q, < >>,/>Wherein->Representing slice->I-th edge pixel point, of (a) a pixel of (b)>Representing slice->The j-th edge pixel point of the pixel is respectively gray value +>And->,,/>Calculating the matching initial cost of the segmented image slices, wherein a cost value calculation formula is as follows:
;
wherein,representing a cost value control parameter,/-, for>Representing an absolute value function;
another method of cost calculation: the AD method is used for determining the matching cost by averaging absolute values of differences between three color components of left and right view pixel points, and the calculation formula is as follows:
;
wherein,the cost value of the AD method is represented, P represents the pixel point in the left view image, pd represents the pixel point corresponding to the pixel point P in the right view image, and +.>Values R, G and B representing pixel point P in left view, < >>Values of R, G and B representing the pixel point Pd in the right view.
Step S202: cost aggregation, setting gray level difference threshold asThe pixel distance difference threshold is +.>Slice->And->Is +.>The principle formula of pixel aggregation is:
;
wherein,representing pixel dot +.>And pixel dot->Is a pixel distance of (2);
threshold value for pixel distance differenceValue selection +_>The value of 2 or 3 is optimal, the contrast of the edge pixels cannot be performed only on the most edge pixel, because noise influence exists during picture cutting, the matching precision can be influenced, the contrast of a plurality of edge pixels is performed,the error of noise can be effectively reduced, and matching and three-dimensional reconstruction can be more accurately performed.
Step S203: according to the cost value, calculating an aggregated cost value, wherein a calculation formula is as follows:
;
wherein w represents a sliceAnd->W-th edge pixel point of (a), a->Representing slice->W-th edge pixel point of (a), a->Representing slice->W-th edge pixel point in (a);
step S204: according to the steps S201-S203, calculating the segmented image sliceThe aggregate cost value of the four edges of the upper, lower, left and right sides and the parallax value are +.>Selecting the average value with the minimum four-side cost value, namelyWherein->Representing a segmented image slice->Polymeric minimum cost value of upper edge, < >>Representing a segmented image slice->The aggregate minimum cost value of the lower edge,representing a segmented image slice->Polymeric minimum cost value of left edge, < ->Representing segmented image slicesAggregate minimum cost value for right side edge;
selecting a disparity valueThe advantage of the minimum mean value of the four-side cost values is that: through image cutting, different interested areas are separated, the processing of the cut image edge is enhanced by utilizing a space attention mechanism and a channel attention mechanism, the minimum four-side cost value is selected to reduce the matching cost, the efficiency is improved, the average value is more accurately matched with the same interested area,
for example, the matching of the liver and the blood vessel, the gray values of the edge pixels of the liver and the blood vessel are very different, and when the cost is calculated, the parallax value is selected for being matched to the same region of interest more easily because the gray values of the same region of interest are very different.
Step S205: according to the parallax valueSelecting matched segmented image slices, and performing three-dimensional reconstruction to enable a focus area of a patient to be three-dimensionally availableAnd displaying in a visual form.
The three-dimensional reconstruction method comprises the following steps: based on the recombination of slice edges, firstly calculating the matching cost of edge pixels at one side of a cut image after the cutting of focus positions of two matched patients, limiting a set principle, calculating the total matching cost value, sequencing the total cost value, taking the minimum total cost value, repeating the steps, matching the four sides of the cut image, selecting the average value of the minimum total cost value of the four sides as a matching condition, screening out matching pictures meeting the condition, recombining after the matching and screening of all the slices, recovering each face of the slice according to the length and width information of the edges, and then splicing and recombining to form a three-dimensional image.
The graying and denoising processes are specifically a process of graying a color image and a process of gaussian noise and rice noise in an imaging process.
Graying treatment: according to the numerical values of the R, G component and the B component of the image, carrying out weighted average according to a certain weight value to carry out gray conversion, wherein the weighted calculation formula is as follows:
;
wherein,gray value of any one pixel in color image representing focus position of patient, < >>Any one pixel in the color image representing the lesion position of the patient,/for example>Representing pixel +.>R value of>Representing pixel +.>G value of>Representing pixel +.>B value of (B).
In step S101, the neural network model is a Densenet network.
The attention mechanism in step S102 includes: channel attention mechanisms and spatial attention mechanisms.
The channel attention mechanism is used to perform weighting operations in the channel domain of the feature map.
The channel attention mechanism is understood from the perspective of digital image processing, a single convolution kernel is represented as a filter of a certain type of characteristics, an N-dimensional characteristic diagram is derived from N convolution operation outputs, so that a channel weighting-based mode is actually an operation of screening the characteristics, and the main channel attention method is completed based on a characteristic compression operation on a spatial domain, and a pooling mode is generally adopted. The channel attention mechanism screens the feature types and finds out the feature types with high task relevance, so that the expression capacity of the model is weighted and the influence caused by noise is further suppressed.
The spatial attention mechanism is used to transform various deformation data in space and automatically capture region features.
Spatial attention mechanisms are different from channel attention mechanisms, which are used to focus on the response of highly correlated locations under the same feature type, e.g., channel attention captures edge features of the entire image, then spatial attention is focused on edge pixels of the liver. The spatial attention is a complementary operation to the translational invariance operation, and the statistical property of the spatial distribution of the key features of the target can be learned. In addition, in the spatial attention mechanism, the attention mechanism based on Non-Local also has the capability of breaking Local receptive field limitation of the convolutional neural network, and can realize the association between remote pixels.
The three-dimensional reconstruction in step S205 performs three-dimensional reconstruction on the matched image slices using cubic convolution interpolation.
Example 3
The three-dimensional reconstruction method comprises the following steps:
1) The isosurface extraction algorithm approximates an isosurface in a three-dimensional discrete data domain through linear interpolation, firstly, a voxel is defined to represent a cube formed by 8 pixels which are sequentially arranged, each non-boundary voxel in the data is contained in 8 voxels, and three conditions exist in the polar (top) point value of each voxel: higher or equal values mean inside the surface and lower values mean outside the surface. Thus, according to equivalence, there are two states for poles in each voxel, 256 states for every two combined voxels, which can be divided into 15 basic configurations according to space translation invariance and symmetry, when a voxel corresponding to one of eight vertices of a cube is considered to be on a boundary, a triangle surface is created, the cube is divided into two parts to create a tetrahedral element, the spatial positions of the vertices of the triangular patches are calculated by linear interpolation according to the values of the isosurfaces and the values of the two vertices of the edge through which the three patches pass, each voxel will contain a plurality of triangular patches inside, and a final triangular mesh surface model is constructed by traversing all the voxels and combining all the triangular surface combinations. At this time, the outer layer of the hybrid mesh model is composed of tetrahedral units, the inner region is composed of hexahedral units, the two layers share the same group of nodes and are not connected, compliance of finite elements is maintained, all the contributed triangular patches are combined to form mesh surface data, and the actual graph effect generated by the current inner plane is approximately represented. The MC algorithm is relatively visual in principle, is mutually independent in theoretical construction, and is very suitable for three-dimensional reconstruction drawing of a regular structure, but a large number of triangular patches can cause the problem of ambiguity of topological connection between data in the operation process of the algorithm, and the problem needs to be solved by parallel calculation. For MRI images, the characteristics of digital imaging, the complexity of anatomy and tissue specificity, lead to unavoidable noise interference, and therefore the application of MC algorithms in the medical field is limited.
2) The three-dimensional imaging system based on the Mimics is composed of a plurality of modules capable of realizing functions in different image processing fields, the modules can be flexibly matched according to the requirements of users, and the application is very high. Based on medical image data, the hybrid can be used for assisting doctors in diagnosing a plurality of diseases, developing operation plans and simulation researches, particularly a module with a very perfect segmentation function for gray value images, can process any number of image slices (allowing rectangular images), and provides several segmentation and visualization tools for interfaces for processing the images. The visual interface of the Mimics is mainly divided into 4 views: axial, coronal, sagittal views, and 3D object views. The MimicsSTL+ module provides interfaces of all rapid prototyping systems for the triangular plate file, software automatically calls bilinear and median interpolation algorithms when generating the file, the bilinear and median interpolation algorithms are used for improving the precision of a rapid prototyping model, and the model obtained by calculation can be exported to be an STL format. Because the segmented image data only contains the region of interest, the three-dimensional reconstruction process based on the mic is simple and easy to operate, firstly, a mouse is clicked right at the upper right corner of the main interface to generate a mask, a custom is selected according to the divided HU value interval range, in order to ensure connectivity between voxels, fillholes and Keeplarget options are checked to generate a corresponding mask, then the mask is selected, a calculation 3D is selected by the right key, the Quality is selected to be high, if the model is prompted to generate, the previous step is returned, after the corresponding mask is selected, a regiongrowth tool is used to click the corresponding mask, and a multiple layer and any connection mode are checked to generate a fully-communicated mask1, then a 3D model is calculated for the mask1 to generate a Quality model, and whether the post-processing of the model is performed or not is optional: surface smoothing (Remesh) and detection selfing (detectsif-interactions). The main purposes of the post-treatment include: the quality of the three-dimensional surface model is ensured, the grid number is simplified, and the calculated amount and the geometric error of the model are reduced. The three-dimensional surface model generated after a series of operations can be observed in a 3D view, and the right key of the 3D object generated by selection is stored and displayed by using STL+.
3) The light projection method is a slice-level three-dimensional reconstruction algorithm, and is a direct volume rendering method in order of image space, and is widely applied to the field of medical imaging. The light projection method mainly comprises the steps of storage, projection, interpolation, gradient estimation and the like. Unlike ray tracing algorithms, the basic idea is to project a parallel straight line along the eye's line of sight from a pixel point, which does not rest on the object surface, but instead penetrates the three-dimensional volume data field. Uniformly sampling along the ray at intervals, and calculating the optical property of the sampling point by using an interpolation algorithm. And then synthesizing all sampling points of equal distances according to a specific sequence (front to back or back to front), and finally calculating the pixel points on the two-dimensional screen corresponding to the light rays on a space coordinate system. The floodlight model is a simple empirical model only considering ambient light, only the plane shape of an object can be seen through the floodlight model, and the space volume sense can not be felt, and the calculation formula is as follows:
wherein->Indicating the reflected ambient light intensity, ">Representing the reflection coefficient of the object for ambient light, +.>The intensity of the incident ambient light is represented, and the biggest difference between the light projection method and the MC algorithm is that the light projection method obtains an opaque drawing result through setting parameters, so that the internal structure form of the object can be effectively reflected. The imaging quality of ray casting drawing is good, but the disadvantage that the ray casting method cannot orderly store the volume data according to the logic storage sequence, namely each volume element in the data needs to be traversed, and once the direction of a sampling point in the volume data field is slightly changed, resampling is needed. Therefore, it is difficult to increase the speed of three-dimensional reconstruction. Algorithms for improving ray projection methods such as binary tree, octree structure and pyramid structure of K-dimensional points all attempt to improve the volume by internal correlationRendering efficiency, and thus algorithm complexity, is reduced, but the effect is not ideal when applied to real medical images.
Example 4
Referring to fig. 3, another embodiment of the present invention is provided: a three-dimensional reconstruction system for preoperative planning, comprising:
the image acquisition equipment is used for shooting focus position images of a patient;
the image processing unit is used for carrying out graying and denoising treatment on the focus position image of the patient, extracting the characteristics of the image subjected to the graying and denoising treatment, dividing the image of the focus position into a plurality of parts by combining an attention mechanism, solving the matching of the divided image slices by utilizing a three-dimensional reconstruction strategy, and carrying out fitting reconstruction by cost aggregation and parallax optimization so as to enable the focus region of the patient to be displayed in a three-dimensional visual mode;
the three-dimensional imaging device is used for displaying the three-dimensional reconstructed focus position image of the patient in a three-dimensional visual form.
The image acquisition apparatus includes: nuclear magnetic resonance equipment, CT equipment and PET equipment.
Example 5
An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of a three-dimensional reconstruction method for preoperative planning.
Example 6
A computer readable storage medium having stored thereon computer instructions which when executed perform the steps of a three-dimensional reconstruction method for preoperative planning.
It will be understood by those skilled in the art that the foregoing description is only a preferred embodiment of the invention and that, although the invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various modifications and equivalents may be made to the technical aspects described in the foregoing embodiments, and that all such modifications and equivalents are intended to be included within the spirit and principles of the invention.
Claims (13)
1. A three-dimensional reconstruction method for preoperative planning, comprising the specific steps of:
collecting an image of the focus position of a patient, and carrying out graying and denoising treatment on the image;
extracting features of the image subjected to graying and denoising treatment by utilizing an image segmentation strategy, and segmenting the image of the focus position after treatment into a plurality of parts by combining an attention mechanism;
and solving the matching cost of the segmented image slices by utilizing a three-dimensional reconstruction strategy, and carrying out fitting reconstruction on the segmented image slices by cost aggregation and parallax optimization to display the focus area of the patient in a three-dimensional visualization mode.
2. A three-dimensional reconstruction method for preoperative planning as defined in claim 1, wherein the image segmentation strategy comprises:
step S101: putting the image subjected to graying and denoising treatment into a trained neural network model, splicing shallow layer features and high layer features in the neural network model, then performing convolution operation to obtain a gray value feature value, and setting the extracted gray value feature value as Query;
step S102: combining an attention mechanism, carrying out weighted calculation on the extracted gray value characteristic value Query, capturing the edge gray value characteristic of the whole image, and obtaining the whole gray value characteristic of the image;
step S103: counting the number of each gray pixel in the image subjected to gray and denoising treatment, and settingFor the number of pixels with gray level i in the image after the graying and denoising treatment, the probability of gray level i in the image after the graying and denoising treatment is +.>And->Setting the gray value of the whole image after the graying and denoising treatment as +.>The gray threshold is +.>The probability of a pixel being divided into A is +.>The average gray scale of the pixels assigned to A is +.>The probability of a pixel being split into B is +.>The average gray scale of the pixels assigned to B is +.>;
Step S104: the maximized inter-class variance of the pixel is calculated as:
;
wherein,,/>,/>,,/>;
and (3) carrying out pixel classification according to the calculated variance, and dividing the image of the focus position after the graying and denoising treatment by combining the gray value characteristic value and the pixel classification.
3. A three-dimensional reconstruction method for preoperative planning according to claim 2, wherein the three-dimensional reconstruction strategy comprises the specific steps of:
step S201: setting the segmented image slicesAnd arbitrary image slice +.>Is P and Q,,/>wherein->Representing slice->Is the i-th edge pixel point in (c),representing slice->The j-th edge pixel point of the pixel is respectively gray value +>And->,,/>Calculating the matching initial cost of the segmented image slices, wherein a cost value calculation formula is as follows:
;
wherein,representing a cost value control parameter,/-, for>Representing an absolute value function, e representing the base of the natural logarithm;
step S202: cost aggregation, setting gray level difference threshold asThe pixel distance difference threshold is +.>Slice->And->Is +.>The principle formula of pixel aggregation is:
;
wherein,representing pixel dot +.>And pixel dot->Is a pixel distance of (2);
step S203: according to the cost value, calculating an aggregated cost value, wherein a calculation formula is as follows:
;
wherein w represents a sliceAnd->W-th edge pixel point of (a), a->Representing slice->Is the w-th edge pixel point in (c),representing slice->W-th edge pixel point in (a);
step S204: according to the steps S201-S203, calculating the segmented image sliceThe aggregate cost value of the four edges of the upper, lower, left and right sides and the parallax value are +.>Selecting the average value with the minimum four-side cost value, namelyWherein->Representing a segmented image slice->Polymeric minimum cost value of upper edge, < >>Representing a segmented image slice->The aggregate minimum cost value of the lower edge,representing a segmented image slice->Polymeric minimum cost value of left edge, < ->Representing segmented image slicesAggregate minimum cost value for right side edge;
step S205: according to the parallax valueSelecting matched segmented image slices, and performingThree-dimensional reconstruction is carried out, so that the focus area of the patient is displayed in a three-dimensional visual form.
4. A three-dimensional reconstruction method for preoperative planning according to claim 1, wherein the graying and denoising processes are in particular graying of color images and gaussian and rice noise processing during imaging.
5. The three-dimensional reconstruction method for preoperative planning of claim 2, wherein the neural network model in step S101 is a Densenet network.
6. A three-dimensional reconstruction method for preoperative planning according to claim 2, wherein the attention mechanism in step S102 comprises: channel attention mechanisms and spatial attention mechanisms.
7. A three-dimensional reconstruction method for preoperative planning as defined in claim 7, wherein the channel attention mechanism is used for weighting operations in the channel domain of the feature map.
8. A three-dimensional reconstruction method for preoperative planning as defined in claim 7, wherein the spatial attention mechanism is used to spatially transform various deformation data and automatically capture regional features.
9. The method according to claim 4, wherein the three-dimensional reconstruction in step S205 uses cubic convolution interpolation to reconstruct the matched image slices in three dimensions.
10. A three-dimensional reconstruction system for preoperative planning, which is realized on the basis of a three-dimensional reconstruction method for preoperative planning as claimed in any one of claims 1 to 9, comprising:
the image acquisition equipment is used for shooting focus position images of a patient;
the image processing unit is used for carrying out graying and denoising treatment on the focus position image of the patient, extracting the characteristics of the image subjected to the graying and denoising treatment by utilizing an image segmentation strategy, segmenting the image of the focus position after the treatment into a plurality of parts by combining an attention mechanism, solving the matching of segmented image slices by utilizing a three-dimensional reconstruction strategy, and carrying out fitting reconstruction by cost aggregation and parallax optimization so as to enable the focus region of the patient to be displayed in a three-dimensional visual mode;
the three-dimensional imaging device is used for displaying the three-dimensional reconstructed focus position image of the patient in a three-dimensional visual form.
11. A three-dimensional reconstruction system for preoperative planning of claim 10, wherein the image acquisition device comprises: nuclear magnetic resonance equipment, CT equipment and PET equipment.
12. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of a three-dimensional reconstruction method for preoperative planning according to any one of claims 1-9.
13. A computer-readable storage medium, having stored thereon computer instructions, which when executed perform the steps of a three-dimensional reconstruction method for preoperative planning according to any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311173175.8A CN117437350B (en) | 2023-09-12 | 2023-09-12 | Three-dimensional reconstruction system and method for preoperative planning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311173175.8A CN117437350B (en) | 2023-09-12 | 2023-09-12 | Three-dimensional reconstruction system and method for preoperative planning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117437350A true CN117437350A (en) | 2024-01-23 |
CN117437350B CN117437350B (en) | 2024-05-03 |
Family
ID=89550571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311173175.8A Active CN117437350B (en) | 2023-09-12 | 2023-09-12 | Three-dimensional reconstruction system and method for preoperative planning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117437350B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107895364A (en) * | 2017-10-31 | 2018-04-10 | 哈尔滨理工大学 | A kind of three-dimensional reconstruction system for the preoperative planning of virtual operation |
CN111508068A (en) * | 2020-04-20 | 2020-08-07 | 华中科技大学 | Three-dimensional reconstruction method and system applied to binocular endoscope image |
WO2021244621A1 (en) * | 2020-06-04 | 2021-12-09 | 华为技术有限公司 | Scenario semantic parsing method based on global guidance selective context network |
WO2021253939A1 (en) * | 2020-06-18 | 2021-12-23 | 南通大学 | Rough set-based neural network method for segmenting fundus retinal vascular image |
CN114529505A (en) * | 2021-12-28 | 2022-05-24 | 天翼电子商务有限公司 | Breast lesion risk assessment system based on deep learning |
CN116433605A (en) * | 2023-03-16 | 2023-07-14 | 重庆邮电大学 | Medical image analysis mobile augmented reality system and method based on cloud intelligence |
CN116612174A (en) * | 2023-06-02 | 2023-08-18 | 青岛大学附属医院 | Three-dimensional reconstruction method and system for soft tissue and computer storage medium |
-
2023
- 2023-09-12 CN CN202311173175.8A patent/CN117437350B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107895364A (en) * | 2017-10-31 | 2018-04-10 | 哈尔滨理工大学 | A kind of three-dimensional reconstruction system for the preoperative planning of virtual operation |
CN111508068A (en) * | 2020-04-20 | 2020-08-07 | 华中科技大学 | Three-dimensional reconstruction method and system applied to binocular endoscope image |
WO2021244621A1 (en) * | 2020-06-04 | 2021-12-09 | 华为技术有限公司 | Scenario semantic parsing method based on global guidance selective context network |
WO2021253939A1 (en) * | 2020-06-18 | 2021-12-23 | 南通大学 | Rough set-based neural network method for segmenting fundus retinal vascular image |
CN114529505A (en) * | 2021-12-28 | 2022-05-24 | 天翼电子商务有限公司 | Breast lesion risk assessment system based on deep learning |
CN116433605A (en) * | 2023-03-16 | 2023-07-14 | 重庆邮电大学 | Medical image analysis mobile augmented reality system and method based on cloud intelligence |
CN116612174A (en) * | 2023-06-02 | 2023-08-18 | 青岛大学附属医院 | Three-dimensional reconstruction method and system for soft tissue and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117437350B (en) | 2024-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9317970B2 (en) | Coupled reconstruction of hair and skin | |
US10713856B2 (en) | Medical imaging system based on HMDS | |
CN109598697B (en) | Determination of a two-dimensional mammography data set | |
Long et al. | Neuraludf: Learning unsigned distance fields for multi-view reconstruction of surfaces with arbitrary topologies | |
CN106600683B (en) | A kind of adaptive method for reconstructing of grid model towards Bone CT sequence image | |
CN107563378A (en) | The method and its system of area-of-interest are extracted in volume data | |
CN109598728A (en) | Image partition method, device, diagnostic system and storage medium | |
CN107622492A (en) | Lung splits dividing method and system | |
Khan et al. | A methodological review of 3D reconstruction techniques in tomographic imaging | |
CN110782489B (en) | Image data matching method, device and equipment and computer readable storage medium | |
US11995786B2 (en) | Interactive image editing | |
CN107194925A (en) | Image processing method and system | |
CN110706241A (en) | Three-dimensional focus area extraction method and device | |
CN115546442A (en) | Multi-view stereo matching reconstruction method and system based on perception consistency loss | |
CN114863061A (en) | Three-dimensional reconstruction method and system for remote monitoring medical image processing | |
WO2021030995A1 (en) | Inferior vena cava image analysis method and product based on vrds ai | |
CN103903255B (en) | A kind of ultrasonic image division method and system | |
CN114387392A (en) | Method for reconstructing three-dimensional human body posture according to human shadow | |
CN117437350B (en) | Three-dimensional reconstruction system and method for preoperative planning | |
CN114998150B (en) | Three-dimensional reconstruction method and device for ultrasonic image | |
CN115187640A (en) | CT and MRI3D/3D image registration method based on point cloud | |
AU2019429940B2 (en) | AI identification method of embolism based on VRDS 4D medical image, and product | |
Liu et al. | Study and application of medical image visualization technology | |
Khaleel et al. | A Review paper of 3D Surface Reconstruction of Coronary Arteries From Cardiovascular Angiography | |
RU2783364C1 (en) | Device for creation of multidimensional virtual images of human respiratory organs and method for creation of volumetric images, using device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |