Method and device for improving imaging quality of duodenal stump fistula based on digital model
By constructing a three-dimensional model of the duodenal stump and a fistula model, determining the actual position and observation trajectory, calculating the unit expansion ratio and selecting the target image, the problems of low imaging resolution and small observation field of view of the duodenal stump fistula are solved. Higher quality imaging is achieved.
Patent Information
- Application Number
- CN202410697531.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Imaging of duodenal stump fistula has the problems of low definition and small observation field, mainly due to the subjective judgment of doctors, which leads to inaccurate shooting distance control.
By constructing a three-dimensional model of the duodenal stump and a fistula model, the actual location and observation trajectory of the stump fistula are determined, the unit expansion and contraction ratio of adjacent images is calculated based on the area size, and the target image selection formula is used to select and move images to improve imaging quality. .
It improves the clarity and observation field of duodenal stump fistula imaging and solves the problem of low imaging quality.
Smart Images

Figure CN118644381A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of imaging quality improvement, and in particular to a method, device, electronic device and computer-readable storage medium for improving the imaging quality of a duodenal stump fistula based on a digital model. Background Art
[0002] Duodenal stump fistula is one of the most serious complications after Billroth-II subtotal gastrectomy in the early stage. Although the incidence is low, once this complication occurs, the mortality rate of the patient is high. Therefore, it is crucial to improve the imaging quality of the duodenal stump.
[0003] Currently, the imaging of duodenal stump fistula mainly involves doctors using imaging instruments to take pictures of the fistula. However, this imaging method mainly relies on the doctor's subjective judgment to control the shooting distance. Therefore, the imaging of duodenal stump fistula has problems such as low clarity and small observation field of view. Summary of the invention
[0004] The present invention provides a method, device and computer-readable storage medium for improving the imaging quality of duodenal stump fistula based on a digital model, the main purpose of which is to solve the problems of low clarity and small observation field of view in duodenal stump fistula imaging.
[0005] To achieve the above-mentioned purpose, the present invention provides a method for improving the imaging quality of duodenal stump fistula based on a digital model, comprising:
[0006] Acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the set of plain scan images of the duodenal stump, and extract a stereoscopic center point of the three-dimensional model of the duodenal stump;
[0007] Acquiring the actual position of the duodenal stump fistula, and constructing a duodenal stump fistula model on the duodenal stump three-dimensional model according to the actual position of the duodenal stump fistula;
[0008] Extracting the plane center point of the duodenal stump fistula model, and obtaining the stump fistula observation trajectory according to the stereo center point and the plane center point;
[0009] Taking images of the duodenal stump fistula according to the stump fistula observation trajectory and the preset moving step length to obtain a duodenal stump fistula image set;
[0010] identifying the size of the region of the duodenal stump fistula in each of the duodenal stump fistula images, and calculating the unit expansion ratio of two adjacent duodenal stump fistula images according to the size of the region;
[0011] receiving an initial image expansion point and an expansion ratio, and selecting a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio, and a unit expansion ratio;
[0012] Identifying a target image telescoping point in the target duodenal stump image corresponding to the initial image telescoping point;
[0013] The target image expansion point is used as the center of the display page, and the target duodenal stump fistula image is moved according to the center of the display page to improve the imaging quality of the duodenal stump fistula based on the digital model.
[0014] Optionally, the acquiring of a set of plain scan images of the duodenal stump and constructing a three-dimensional model of the duodenal stump according to the plain scan images of the duodenal stump includes:
[0015] The patient was given a plain CT scan to obtain a plain scan image set of the duodenal stump;
[0016] The plain scan image set of the duodenal stump is imported into the pre-built Mimics software for three-dimensional reconstruction to obtain the three-dimensional model of the duodenal stump.
[0017] Optionally, extracting the stereoscopic center point of the three-dimensional model of the duodenal stump includes:
[0018] Extracting a vector vertical surface set of the three-dimensional model of the duodenal stump in a preset direction;
[0019] Each of the vector vertical planes in the vector vertical plane set is translated to a position circumscribed to the three-dimensional model of the duodenal stump to obtain a circumscribed cube of the three-dimensional model of the duodenal stump;
[0020] The geometric center of the circumscribed cube is extracted to obtain the stereo center point.
[0021] Optionally, obtaining the stump fistula observation trajectory according to the stereo center point and the plane center point includes:
[0022] Connecting the three-dimensional center point and the plane center point to obtain a center point connecting line segment;
[0023] Extend the midline point connecting line segment to both sides according to the line segment direction to obtain a midline point connecting line;
[0024] Extracting two intersection points of the center point connection line and the three-dimensional model of the duodenal stump;
[0025] The two intersection points are connected to obtain the stump fistula observation trajectory.
[0026] Optionally, the identifying the area size of the duodenal stump fistula in each of the duodenal stump fistula images includes:
[0027] identifying a region polygon of the duodenal stump fistula in the duodenal stump fistula image;
[0028] The radial length of the regional polygon is calculated to obtain the regional size of the duodenal stump fistula.
[0029] Optionally, calculating the unit scaling ratio of two adjacent duodenal stump fistula images according to the region size includes:
[0030] Extract the radial length of the regional polygon of the duodenal stump fistula in the same direction from two adjacent duodenal stump fistula images;
[0031] The ratio of radial lengths of the polygons of the duodenal stump fistula region in the two adjacent duodenal stump fistula images is calculated to obtain the unit expansion ratio.
[0032] Optionally, selecting a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the scaling ratio, and the unit scaling ratio includes:
[0033] Calculating a telescopic scale according to the telescopic ratio and the unit telescopic ratio;
[0034] Calculating the telescopic range according to the sequence number of the duodenal stump fistula image where the telescopic point of the initial image is located and the total number of images in the duodenal stump fistula image set;
[0035] Determining whether the telescopic scale is within the telescopic range;
[0036] If the telescopic scale is not within the telescopic range, prompting the user to re-enter the telescopic ratio;
[0037] If the telescopic scale is within the telescopic range, a target duodenal stump fistula image is selected from the duodenal stump fistula image set according to the target image selection formula.
[0038] Optionally, the calculating the telescopic range according to the sequence number of the duodenal stump fistula image where the telescopic point of the initial image is located and the total number of images of the duodenal stump fistula image set includes:
[0039] The serial number of the duodenal stump fistula image where the initial image expansion and contraction point is located is used as a narrowable range;
[0040] Calculate the magnifiable range according to the sequence number of the duodenal stump fistula image where the initial image expansion point is located and the total number of images in the duodenal stump fistula image set;
[0041] The retractable range is obtained by combining the retractable range and the enlargeable range.
[0042] Optionally, the identifying a target image expansion point in the target duodenal stump image corresponding to the initial image expansion point includes:
[0043] Extracting the initial center point of the duodenal stump fistula image where the initial image expansion point is located, and calculating the angle offset value according to the positions of the initial center point and the initial image expansion point;
[0044] A target image telescopic point is extracted from the target duodenal stump image according to the angle offset value and the telescopic ratio.
[0045] In order to solve the above problems, the present invention also provides a device for improving the imaging quality of duodenal stump fistula based on a digital model, the device comprising:
[0046] A stump fistula observation trajectory acquisition module is used to acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the plain scan image set of the duodenal stump, and extract the stereo center point of the three-dimensional model of the duodenal stump; acquire the actual position of the duodenal stump fistula, and construct a duodenal stump fistula model on the three-dimensional model of the duodenal stump based on the actual position of the duodenal stump fistula; extract the plane center point of the duodenal stump fistula model, and acquire the stump fistula observation trajectory based on the stereo center point and the plane center point;
[0047] A duodenal stump fistula image set shooting module, used to shoot duodenal stump fistula images according to the stump fistula observation trajectory and a preset moving step distance to obtain a duodenal stump fistula image set;
[0048] a unit expansion ratio calculation module, used for identifying the area size of the duodenal stump fistula in each of the duodenal stump fistula images, and calculating the unit expansion ratio of two adjacent duodenal stump fistula images according to the area size;
[0049] A target duodenal stump fistula image selection module is used to receive an initial image expansion point and an expansion ratio, and select a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio and a unit expansion ratio;
[0050] The target duodenal stump fistula image moving module is used to identify the target image expansion point in the target duodenal stump fistula image corresponding to the initial image expansion point; the target image expansion point is used as the display page center, and the target duodenal stump fistula image is moved according to the display page center to complete the duodenal stump fistula imaging quality improvement based on the digital model.
[0051] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0052] at least one processor; and,
[0053] a memory communicatively connected to the at least one processor; wherein,
[0054] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the above-mentioned method for improving the imaging quality of duodenal stump fistula based on digital model.
[0055] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned method for improving the imaging quality of duodenal stump fistula based on a digital model.
[0056] Compared to the background technology, the imaging of duodenal stump fistula has the problem of low clarity and small observation field. The embodiment of the present invention determines the stump fistula observation trajectory of the actual position of the duodenal stump fistula by constructing a three-dimensional model of the duodenal stump and a duodenal stump fistula model, captures a set of duodenal stump fistula images with a preset moving step, and then calculates the unit expansion ratio of two adjacent duodenal stump fistula images according to the area size, and finally selects the target duodenal stump fistula image using the target image selection formula. After obtaining the target duodenal stump fistula image, it only needs to be translated to the center of the display page through the target image expansion point. Therefore, the method, device, electronic device and computer-readable storage medium for improving the imaging quality of duodenal stump fistula based on a digital model proposed in the present invention can solve the problems of low clarity and small observation field of duodenal stump fistula imaging. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A schematic flow chart of a method for improving the imaging quality of duodenal stump fistula based on a digital model provided in one embodiment of the present invention;
[0058] Figure 2 A functional module diagram of a device for improving the imaging quality of duodenal stump fistula based on a digital model provided by an embodiment of the present invention;
[0059] Figure 3 A schematic structural diagram of an electronic device for implementing the method for improving the imaging quality of duodenal stump fistula based on a digital model provided in one embodiment of the present invention.
[0060] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0061] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0062] The embodiment of the present application provides a method for improving the imaging quality of duodenal stump fistula based on a digital model. The execution subject of the method for improving the imaging quality of duodenal stump fistula based on a digital model includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for improving the imaging quality of duodenal stump fistula based on a digital model can be executed by software or hardware installed on a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0063] Embodiment 1:
[0064] Reference Figure 1 FIG. 1 is a flow chart of a method for improving the imaging quality of duodenal stump fistula based on a digital model provided by an embodiment of the present invention. In this embodiment, the method for improving the imaging quality of duodenal stump fistula based on a digital model includes:
[0065] S1. Obtain a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump according to the set of plain scan images of the duodenal stump, and extract a stereoscopic center point of the three-dimensional model of the duodenal stump.
[0066] It can be understood that the duodenal stump plain scan image set refers to a set of images obtained by using X-ray tomography (abbreviated as X-CT or CT) of the human duodenal stump. The duodenal stump three-dimensional model refers to a three-dimensional stereoscopic model of the human duodenal stump established based on the duodenal stump plain scan image set.
[0067] In the embodiment of the present invention, the step of acquiring a set of plain scan images of the duodenal stump and constructing a three-dimensional model of the duodenal stump according to the plain scan images of the duodenal stump includes:
[0068] The patient was given a plain CT scan to obtain a plain scan image set of the duodenal stump;
[0069] The plain scan image set of the duodenal stump is imported into the pre-built Mimics software for three-dimensional reconstruction to obtain the three-dimensional model of the duodenal stump.
[0070] It can be explained that the Mimics software refers to an interactive medical image control system, which has the following functions: image import, image segmentation, image registration, image visualization, image measurement, etc. The Mimics software is used to construct the three-dimensional model of the duodenal stump according to the plain scan image set of the duodenal stump.
[0071] In the embodiment of the present invention, the step of extracting the stereoscopic center point of the three-dimensional model of the duodenal stump includes:
[0072] Extracting a vector vertical surface set of the three-dimensional model of the duodenal stump in a preset direction;
[0073] Each of the vector vertical planes in the vector vertical plane set is translated to a position circumscribed to the three-dimensional model of the duodenal stump to obtain a circumscribed cube of the three-dimensional model of the duodenal stump;
[0074] The geometric center of the circumscribed cube is extracted to obtain the stereo center point.
[0075] It is understandable that the preset direction may be six directions: up, down, left, right, front, and back. The vector vertical plane set refers to a set of vertical planes in the preset direction. The geometric center of the circumscribed cube may be the intersection of the diagonals of the circumscribed cube.
[0076] S2. Acquire the actual position of the duodenal stump fistula, and construct a duodenal stump fistula model on the duodenal stump three-dimensional model according to the actual position of the duodenal stump fistula.
[0077] In an embodiment of the present invention, the actual position of the duodenal stump fistula can be observed using a pre-constructed colonoscope, and the actual position and shape of the stump fistula can be analyzed through the data observed by the colonoscope, and the actual position of the duodenal stump fistula is mapped to the duodenal stump three-dimensional model to obtain the position of the duodenal stump fistula in the duodenal stump three-dimensional model, and then the duodenal stump fistula model is established.
[0078] S3. Extract the plane center point of the duodenal stump fistula model, and obtain the stump fistula observation trajectory according to the three-dimensional center point and the plane center point.
[0079] It can be explained that in order to observe the pathological characteristics of the duodenal stump fistula from the front, it is necessary to observe perpendicularly to the plane where the duodenal stump fistula is located. By connecting the three-dimensional center point and the plane center point, the observation trajectory of the duodenal stump fistula for the front observation can be obtained.
[0080] In the embodiment of the present invention, obtaining the stump fistula observation trajectory according to the three-dimensional center point and the plane center point includes:
[0081] Connecting the three-dimensional center point and the plane center point to obtain a center point connecting line segment;
[0082] Extend the midline point connecting line segment to both sides according to the line segment direction to obtain a midline point connecting line;
[0083] Extracting two intersection points of the center point connection line and the three-dimensional model of the duodenal stump;
[0084] The two intersection points are connected to obtain the stump fistula observation trajectory.
[0085] S4. Taking images of the duodenal stump fistula according to the stump fistula observation trajectory and the preset moving step to obtain a duodenal stump fistula image set.
[0086] In the embodiment of the present invention, the moving step refers to the moving distance between the shooting positions of two adjacent images on the stump fistula observation trajectory, which may be 0.1 cm.
[0087] It can be explained that the duodenal stump fistula image set can be photographed step by step according to the moving step at the position farthest from the stump fistula on the stump fistula observation trajectory to obtain the duodenal stump fistula image set.
[0088] S5. Identify the region size of the duodenal stump fistula in each of the duodenal stump fistula images, and calculate the unit scaling ratio of two adjacent duodenal stump fistula images according to the region size.
[0089] It can be explained that the regional size of the duodenal stump fistula can be represented by the radial length of the regional boundary of the stump fistula.
[0090] In the embodiment of the present invention, the identifying the area size of the duodenal stump fistula in each of the duodenal stump fistula images includes:
[0091] identifying a region polygon of the duodenal stump fistula in the duodenal stump fistula image;
[0092] The radial length of the regional polygon is calculated to obtain the regional size of the duodenal stump fistula.
[0093] It can be explained that the radial length of the regional polygon can be represented by the distance from the center of the regional polygon of the duodenal stump fistula to any point on the boundary curve.
[0094] In the embodiment of the present invention, the step of calculating the unit scaling ratio of two adjacent duodenal stump fistula images according to the region size includes:
[0095] Extract the radial length of the regional polygon of the duodenal stump fistula in the same direction from two adjacent duodenal stump fistula images;
[0096] The ratio of radial lengths of the polygons of the duodenal stump fistula region in the two adjacent duodenal stump fistula images is calculated to obtain the unit expansion ratio.
[0097] It is understandable that the ratio of the radial lengths of the regional polygons can be calculated by dividing the radial length of the larger regional polygon by the radial length of the smaller regional polygon to obtain the unit expansion ratio, thereby ensuring that the unit expansion ratio is a positive number greater than 1. When the ratio of the radial lengths of the regional polygons is not an integer, it can be rounded to a predetermined decimal place. For example: the radial length of the larger regional polygon is 0.6 cm, and the radial length of the smaller regional polygon is 0.5 cm, then the unit expansion ratio is 1.2.
[0098] S6. Receive the initial image expansion point and expansion ratio, and select a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio and the unit expansion ratio.
[0099] In detail, the target image selection formula is as follows:
[0100] P aim =P o+1+i ,in,
[0101] Among them, P aim represents the target duodenal stump fistula image, o represents the initial serial number of the duodenal stump fistula image where the initial image expansion point is located, i represents the difference between the serial number of the target duodenal stump fistula image and the initial serial number, k' represents the expansion ratio, and K represents the unit expansion ratio.
[0102] It can be explained that when the scaling ratio input by the user is received, the target duodenal stump fistula image can be automatically selected according to the target image selection formula. For example, when the unit scaling ratio is 1.2, the scaling ratio can be enlarged by 1.2, 1.2 2 , 1.2 3 times, then when the initial serial number of the duodenal stump fistula image is 5, the serial numbers of the target duodenal stump fistula images are 6, 7, and 8 respectively; when the unit scaling ratio is 1.2, the scaling ratio can be enlarged by 1.2 -1 , 1.2 -2 times, then when the initial serial number of the duodenal stump fistula image is 5, the serial numbers of the target duodenal stump fistula images are 4 and 3 respectively.
[0103] In the embodiment of the present invention, selecting a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the scaling ratio, and the unit scaling ratio includes:
[0104] Calculating a telescopic scale according to the telescopic ratio and the unit telescopic ratio;
[0105] Calculating the telescopic range according to the sequence number of the duodenal stump fistula image where the telescopic point of the initial image is located and the total number of images in the duodenal stump fistula image set;
[0106] Determining whether the telescopic scale is within the telescopic range;
[0107] If the telescopic scale is not within the telescopic range, prompting the user to re-enter the telescopic ratio;
[0108] If the telescopic scale is within the telescopic range, a target duodenal stump fistula image is selected from the duodenal stump fistula image set according to the target image selection formula.
[0109] Specifically, the telescopic scale can be obtained by dividing the telescopic ratio by the unit telescopic ratio. The telescopic scale should be within a reasonable range. For example, when the unit telescopic ratio is 1.2, the telescopic ratio cannot be enlarged by 1.2. -5 times, because when the sequence number of the duodenal stump fistula image is 1, the scaling ratio is 1.2 -4 times, which is the minimum enlargement multiple.
[0110] In detail, the calculating of the telescopic range according to the sequence number of the duodenal stump fistula image where the telescopic point of the initial image is located and the total number of images of the duodenal stump fistula image set includes:
[0111] The serial number of the duodenal stump fistula image where the initial image expansion and contraction point is located is used as a narrowable range;
[0112] Calculate the magnifiable range according to the sequence number of the duodenal stump fistula image where the initial image expansion point is located and the total number of images in the duodenal stump fistula image set;
[0113] The retractable range is obtained by combining the retractable range and the enlargeable range.
[0114] S7: Identify a target image expansion point in the target duodenal stump image corresponding to the initial image expansion point.
[0115] In the embodiment of the present invention, the step of identifying the target image expansion point in the target duodenal stump image corresponding to the initial image expansion point includes:
[0116] Extracting the initial center point of the duodenal stump fistula image where the initial image expansion point is located, and calculating the angle offset value according to the positions of the initial center point and the initial image expansion point;
[0117] A target image telescopic point is extracted from the target duodenal stump image according to the angle offset value and the telescopic ratio.
[0118] S8. Taking the target image expansion point as the center of the display page, moving the target duodenal stump fistula image according to the center of the display page, and completing the improvement of the duodenal stump fistula imaging quality based on the digital model.
[0119] In the embodiment of the present invention, it is explainable that after the target duodenal stump image is obtained, in order to place the image in the center of the display page, the center of the image can be placed in the center of the display page for easy observation.
[0120] Compared to the background technology, the imaging of duodenal stump fistula has the problem of low clarity and small observation field. The embodiment of the present invention determines the stump fistula observation trajectory of the actual position of the duodenal stump fistula by constructing a three-dimensional model of the duodenal stump and a duodenal stump fistula model, captures a set of duodenal stump fistula images with a preset moving step, and then calculates the unit expansion ratio of two adjacent duodenal stump fistula images according to the area size, and finally selects the target duodenal stump fistula image using the target image selection formula. After obtaining the target duodenal stump fistula image, it only needs to be translated to the center of the display page through the target image expansion point. Therefore, the method, device, electronic device and computer-readable storage medium for improving the imaging quality of duodenal stump fistula based on a digital model proposed in the present invention can solve the problems of low clarity and small observation field of duodenal stump fistula imaging.
[0121] Embodiment 2:
[0122] like Figure 2 , which is a functional module diagram of a device for improving the imaging quality of duodenal stump fistula based on a digital model provided by an embodiment of the present invention.
[0123] The digital model-based duodenal stump fistula imaging quality improvement device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the digital model-based duodenal stump fistula imaging quality improvement device 100 can include a stump fistula observation trajectory acquisition module 101, a duodenal stump fistula image set shooting module 102, a unit telescopic ratio calculation module 103, a target duodenal stump fistula image selection module 104 and a target duodenal stump fistula image movement module 105. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0124] The stump fistula observation trajectory acquisition module 101 is used to acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the plain scan images of the duodenal stump, and extract the stereo center point of the three-dimensional model of the duodenal stump; acquire the actual position of the duodenal stump fistula, and construct a duodenal stump fistula model on the three-dimensional model of the duodenal stump based on the actual position of the duodenal stump fistula; extract the plane center point of the duodenal stump fistula model, and acquire the stump fistula observation trajectory based on the stereo center point and the plane center point;
[0125] The duodenal stump fistula image set shooting module 102 is used to shoot duodenal stump fistula images according to the stump fistula observation trajectory and a preset moving step to obtain a duodenal stump fistula image set;
[0126] The unit expansion ratio calculation module 103 is used to identify the area size of the duodenal stump fistula in each of the duodenal stump fistula images, and calculate the unit expansion ratio of two adjacent duodenal stump fistula images according to the area size;
[0127] The target duodenal stump fistula image selection module 104 is used to receive the initial image expansion point and expansion ratio, and select the target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio and the unit expansion ratio;
[0128] The target duodenal stump fistula image moving module 105 is used to identify the target image expansion point in the target duodenal stump fistula image corresponding to the initial image expansion point; use the target image expansion point as the display page center, move the target duodenal stump fistula image according to the display page center, and complete the duodenal stump fistula imaging quality improvement based on the digital model.
[0129] In detail, the modules in the digital model-based duodenal stump fistula imaging quality improvement device 100 in the embodiment of the present invention are used in the same manner as described above. Figure 1 The technical means described in the article are the same as the method for improving the imaging quality of duodenal stump fistula based on digital model, and can produce the same technical effects, so they will not be repeated here.
[0130] Embodiment 3:
[0131] like Figure 3 , which is a schematic diagram of the structure of an electronic device for implementing a method for improving the imaging quality of duodenal stump fistula based on a digital model provided by an embodiment of the present invention.
[0132] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a digital model-based duodenal stump fistula imaging quality improvement program.
[0133] The memory 11 includes at least one type of readable storage medium, including flash memory, mobile hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the duodenal stump fistula imaging quality improvement program based on the digital model, but also be used to temporarily store data that has been output or is to be output.
[0134] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as a digital model-based duodenal stump fistula imaging quality improvement program, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0135] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0136] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0137] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0138] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0139] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0140] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0141] The digital model-based duodenal stump fistula imaging quality improvement program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, the following can be achieved:
[0142] Acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the set of plain scan images of the duodenal stump, and extract a stereoscopic center point of the three-dimensional model of the duodenal stump;
[0143] Acquiring the actual position of the duodenal stump fistula, and constructing a duodenal stump fistula model on the duodenal stump three-dimensional model according to the actual position of the duodenal stump fistula;
[0144] Extracting the plane center point of the duodenal stump fistula model, and obtaining the stump fistula observation trajectory according to the stereo center point and the plane center point;
[0145] Taking images of the duodenal stump fistula according to the stump fistula observation trajectory and the preset moving step length to obtain a duodenal stump fistula image set;
[0146] identifying the size of the region of the duodenal stump fistula in each of the duodenal stump fistula images, and calculating the unit expansion ratio of two adjacent duodenal stump fistula images according to the size of the region;
[0147] receiving an initial image expansion point and an expansion ratio, and selecting a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio, and a unit expansion ratio;
[0148] Identifying a target image telescoping point in the target duodenal stump image corresponding to the initial image telescoping point;
[0149] The target image expansion point is used as the center of the display page, and the target duodenal stump fistula image is moved according to the center of the display page to improve the imaging quality of the duodenal stump fistula based on the digital model.
[0150] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0151] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0152] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0153] Acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the set of plain scan images of the duodenal stump, and extract a stereoscopic center point of the three-dimensional model of the duodenal stump;
[0154] Acquiring the actual position of the duodenal stump fistula, and constructing a duodenal stump fistula model on the duodenal stump three-dimensional model according to the actual position of the duodenal stump fistula;
[0155] Extracting the plane center point of the duodenal stump fistula model, and obtaining the stump fistula observation trajectory according to the stereo center point and the plane center point;
[0156] Taking images of the duodenal stump fistula according to the stump fistula observation trajectory and the preset moving step length to obtain a duodenal stump fistula image set;
[0157] identifying the size of the region of the duodenal stump fistula in each of the duodenal stump fistula images, and calculating the unit expansion ratio of two adjacent duodenal stump fistula images according to the size of the region;
[0158] receiving an initial image expansion point and an expansion ratio, and selecting a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio, and a unit expansion ratio;
[0159] Identifying a target image telescoping point in the target duodenal stump image corresponding to the initial image telescoping point;
[0160] The target image expansion point is used as the center of the display page, and the target duodenal stump fistula image is moved according to the center of the display page to improve the imaging quality of the duodenal stump fistula based on the digital model.
[0161] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0162] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0164] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for improving the imaging quality of duodenal stump fistula based on digital model. It is characterized in that The method comprises: Acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the set of plain scan images of the duodenal stump, and extract a stereoscopic center point of the three-dimensional model of the duodenal stump; Acquiring the actual position of the duodenal stump fistula, and constructing a duodenal stump fistula model on the duodenal stump three-dimensional model according to the actual position of the duodenal stump fistula; Extracting the plane center point of the duodenal stump fistula model, and obtaining the stump fistula observation trajectory according to the stereo center point and the plane center point; Taking images of the duodenal stump fistula according to the stump fistula observation trajectory and the preset moving step length to obtain a duodenal stump fistula image set; identifying the size of the region of the duodenal stump fistula in each of the duodenal stump fistula images, and calculating the unit expansion ratio of two adjacent duodenal stump fistula images according to the size of the region; An initial image expansion point and expansion ratio are received, and a target duodenal stump fistula image is selected from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio, and a unit expansion ratio, wherein the target image selection formula is as follows: Among them, P aim represents the target duodenal stump fistula image, o represents the initial serial number of the duodenal stump fistula image where the initial image expansion point is located, i represents the difference between the serial number of the target duodenal stump fistula image and the initial serial number, k' represents the expansion ratio, and K represents the unit expansion ratio; Identifying a target image telescoping point in the target duodenal stump image corresponding to the initial image telescoping point; The target image expansion point is used as the center of the display page, and the target duodenal stump fistula image is moved according to the center of the display page to improve the imaging quality of the duodenal stump fistula based on the digital model.
2. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 1, It is characterized in that The step of acquiring a set of plain scan images of the duodenal stump and constructing a three-dimensional model of the duodenal stump according to the plain scan images of the duodenal stump includes: The patient was given a plain CT scan to obtain a plain scan image set of the duodenal stump; The plain scan image set of the duodenal stump is imported into the pre-built Mimics software for three-dimensional reconstruction to obtain the three-dimensional model of the duodenal stump.
3. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 2, It is characterized in that The step of extracting the stereoscopic center point of the three-dimensional model of the duodenal stump includes: Extracting a vector vertical surface set of the three-dimensional model of the duodenal stump in a preset direction; Each of the vector vertical planes in the vector vertical plane set is translated to a position circumscribed to the three-dimensional model of the duodenal stump to obtain a circumscribed cube of the three-dimensional model of the duodenal stump; The geometric center of the circumscribed cube is extracted to obtain the stereo center point.
4. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 3, It is characterized in that The step of obtaining the stump fistula observation trajectory according to the stereo center point and the plane center point includes: Connecting the three-dimensional center point and the plane center point to obtain a center point connecting line segment; Extend the midline point connecting line segment to both sides according to the line segment direction to obtain a midline point connecting line; Extracting two intersection points of the center point connection line and the three-dimensional model of the duodenal stump; The two intersection points are connected to obtain the stump fistula observation trajectory.
5. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 1, It is characterized in that The identifying the size of the region of the duodenal stump fistula in each of the duodenal stump fistula images comprises: identifying a region polygon of the duodenal stump fistula in the duodenal stump fistula image; The radial length of the regional polygon is calculated to obtain the regional size of the duodenal stump fistula.
6. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 5, It is characterized in that The calculating the unit scaling ratio of two adjacent duodenal stump fistula images according to the region size includes: Extract the radial length of the regional polygon of the duodenal stump fistula in the same direction from two adjacent duodenal stump fistula images; The ratio of radial lengths of the polygons of the duodenal stump fistula region in the two adjacent duodenal stump fistula images is calculated to obtain the unit expansion ratio.
7. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 6, It is characterized in that The selecting a target duodenal stump fistula image from the duodenal stump fistula image set according to the pre-constructed target image selection formula, the scaling ratio and the unit scaling ratio comprises: Calculating a telescopic scale according to the telescopic ratio and the unit telescopic ratio; Calculating the telescopic range according to the sequence number of the duodenal stump fistula image where the telescopic point of the initial image is located and the total number of images in the duodenal stump fistula image set; Determining whether the telescopic scale is within the telescopic range; If the telescopic scale is not within the telescopic range, prompting the user to re-enter the telescopic ratio; If the telescopic scale is within the telescopic range, a target duodenal stump fistula image is selected from the duodenal stump fistula image set according to the target image selection formula.
8. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 7, It is characterized in that The calculating the telescopic range according to the sequence number of the duodenal stump fistula image where the telescopic point of the initial image is located and the total number of images in the duodenal stump fistula image set includes: The serial number of the duodenal stump fistula image where the initial image expansion and contraction point is located is used as a narrowable range; Calculate the magnifiable range according to the sequence number of the duodenal stump fistula image where the initial image expansion point is located and the total number of images in the duodenal stump fistula image set; The retractable range is obtained by combining the retractable range and the enlargeable range.
9. The method for improving the imaging quality of duodenal stump fistula based on a digital model as claimed in claim 8, It is characterized in that The step of identifying a target image expansion point in the target duodenal stump image corresponding to the initial image expansion point comprises: Extracting the initial center point of the duodenal stump fistula image where the initial image expansion point is located, and calculating the angle offset value according to the positions of the initial center point and the initial image expansion point; A target image telescopic point is extracted from the target duodenal stump image according to the angle offset value and the telescopic ratio.
10. A device for improving the imaging quality of duodenal stump fistula based on digital model. It is characterized in that The device comprises: A stump fistula observation trajectory acquisition module is used to acquire a set of plain scan images of the duodenal stump, construct a three-dimensional model of the duodenal stump based on the plain scan image set of the duodenal stump, and extract the stereoscopic center point of the three-dimensional model of the duodenal stump; acquire the actual position of the duodenal stump fistula, and construct a duodenal stump fistula model on the three-dimensional model of the duodenal stump based on the actual position of the duodenal stump fistula; extract the plane center point of the duodenal stump fistula model, and acquire the stump fistula observation trajectory based on the stereoscopic center point and the plane center point; A duodenal stump fistula image set shooting module, used to shoot duodenal stump fistula images according to the stump fistula observation trajectory and a preset moving step distance to obtain a duodenal stump fistula image set; a unit expansion ratio calculation module, used for identifying the area size of the duodenal stump fistula in each of the duodenal stump fistula images, and calculating the unit expansion ratio of two adjacent duodenal stump fistula images according to the area size; A target duodenal stump fistula image selection module is used to receive an initial image expansion point and an expansion ratio, and select a target duodenal stump fistula image from the duodenal stump fistula image set according to a pre-constructed target image selection formula, the expansion ratio and a unit expansion ratio; The target duodenal stump fistula image moving module is used to identify the target image expansion point in the target duodenal stump fistula image corresponding to the initial image expansion point; the target image expansion point is used as the display page center, and the target duodenal stump fistula image is moved according to the display page center to complete the duodenal stump fistula imaging quality improvement based on the digital model.
