Dynamic diaphragm positioning optimization method and device, program product and medical equipment
By acquiring and optimizing the normal diaphragm sequence, the abnormal diaphragm measurement inaccuracy problem caused by lung field deformation in dynamic chest X-ray images was solved, and the accuracy of diaphragm measurement and the reliability of quantitative analysis were achieved.
Patent Information
- Application Number
- CN202510534708.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-04-25
AI Technical Summary
The existing diaphragm measurement methods affect the accuracy of subsequent quantitative analysis in dynamic chest X-ray images.
By acquiring normal and abnormal diaphragmatic sequences, the abnormal diaphragmatic sequence is optimized using normal diaphragmatic sequences, including adjusting the cardiodiaphragmatic angle and lung mask edge, optimizing the positioning of the right diaphragmatic angle and left diaphragmatic angle, and accurately locate the diaphragmatic muscle based on the costopharyngeal angle point and lung mask edge images.
The accuracy of diaphragm measurement in dynamic chest X-ray images is improved, the reliability of subsequent quantitative analysis is ensured, and the measurement error caused by lung field deformation is solved.
Smart Images

Figure CN120374591A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of X-ray two-dimensional image processing, and particularly relates to a method and device for optimizing dynamic diaphragm positioning, a program product, and a medical device. Background Art
[0002] The diaphragm is a muscle-fiber structure located between the chest cavity and the abdominal cavity, with muscle bellies around it and an aponeurosis in the center. It is also translated as the transverse diaphragm and is an important respiratory muscle of the body, accounting for 60% - 80% of the functions of all respiratory muscles.
[0003] Due to the wide availability, low cost, fast imaging speed, and easy acquisition of X-rays, X-rays have become the most widely used main imaging technology in conventional chest and skeletal radiography. In addition, chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images (DCR, dynamic chest radiography) include more time points during free breathing, and dynamic information of the diaphragm can be provided based on chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images.
[0004] Specifically, Tanaka et al. evaluated the correlation between diaphragm movement parameters and lung vital capacity. At the same time, Yamada et al. used DCR (dynamic chest radiography) to evaluate the average diaphragm displacement of healthy volunteers and the differences in tidal breathing diaphragm movement between COPD (Chronic obstructive pulmonary disease) and healthy control groups. Subsequently, Yamada et al. further evaluated the correlation between diaphragm movement and anthropometry. In addition, Hida et al. evaluated the diaphragm movement in the standing position during forced breathing and evaluated its relationship with demographics and pulmonary function tests. Subsequently, Hida et al. further evaluated the differences in diaphragm movement speed and displacement between chronic obstructive pulmonary disease and control groups, as well as the correlation between pulmonary function tests and diaphragm movement. In addition, FitzMaurice et al. described the changes in diaphragm movement and lung area before and after modulator treatment in adults with cystic fibrosis bronchiectasis using DCR. Subsequently, FitzMaurice et al. further described the diaphragm movement in patients with diaphragmatic paralysis treated with DCR, as well as the diaphragmatic joint movement in patients receiving treatment for pulmonary exacerbation of cystic fibrosis bronchiectasis. In addition, Chen et al. used DCR to quantitatively evaluate the diaphragm movement during forced breathing in patients with chronic obstructive pulmonary disease. Therefore, accurate diaphragm detection in dynamic multiple X-ray two-dimensional chest images corresponding to the respiratory process of DCR images is crucial for accurately evaluating diaphragm movement function.
[0005] However, due to the deformation of the lung field in DCR, which leads to abnormal lung field morphology, the existing measurement methods of the diaphragm often result in abnormal diaphragm measurements corresponding to the lung field. Therefore, it is necessary to propose an optimization algorithm to ensure the accuracy of diaphragm measurement on dynamic chest X-ray (dynamic multiple two-dimensional chest X-ray images) images for subsequent quantitative analysis. Summary of the Invention
[0006] The present disclosure proposes a technical solution for a dynamic diaphragm positioning optimization method, device, program product, and medical device.
[0007] According to one aspect of the present disclosure, there is provided a dynamic diaphragm positioning optimization method, including:
[0008] Obtaining a normal right diaphragm sequence (normal right lung diaphragm sequence), an abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), a normal left diaphragm sequence (normal left lung diaphragm sequence), and an abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to multiple dynamic two-dimensional chest X-ray images during the breathing process;
[0009] Using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.
[0010] Preferably, the method of using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence includes: respectively using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second two-dimensional chest X-ray image, to obtain the optimized right cardiophrenic angle corresponding to the second two-dimensional chest X-ray image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second two-dimensional chest X-ray image, and the right lung mask edge in the right lung mask edge image, positioning and optimizing the corresponding right diaphragm (right lung diaphragm).
[0011] Preferably, the method of using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal left diaphragm sequence includes: respectively using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angles corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence in the same first two-dimensional chest X-ray image, to obtain the optimized left cardiophrenic angle corresponding to the first two-dimensional chest X-ray image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first two-dimensional chest X-ray image, and the left lung mask edge in the left lung mask edge image, positioning and optimizing the corresponding left diaphragm (left lung diaphragm).
[0012] Preferably, the method for optimizing the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image by using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence includes: determining the standard X-ray two-dimensional chest images corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image; calculating a second distance in the y direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; adjusting the initial right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle; and based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image, completing the positioning optimization of the abnormal right cardiophrenic angle to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.
[0013] Preferably, the method for optimizing the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image by using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence includes: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; adjusting the initial left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; and based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, completing the positioning optimization of the abnormal left cardiophrenic angle to obtain the optimized left cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.
[0014] Preferably, the method for adjusting the initial right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initial right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle.
[0015] Preferably, the method for adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y direction is greater than or equal to 0, adding the second distance in the y direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged.
[0016] Preferably, the method for completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0017] Preferably, the method for configuring the focus of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: making a second straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; configuring the intersection point with the largest x-direction coordinate among the intersection points of the second straight line and the right lung mask edge in the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0018] Preferably, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; determining the X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest images.
[0019] Preferably, the method for adjusting the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle.
[0020] Preferably, the method for adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: if the first distance in the y direction is greater than or equal to 0, adding the first distance in the y direction to the y-direction coordinate point of the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged.
[0021] Preferably, the method for optimizing the positioning of the abnormal left cardiophrenic angle by using the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional X-ray chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional X-ray chest image as the left cardiophrenic angle after positioning optimization.
[0022] Preferably, the method for configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional X-ray chest image as the left cardiophrenic angle after positioning optimization includes: making a first straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the left lung mask edge in the left lung mask edge image corresponding to the first straight line and the first two-dimensional X-ray chest image as the left cardiophrenic angle after positioning optimization.
[0023] Preferably, the method for determining the standard two-dimensional X-ray chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple two-dimensional X-ray chest images includes: obtaining the first moment corresponding to the first two-dimensional X-ray chest image; determining the two-dimensional X-ray chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple two-dimensional X-ray chest images closest to the first moment as the standard two-dimensional X-ray chest image.
[0024] Preferably, the method for optimizing the positioning of the corresponding right diaphragm based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second two-dimensional X-ray chest image, and the right lung mask edge in the right lung mask edge image includes: configuring the line segment of the right lung mask edge in the right lung mask edge image between the optimized right cardiophrenic angle and the right costophrenic angle point corresponding to the second two-dimensional X-ray chest image as the right diaphragm.
[0025] Preferably, the method for optimizing the positioning of the corresponding left diaphragm based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first two-dimensional X-ray chest image, and the left lung mask edge in the left lung mask edge image includes: configuring the line segment of the left lung mask edge in the left lung mask edge image between the optimized left cardiophrenic angle and the left costophrenic angle point corresponding to the first two-dimensional X-ray chest image as the left diaphragm.
[0026] Preferably, before obtaining the normal right diaphragmatic muscle sequence, abnormal right diaphragmatic muscle sequence, normal left diaphragmatic muscle sequence, and abnormal left diaphragmatic muscle sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the acquisition breathing process, the method for determining the normal right diaphragmatic muscle sequence, abnormal right diaphragmatic muscle sequence, normal left diaphragmatic muscle sequence, and abnormal left diaphragmatic muscle sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the acquisition breathing process includes: obtaining at least one diaphragmatic muscle sequence of the dynamic right pulmonary diaphragmatic muscle sequence and the dynamic left pulmonary diaphragmatic muscle sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the acquisition breathing process; determining the normal right diaphragmatic muscle sequence and the abnormal right diaphragmatic muscle sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence based on the first length sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence; and / or determining the normal left diaphragmatic muscle sequence and the abnormal left diaphragmatic muscle sequence corresponding to the dynamic left pulmonary diaphragmatic muscle sequence based on the second length sequence corresponding to the dynamic left pulmonary diaphragmatic muscle sequence.
[0027] Preferably, the method for determining the normal right diaphragmatic muscle sequence and the abnormal right diaphragmatic muscle sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence based on the first length sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence includes: determining the right pulmonary reference diaphragmatic muscle length as the shortest length in the first length sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence; and respectively determining the other right pulmonary diaphragmatic muscles as normal right diaphragmatic muscles or abnormal right diaphragmatic muscles based on the right pulmonary reference diaphragmatic muscle length, the first length other than the right pulmonary reference diaphragmatic muscle length in the first length sequence, and the first preset length difference.
[0028] Preferably, the method for determining the normal left diaphragmatic muscle sequence and the abnormal left diaphragmatic muscle sequence corresponding to the dynamic left pulmonary diaphragmatic muscle sequence based on the second length sequence corresponding to the dynamic left pulmonary diaphragmatic muscle sequence includes: determining the left pulmonary reference diaphragmatic muscle length as the shortest length in the second length sequence corresponding to the dynamic left pulmonary diaphragmatic muscle sequence; and respectively determining the other left pulmonary diaphragmatic muscles as normal left diaphragmatic muscles or abnormal left diaphragmatic muscles based on the left pulmonary reference diaphragmatic muscle length, the second length other than the left pulmonary reference diaphragmatic muscle length in the second length sequence, and the second preset length difference.
[0029] Preferably, the method for determining the right pulmonary reference diaphragmatic muscle length as the shortest length in the first length sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence; and respectively determining the other right pulmonary diaphragmatic muscles as normal right diaphragmatic muscles or abnormal right diaphragmatic muscles based on the right pulmonary reference diaphragmatic muscle length, the first length other than the right pulmonary reference diaphragmatic muscle length in the first length sequence, and the first preset length difference includes: determining the right pulmonary diaphragmatic muscle with the shortest length in the first length sequence corresponding to the dynamic right pulmonary diaphragmatic muscle sequence as the right pulmonary reference diaphragmatic muscle; and respectively determining the other right pulmonary diaphragmatic muscles as normal right diaphragmatic muscles or abnormal right diaphragmatic muscles based on the first reference length corresponding to the right pulmonary reference diaphragmatic muscle, the first length corresponding to the other right pulmonary diaphragmatic muscles in the dynamic right pulmonary diaphragmatic muscle sequence except the right pulmonary reference diaphragmatic muscle, and the first preset length difference.
[0030] Preferably, the method for determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and based on the left lung reference diaphragm length, the second lengths other than the left lung reference diaphragm length in the second length sequence, and the second preset length difference, respectively determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms includes: determining the left lung diaphragm with the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence as the left lung reference diaphragm; and based on the second reference length corresponding to the left lung reference diaphragm, the second lengths corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence except the left lung reference diaphragm, and the second preset length difference, respectively determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms.
[0031] Preferably, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: respectively counting the sum of the number of first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; respectively obtaining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the number of first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel; and / or, the method for respectively determining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the number of first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the number of first pixel values corresponding to each right lung diaphragm by the area corresponding to each pixel to obtain the first length sequence corresponding to the dynamic right lung diaphragm sequence.
[0032] Preferably, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: respectively counting the sum of the number of second pixel values corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence; respectively obtaining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the number of second pixel values corresponding to each left lung diaphragm and the area corresponding to each pixel; and / or, the method for respectively determining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the number of second pixel values corresponding to each left lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the number of second pixel values corresponding to each left lung diaphragm by the area corresponding to each pixel to obtain the second length sequence corresponding to the dynamic left lung diaphragm sequence.
[0033] Preferably, the method for respectively determining the right lung apex corresponding to the right lung mask edge image sequence includes: respectively detecting the right lung vertex corresponding to each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the right lung vertex as the right lung apex corresponding to the right lung mask edge image sequence.
[0034] Preferably, the method for respectively determining the left lung apex corresponding to the left lung mask edge image sequence includes: respectively detecting the left lung vertices corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the left lung vertices as the left lung apex corresponding to the left lung mask edge image sequence.
[0035] Preferably, the method for respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence includes: respectively detecting the right lung lowest points corresponding to each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the right lung lowest points as the right costophrenic angle points corresponding to the right lung mask edge image sequence.
[0036] Preferably, the method for respectively determining the left costophrenic angle point corresponding to the left lung mask edge image sequence includes: respectively detecting the left lung lowest points corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the left lung lowest points as the left costophrenic angle points corresponding to the left lung mask edge image sequence.
[0037] Preferably, the method for respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the dynamic multiple X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right lung diaphragm.
[0038] Preferably, the method for respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining an auxiliary point corresponding to the corresponding lung mask edge image based on the coordinate point of the right cardiophrenic angle and the set increment in the y direction corresponding to each of the dynamic multiple X-ray two-dimensional chest images; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel position points on the left edge line of the left lung mask edge image from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle, and configuring the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left lung diaphragm.
[0039] Preferably, the method for respectively determining whether the other right diaphragms are normal or abnormal based on the right lung reference diaphragm length, the first length in the first length sequence other than the right lung reference diaphragm length, and the first preset length difference includes: calculating a plurality of first differences between the first length other than the right lung reference diaphragm length and the right lung reference diaphragm length; if a certain first difference among the plurality of differences is greater than or equal to the first preset length difference, determining the right diaphragm corresponding to the certain first difference as an abnormal right diaphragm; otherwise, determining it as a normal right diaphragm.
[0040] Preferably, the method for determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and respectively determining whether the other left diaphragms are normal or abnormal based on the left lung reference diaphragm length, the second length in the second length sequence other than the left lung reference diaphragm length, and the second preset length difference includes: calculating a plurality of second differences between the second length other than the left lung reference diaphragm length and the left lung reference diaphragm length; if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference, determining the left diaphragm corresponding to the certain second difference as an abnormal left diaphragm; otherwise, determining it as a normal left diaphragm.
[0041] Preferably, it further includes: obtaining at least one diaphragm sequence of the right diaphragm sequence corresponding to the normal right diaphragm and the abnormal right diaphragm, and the left diaphragm sequence corresponding to the normal left diaphragm and the abnormal left diaphragm in the dynamic multiple X-ray two-dimensional chest images during the breathing process; wherein, the diaphragm sequence includes: a right diaphragm sequence and / or a left diaphragm sequence; optimizing the positioning of the right cardiophrenic angle corresponding to the abnormal right diaphragm based on the right cardiophrenic angle corresponding to the normal right diaphragm; and / or, optimizing the positioning of the left cardiophrenic angle corresponding to the abnormal left diaphragm based on the left cardiophrenic angle corresponding to the normal left diaphragm.
[0042] Preferably, obtaining the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm; respectively optimizing the positioning of each abnormal diaphragm based on the optimized right cardiophrenic angle, the right costophrenic angle point, and the right lung mask edge image corresponding to each abnormal right diaphragm; and / or, obtaining the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm; respectively optimizing the positioning of each abnormal diaphragm based on the optimized left cardiophrenic angle, the left costophrenic angle point, and the left lung mask edge image corresponding to each abnormal left diaphragm.
[0043] Preferably, the unit of the first length sequence and / or the second length sequence is configured as a pixel value; wherein, the sum of the number of first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence is respectively counted to obtain the first length sequence.
[0044] Preferably, the sum of the numbers of the second pixel values corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence is respectively counted to obtain the second length sequence.
[0045] Preferably, the first preset length difference and the numerical values configured by the first preset length difference are the same or different; and / or, the first numerical value corresponding to the first preset length difference is configured as any numerical value in 10 - 50 pixels; the second numerical value corresponding to the second preset length difference is configured as any numerical value in 10 - 50 pixels.
[0046] Preferably, before obtaining at least one of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for respectively determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence according to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: respectively obtaining at least one mask edge image sequence of the right lung mask edge image sequence and the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung mask edge image sequence; respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images; and / or, respectively determining the left lung apex corresponding to the left lung mask edge image sequence, and respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.
[0047] According to one aspect of the present disclosure, there is provided a dynamic diaphragm positioning optimization device, including:
[0048] An acquisition unit, configured to acquire a normal right diaphragm sequence (normal right lung diaphragm sequence), an abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), a normal left diaphragm sequence (normal left lung diaphragm sequence), and an abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process;
[0049] A diaphragm positioning optimization unit, configured to use the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence; or,
[0050] Including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to call the instructions stored in the memory to execute the above-mentioned dynamic diaphragm positioning optimization method; or,
[0051] Including: A computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the above-described dynamic diaphragm positioning optimization method is implemented.
[0052] According to one aspect of the present disclosure, there is provided a computer program product including computer programs / instructions, characterized in that when the computer programs / instructions are executed by a processor, the above-described dynamic diaphragm positioning optimization method is implemented.
[0053] According to one aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the above-described dynamic diaphragm positioning optimization method.
[0054] According to one aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the above-described dynamic diaphragm positioning optimization method is implemented.
[0055] According to one aspect of the present disclosure, there is provided a dynamic diaphragm positioning optimization system or medical device that applies the above-described dynamic diaphragm positioning optimization method and / or includes the above-described dynamic diaphragm positioning optimization device and / or includes the above-described computer program product.
[0056] In an embodiment of the present disclosure, the present disclosure proposes a technical solution for a dynamic diaphragm positioning optimization method, device, program product, and medical device to solve existing problems.
[0057] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure.
[0058] According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The accompanying drawings herein are incorporated into the specification and form a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to explain the technical solutions of the present disclosure.
[0060] Figure 1 A flowchart showing a dynamic diaphragm positioning optimization method according to an embodiment of the present disclosure;
[0061] Figure 2 A block diagram of an electronic device 800 shown according to an exemplary embodiment;
[0062] Figure 3 A block diagram of an electronic device 1900 shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0063] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0064] As used herein, the term "exemplary" means "serving as an example, embodiment, or illustration". Any embodiment described herein as "exemplary" is not necessarily to be construed as superior to or better than other embodiments.
[0065] As used herein, the term "and / or" is merely a description of an association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" as used herein means any one of a plurality or any combination of at least two of a plurality. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0066] In addition, for a better illustration of the present disclosure, numerous specific details are given in the following detailed description. Those skilled in the art should understand that the present disclosure can also be implemented without some specific details. In some instances, methods, means, elements, and circuits well-known to those skilled in the art are not described in detail so as to highlight the gist of the present disclosure.
[0067] It can be understood that the above-mentioned various method embodiments of the present disclosure can be combined with each other to form combined embodiments without violating the principle logic. Due to space limitations, the present disclosure will not elaborate further.
[0068] In addition, the present disclosure also provides a dynamic diaphragm positioning optimization device, an electronic device, a computer-readable storage medium, a program product, and a medical device, all of which can be used to implement any one of the dynamic diaphragm positioning optimization methods provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the part of the dynamic diaphragm positioning optimization method and will not be elaborated further.
[0069] Figure 1 A flowchart showing a dynamic diaphragm positioning optimization method according to an embodiment of the present disclosure is as Figure 1As shown, the dynamic diaphragm positioning optimization method includes: Step S101: Obtain a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; Step S102: Use the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence. To solve problems such as the deformation of the lung field leading to abnormal lung field morphology and subsequent diaphragm positioning errors.
[0070] Among them, in the embodiments of the present disclosure and other possible embodiments, the X-ray two-dimensional chest image may be referred to as a chest (lung) X-ray two-dimensional image, or a two-dimensional X-ray chest (lung) image, or an X-ray two-dimensional lung image, etc. Any combination of two or more of X-ray / DR, two-dimensional, chest / lung, and image expresses the same meaning.
[0071] Step S101: Obtain a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process.
[0072] In the embodiments of the present disclosure and other possible embodiments, obtain a normal right diaphragm sequence (normal right lung diaphragm sequence), an abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), a normal left diaphragm sequence (normal left lung diaphragm sequence), and an abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process.
[0073] In the embodiments of the present disclosure and other possible embodiments, a digital X-ray (DR) imaging device can provide high-resolution and real-time X-ray two-dimensional images, and the DR imaging device can be used to image the chest to obtain corresponding X-ray two-dimensional chest images. For example, in the embodiments of the present disclosure and other possible embodiments, during the free breathing process or the forced breathing process, the digital X-ray imaging device can be used to photograph the chest containing the lungs to obtain multiple dynamic X-ray two-dimensional chest images (dynamic X-ray two-dimensional chest images to be positioned) corresponding to multiple consecutive time series; at the same time, in the breath-holding state, the digital X-ray imaging device can also be used to photograph the chest containing the lungs to obtain multiple dynamic X-ray two-dimensional chest images (X-ray two-dimensional chest images to be positioned) corresponding to multiple consecutive time series in the breath-holding state. Specifically, the multiple dynamic X-ray two-dimensional chest images during the breathing process or the multiple dynamic X-ray two-dimensional chest images in the breath-holding state include at least 1 X-ray two-dimensional chest image.
[0074] In embodiments of the present disclosure and other possible embodiments, a lung image to be segmented (the dynamic multiple X-ray two-dimensional chest images during the breathing process / the dynamic X-ray two-dimensional chest images to be positioned) is segmented into a left chest image and a right chest image; based on the left chest image and the right chest image respectively, left lung and right lung segmentation is performed.
[0075] In embodiments of the present disclosure and other possible embodiments, the lung image to be segmented (the dynamic multiple X-ray two-dimensional chest images during the breathing process / the dynamic X-ray two-dimensional chest images to be positioned) is segmented into a left chest image and a right chest image; based on the left chest image and the right chest image respectively, left lung and right lung segmentation is performed; or, a segmentation model of a preset convolutional neural network, a DR lung region label image for training the segmentation model, and multiple DR lung images to be segmented at multiple moments during the breathing process or in the breath-holding state (lung images to be segmented / the dynamic multiple X-ray two-dimensional chest images during the breathing process to be segmented / the dynamic X-ray two-dimensional chest images to be positioned to be segmented) are obtained; wherein, the method for determining the DR lung region label image for training the segmentation model includes: respectively detecting the costal margin boundary, the lung apex boundary, and the mediastinal and diaphragmatic margins of the left chest image and the right chest image of multiple DR lung region images, to obtain the DR lung region label images corresponding to the multiple DR lung region images; using the DR lung region label image for training the segmentation model to train the segmentation model; based on the trained segmentation model, completing the left lung and / or right lung segmentation of the multiple DR lung images to be segmented (i.e., the X-ray two-dimensional chest images to be positioned / the X-ray two-dimensional chest images), to obtain the right lung mask image and / or the left lung mask image. Among them, the lung field mask value corresponding to the right lung mask image can be configured as 1, and the lung field mask value corresponding to the left lung mask image can be configured as 2.
[0076] In embodiments of the present disclosure and other possible embodiments, the lung region (lung field) of multiple DR lung images to be segmented at multiple moments during the breathing process or in the breath-holding state (lung images to be segmented / the dynamic multiple X-ray two-dimensional chest images during the breathing process to be segmented / the dynamic X-ray two-dimensional chest images to be positioned to be segmented) can be marked in a manual marking manner to obtain the DR lung region label image (X-ray two-dimensional lung region / lung field label image) for training the segmentation model; then, using the DR lung region label image (X-ray two-dimensional lung region / lung field label image) to train the segmentation model; finally, using the trained segmentation model (preset lung field segmentation model) to perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images respectively, to obtain the right lung mask image sequence and / or the left lung mask image sequence.
[0077] In embodiments of the present disclosure and other possible embodiments, before obtaining at least one mask edge image sequence of the right lung mask edge image sequence (right lung mask edge image) and the left lung mask edge image sequence (left lung mask edge image) corresponding to a plurality of dynamic X-ray two-dimensional chest images (X-ray two-dimensional chest images to be located) respectively, the method for respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the plurality of dynamic X-ray two-dimensional chest images includes: using an erosion template of a set size to respectively erode the right lung mask image sequence and / or the left lung mask image sequence to obtain a corresponding right lung mask eroded image sequence (right lung mask eroded image) and / or a left lung mask eroded image sequence (left lung mask eroded image); respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask eroded image sequence and / or based on the left lung mask image sequence and its corresponding left lung mask eroded image sequence.
[0078] Wherein, in embodiments of the present disclosure and other possible embodiments, the set of left lung mask edge images corresponding to each X-ray two-dimensional chest image in the plurality of dynamic X-ray two-dimensional chest images constitutes a left lung mask edge image sequence; similarly, the set of right lung mask edge images corresponding to each X-ray two-dimensional chest image in the plurality of dynamic X-ray two-dimensional chest images constitutes a right lung mask edge image sequence.
[0079] Wherein, in embodiments of the present disclosure and other possible embodiments, the set of right lung mask eroded images corresponding to each X-ray two-dimensional chest image in the plurality of dynamic X-ray two-dimensional chest images constitutes a right lung mask eroded image sequence; similarly, the set of left lung mask eroded images corresponding to each X-ray two-dimensional chest image in the plurality of dynamic X-ray two-dimensional chest images constitutes a left lung mask eroded image sequence.
[0080] In embodiments of the present disclosure and other possible embodiments, the method for determining the right lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask eroded image sequence includes: subtracting the pixel value at each position in the right lung mask eroded image sequence from the pixel value at the corresponding position in the right lung mask image sequence to determine the right lung mask edge image sequence.
[0081] In embodiments of the present disclosure and other possible embodiments, the method for determining the left lung mask edge image sequence based on the left lung mask image sequence and its corresponding left lung mask eroded image sequence includes: subtracting the pixel value at each position in the left lung mask eroded image sequence from the pixel value at the corresponding position in the left lung mask image sequence to determine the left lung mask edge image sequence.
[0082] In embodiments of the present disclosure and other possible embodiments, before respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images, a preset lung field segmentation model is used to respectively perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images to obtain the right lung mask image sequence and / or the left lung mask image sequence.
[0083] In embodiments of the present disclosure and other possible embodiments, the erosion template of the set size can be configured as an N×N erosion template with each pixel value being 1; the right lung mask image and / or the left lung mask image are respectively eroded using the N×N erosion template with each pixel value being 1 to obtain the corresponding right lung mask eroded image and / or left lung mask eroded image. Specifically, the right lung mask image and / or the left lung mask image are traversed row / column by using the erosion template of the set size (N×N with each pixel value being 1) to obtain the corresponding right lung mask eroded image and / or left lung mask eroded image.
[0084] In embodiments of the present disclosure and other possible embodiments, the erosion template of the set size can be configured as a 3×3 erosion template with each pixel value being 1. Among them, the 3×3 erosion template with each pixel value being 1 traverses each lung field mask image (right lung mask image and / or left lung mask image) row / column with a step size of 1 pixel, for generating the corresponding right lung mask eroded image and / or left lung mask eroded image. More specifically, if the 9 values with pixel value 1 in the 3×3 pixel correction template are multiplied by the points of the traversed right lung mask image and / or left lung mask image, and the first and last of these 9 values are not 0, it is considered that the lung field corresponding to the right lung mask image and / or left lung mask image has been detected. When the lung field is detected, the position information of the center of the 3×3 erosion template and its pixel value are recorded. Then, based on the recorded position information and its pixel value (1 or 2), the corresponding right lung mask eroded image and / or left lung mask eroded image are generated. Then, the right lung mask image and / or the left lung mask image are respectively subtracted from the corresponding right lung mask eroded image and / or left lung mask eroded image to obtain the corresponding right lung mask edge image and / or left lung mask edge image. Among them, 1 can represent the right lung, and 2 can represent the left lung.
[0085] In the embodiments of the present disclosure and other possible embodiments, the method of using a preset lung field segmentation model to perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images respectively to obtain the right lung mask image sequence and / or the left lung mask image sequence includes: using the preset lung field segmentation model to perform lung field segmentation on the to-be-dynamic multiple X-ray two-dimensional chest images respectively to obtain a to-be-processed right lung mask image sequence (to-be-processed right lung mask image) and / or a to-be-processed left lung mask image sequence (to-be-processed left lung mask image sequence); using a connected component algorithm to process the to-be-processed right lung mask image sequence and / or the to-be-processed left lung mask image sequence respectively to remove over-segmented regions outside the lung field, so as to obtain the right lung mask image sequence and / or the left lung mask image sequence.
[0086] In the embodiments of the present disclosure and other possible embodiments, the preset convolutional neural network corresponding to the segmentation model (preset lung field segmentation model) can be configured as a Unet convolutional neural network or an nnUnet convolutional neural network or a convolutional neural network improved based on the Unet convolutional neural network or a convolutional neural network improved based on the nnUnet convolutional neural network. For example, the convolutional neural network improved based on the Unet convolutional neural network can be configured as a ResUnet convolutional neural network with a residual structure.
[0087] In the embodiments of the present disclosure and other possible embodiments, the Unet convolutional neural network or the nnUnet convolutional neural network or the convolutional neural network improved based on the Unet convolutional neural network or the convolutional neural network improved based on the nnUnet convolutional neural network at least includes: a downsampling contraction path, an upsampling expansion path, and a final classification layer.
[0088] In the embodiments of the present disclosure and other possible embodiments, before training the segmentation model using the DR lung region label image for training the segmentation model, data augmentation is performed on the DR lung region label image to obtain an enhanced DR lung region label image; and the segmentation model is trained using the enhanced DR lung region label image.
[0089] In the embodiments of the present disclosure and other possible embodiments, the method of performing data augmentation on the DR lung region label image to obtain an enhanced DR lung region label image includes: performing spatial geometric transformation and / or flipping and / or rotation and / or cropping and / or scaling and / or image shifting and / or edge padding and / or random erasing and / or random occlusion operations on the DR lung region label image to obtain an enhanced DR lung region label image.
[0090] In the embodiments of the present disclosure and other possible embodiments, the method of performing data enhancement on the DR lung region label image to obtain the enhanced DR lung region label image further includes: randomly extracting any two DR lung region label images from the DR lung region label image; performing a registration operation on the any two DR lung region label images to obtain corresponding DR lung region label registration images; and performing a fusion operation on the DR lung region label registration images to obtain the enhanced DR lung region label image. Among them, the registration operation on the any two DR lung region label images can adopt existing registration algorithms or models, such as one or several of the SIFT (Scale-invariant feature transform) registration algorithm or model, SURF (Speeded Up Robust Features) registration algorithm or model, ORB (Oriented FAST and Rotated BRIEF) registration algorithm or model, or other registration algorithms or models based on convolutional neural networks. For example, the registration algorithm or model based on convolutional neural networks can be configured as a registration algorithm or model based on the VGG network.
[0091] In the embodiments of the present disclosure and other possible embodiments, the method of performing a fusion operation on the DR lung region label registration image to obtain the enhanced DR lung region label image includes: respectively performing a minimum value taking, maximum value taking, or average value taking operation on the pixel values corresponding to the DR lung region label registration image to obtain the enhanced DR lung region label image.
[0092] In the embodiments of the present disclosure, before obtaining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process, the method for determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process includes: obtaining at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; determining the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on the first length sequence corresponding to the dynamic right lung diaphragm sequence; and / or determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on the second length sequence corresponding to the dynamic left lung diaphragm sequence.
[0093] In an embodiment of the present disclosure, the method for determining the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: determining the right lung reference diaphragm length as the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and respectively determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung reference diaphragm length, the first length other than the right lung reference diaphragm length in the first length sequence, and the first preset length difference.
[0094] In an embodiment of the present disclosure, the method for determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and respectively determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length other than the left lung reference diaphragm length in the second length sequence, and the second preset length difference.
[0095] In an embodiment of the present disclosure and other possible embodiments, the method for determining the right lung reference diaphragm length as the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and respectively determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung reference diaphragm length, the first length other than the right lung reference diaphragm length in the first length sequence, and the first preset length difference includes: determining the right lung reference diaphragm as the right lung diaphragm with the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and respectively determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the first reference length corresponding to the right lung reference diaphragm, the first length corresponding to the other right lung diaphragms in the dynamic right lung diaphragm sequence except the right lung reference diaphragm, and the first preset length difference.
[0096] In an embodiment of the present disclosure and other possible embodiments, the method for determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and respectively determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length other than the left lung reference diaphragm length in the second length sequence, and the second preset length difference includes: determining the left lung reference diaphragm as the left lung diaphragm with the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and respectively determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms based on the second reference length corresponding to the left lung reference diaphragm, the second length corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence except the left lung reference diaphragm, and the second preset length difference.
[0097] In the embodiments of the present disclosure and other possible embodiments, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: respectively counting the sum of the numbers of first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; respectively obtaining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the numbers of first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel; and / or, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the numbers of first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the numbers of first pixel values corresponding to each right lung diaphragm by the area corresponding to each pixel to obtain the first length sequence corresponding to the dynamic right lung diaphragm sequence.
[0098] In the embodiments of the present disclosure and other possible embodiments, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: respectively counting the sum of the numbers of second pixel values corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence; respectively obtaining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the numbers of second pixel values corresponding to each left lung diaphragm and the area corresponding to each pixel; and / or, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the numbers of second pixel values corresponding to each left lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the numbers of second pixel values corresponding to each left lung diaphragm by the area corresponding to each pixel to obtain the second length sequence corresponding to the dynamic left lung diaphragm sequence.
[0099] In the embodiments of the present disclosure and other possible embodiments, the area corresponding to each pixel can be obtained by reading the DICOM (Digital Imaging and Communications in Medicine) file corresponding to multiple dynamic X-ray two-dimensional chest images during breathing; where DICOM, namely Digital Imaging and Communications in Medicine, is an international standard (ISO 12052) for medical images and related information, and it defines a medical image format that can be used for data exchange and whose quality can meet clinical needs. In addition, the area corresponding to each pixel can also be input through an input device (such as a keyboard, etc.).
[0100] In the embodiments of the present disclosure and other possible embodiments, the unit of the first length sequence and / or the second length sequence is configured as pixel values. Wherein, the sum of the numbers of first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence is respectively counted to obtain the first length sequence; and / or, the sum of the numbers of second pixel values corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence is respectively counted to obtain the second length sequence.
[0101] Meanwhile, in the embodiments of the present disclosure and other possible embodiments, the first preset length difference and the value configured by the first preset length difference are the same or different. For example, the first value corresponding to the first preset length difference is configured as any value in 10 - 50 pixels; the second value corresponding to the second preset length difference is configured as any value in 10 - 50 pixels. Meanwhile, those skilled in the art can also configure other values for the first value corresponding to the first preset length difference and the second value corresponding to the second preset length difference according to actual needs.
[0102] For example, in the embodiments of the present disclosure and other possible embodiments, the first value corresponding to the first preset length difference and the second value corresponding to the second preset length difference can be respectively configured as any value in 10, 20, 30, 40, 50.
[0103] In the embodiments of the present disclosure, before obtaining at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for respectively determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence according to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: respectively obtaining at least one mask edge image sequence of the right lung mask edge image sequence (right lung mask edge image) and the left lung mask edge image sequence (left lung mask edge image) corresponding to the dynamic multiple X-ray two-dimensional chest images (the dynamic X-ray two-dimensional chest images to be located during the breathing process / the dynamic lung images during the breathing process); respectively determining the right lung apex corresponding to each right lung mask edge image in the right lung mask edge image sequence; respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each right lung mask edge image); and / or, respectively determining the left lung apex corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively determining the right costophrenic angle point corresponding to each left lung mask edge image in the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each left lung mask edge image), the left lung apex, the left costophrenic angle point, and the left lung mask edge image. Wherein, the set of right lung diaphragms corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic right lung diaphragm sequence; similarly, the set of left lung diaphragms corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic left lung diaphragm sequence.
[0104] In the embodiments of the present disclosure and other possible embodiments, the method for respectively determining the right lung apex corresponding to the right lung mask edge image sequence includes: respectively detecting the right lung vertices corresponding to each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the right lung vertices as the right lung apex corresponding to the right lung mask edge image sequence.
[0105] In the embodiments of the present disclosure and other possible embodiments, the method for respectively determining the left lung apex corresponding to the left lung mask edge image sequence includes: respectively detecting the left lung vertices corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the left lung vertices as the left lung apex corresponding to the left lung mask edge image sequence.
[0106] In the embodiments of the present disclosure and other possible embodiments, the method for respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence includes: respectively detecting the right lung lowest points corresponding to each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the right lung lowest points as the right costophrenic angle points corresponding to the right lung mask edge image sequence.
[0107] In the embodiments of the present disclosure and other possible embodiments, the method for respectively determining the left costophrenic angle point corresponding to the left lung mask edge image sequence includes: respectively detecting the left lung lowest points corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the left lung lowest points as the left costophrenic angle points corresponding to the left lung mask edge image sequence.
[0108] In the embodiments of the present disclosure and other possible embodiments, the method for respectively localizing the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the dynamic multiple X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points on the right side edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right lung diaphragm.
[0109] In embodiments of the present disclosure and other possible embodiments, the method for positioning the left pulmonary diaphragm respectively based on the right cardiophrenic angle corresponding to the right pulmonary diaphragm, the left pulmonary apex, the left costophrenic angle point, and the left pulmonary mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining the auxiliary points corresponding to the corresponding pulmonary mask edge images based on the coordinate points of the right cardiophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images and the set increment in the y direction; determining the corresponding second straight line based on the left pulmonary apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel position points on the left edge line of the left pulmonary mask edge image from the right pulmonary apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle, and configuring the mask edge line segment corresponding to the left pulmonary mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left pulmonary diaphragm.
[0110] In embodiments of the present disclosure and other possible embodiments, the method for respectively determining whether the other right pulmonary diaphragms are normal right diaphragms or abnormal right diaphragms based on the right pulmonary reference diaphragm length, the first length other than the right pulmonary reference diaphragm length in the first length sequence, and the first preset length difference includes: respectively calculating multiple first differences between the first length other than the right pulmonary reference diaphragm length and the right pulmonary reference diaphragm length; if a certain first difference among the multiple differences is greater than or equal to the first preset length difference, determining the right diaphragm corresponding to the certain first difference as an abnormal right diaphragm; otherwise, determining it as a normal right diaphragm.
[0111] For example, in embodiments of the present disclosure and other possible embodiments, the first preset length difference is configured to be 20 mm or 20 pixels. Respectively calculate multiple first differences between the first length other than the right pulmonary reference diaphragm length and the right pulmonary reference diaphragm length; if a certain first difference among the multiple differences is greater than or equal to the first preset length difference of 20 mm or 20 pixels, determining the right diaphragm corresponding to the certain first difference as an abnormal right diaphragm; if a certain first difference among the multiple differences is less than the first preset length difference of 20 mm or 20 pixels, determining the right diaphragm corresponding to the certain first difference as a normal right diaphragm.
[0112] In embodiments of the present disclosure and other possible embodiments, the method of determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second lengths other than the left lung reference diaphragm length in the second length sequence, and a second preset length difference, includes: calculating a plurality of second differences between the second lengths other than the left lung reference diaphragm length and the left lung reference diaphragm length respectively; if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference, determining the left diaphragm corresponding to the certain second difference as an abnormal left diaphragm; otherwise, determining it as a normal left diaphragm.
[0113] For example, in embodiments of the present disclosure and other possible embodiments, the first preset length difference is configured to be 20 mm or 20 pixels. Calculate a plurality of second differences between the second lengths other than the left lung reference diaphragm length and the left lung reference diaphragm length respectively; if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, determining the left diaphragm corresponding to the certain second difference as an abnormal left diaphragm; if a certain second difference among the plurality of second differences is less than the second preset length difference of 20 mm or 20 pixels, if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, it is a normal left diaphragm.
[0114] In embodiments of the present disclosure and other possible embodiments, it further includes: obtaining at least one diaphragm sequence of the normal right diaphragm and the abnormal right diaphragm corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, and the diaphragm sequence of the normal left diaphragm and the abnormal left diaphragm; wherein, the diaphragm sequence includes: a right diaphragm sequence and / or a left diaphragm sequence; optimizing the positioning of the right cardiophrenic angle corresponding to the abnormal right diaphragm based on the right cardiophrenic angle corresponding to the normal right diaphragm; and / or, optimizing the positioning of the left cardiophrenic angle corresponding to the abnormal left diaphragm based on the left cardiophrenic angle corresponding to the normal left diaphragm.
[0115] In embodiments of the present disclosure and other possible embodiments, obtaining the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm; respectively optimizing the positioning of each abnormal diaphragm based on the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm, the right costophrenic angle point, and the right lung mask edge image; and / or, obtaining the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm; respectively optimizing the positioning of each abnormal diaphragm based on the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm, the left costophrenic angle point, and the left lung mask edge image.
[0116] Among them, in the embodiments of the present disclosure and other possible embodiments, the unit of the first length sequence and / or the second length sequence is configured as a pixel value; wherein, the sum of the number of first pixel values corresponding to each right pulmonary diaphragm in the dynamic right pulmonary diaphragm sequence is respectively counted to obtain the first length sequence; and / or, the sum of the number of second pixel values corresponding to each left pulmonary diaphragm in the dynamic left pulmonary diaphragm sequence is respectively counted to obtain the second length sequence; and / or, the first preset length difference and the value configured by the first preset length difference are the same or different; and / or, the first value corresponding to the first preset length difference is configured as any value in 10-50 pixels; the second value corresponding to the second preset length difference is configured as any value in 10-50 pixels.
[0117] In the embodiments of the present disclosure and other possible embodiments, before obtaining at least one diaphragm sequence of the dynamic right pulmonary diaphragm sequence and the dynamic left pulmonary diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for respectively determining the dynamic right pulmonary diaphragm sequence and / or the dynamic left pulmonary diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: respectively obtaining at least one mask edge image sequence of the right pulmonary mask edge image sequence and the left pulmonary mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images; respectively determining the right pulmonary apex corresponding to the right pulmonary mask edge image sequence; respectively positioning the right pulmonary diaphragm based on the right pulmonary apex, the right costophrenic angle point, and the right pulmonary mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.
[0118] In the embodiments of the present disclosure and other possible embodiments, before obtaining at least one diaphragm sequence of the dynamic right pulmonary diaphragm sequence and the dynamic left pulmonary diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the left pulmonary apex corresponding to the left pulmonary mask edge image sequence is respectively determined, and the right costophrenic angle point corresponding to the right pulmonary mask edge image sequence and / or the left costophrenic angle point corresponding to the left pulmonary mask edge image sequence are respectively determined; the left pulmonary diaphragm is respectively positioned based on the right cardiophrenic angle corresponding to the right pulmonary diaphragm, the left pulmonary apex, the left costophrenic angle point, and the left pulmonary mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.
[0119] In an embodiment of the present disclosure, the method for positioning the right pulmonary diaphragm respectively based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the dynamic multiple X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points (first pixel points) on the right edge line of the right lung mask edge image (the right heart edge line close to the heart side) from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right pulmonary diaphragm.
[0120] In an embodiment of the present disclosure, the method for positioning the left pulmonary diaphragm respectively based on the right cardiophrenic angle corresponding to the right pulmonary diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining corresponding auxiliary points of the lung mask edge image based on the coordinate points of the right cardiophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images and a set increment in the y direction; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel position points (second pixel points) on the left edge line of the left lung mask edge image (the left heart edge line close to the heart side) from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle (left cardiophrenic angle point), and configuring the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left pulmonary diaphragm.
[0121] In an embodiment of the present disclosure and other possible embodiments, the right costophrenic angle point or the left costophrenic angle point corresponding to the left lung or the right lung is close to the origin of the xoy coordinate system; the ordinate of the right lung apex or the left lung apex corresponding to the left lung or the right lung is greater than the ordinate of the corresponding right costophrenic angle point or left costophrenic angle point. For example, the right costophrenic angle point corresponding to the right lung is close to the origin of the xoy coordinate system, the y-axis is configured in the direction from the right costophrenic angle point to the right lung apex, and the x-axis is configured in the direction from the right costophrenic angle point to the left costophrenic angle point.
[0122] For example, in an embodiment of the present disclosure and other possible embodiments, the method for determining a corresponding first straight line based on the right lung apex A1 and the right costophrenic angle point B1 includes: based on the right lung apex A1(x A1 , y A1 ) and the right costophrenic angle point B1(x B1 , y B1)Determine the first coefficient a1, the second coefficient b1, and the third coefficient c1 corresponding to the first straight line Line1; determine the first straight line Line1 based on the first coefficient a1, the second coefficient b1, and the third coefficient c1.
[0123] Line1: a1x + b1y + c1 = 0.
[0124] Furthermore, before calculating the first distances from multiple first pixel points on the right edge line A1B1 (the right heart edge line closer to the heart side) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle point B1 to the first straight line respectively, determine the right edge line A1B1 of the right lung mask edge image based on the right lung apex A1 to the right costophrenic angle point B1. The determination method includes: taking the right lung apex A1 as the starting point respectively, and calculating the lengths of the first edge line and the second edge line of the right lung apex to the right costophrenic angle point from the right lung apex A1 to the right costophrenic angle point B1 along the right lung mask edge line of the right lung mask edge image respectively / calculating the lengths of the first edge line and the second edge line of the right lung apex to the right costophrenic angle point from the right costophrenic angle point B1 to the right lung apex A1; wherein, the first edge line and the second edge line are respectively distributed on both sides of the first straight line Line1, and configure the longest edge line among the lengths of the first edge line and the second edge line as the right edge line A1B1 of the right lung mask edge image.
[0125] For example, in the embodiments of the present disclosure and other possible embodiments, the calculating the first distances from multiple first pixel points on the right edge line A1B1 (the right heart edge line closer to the heart side) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle point B1 to the first straight line respectively includes: taking the right lung apex A1 as the starting point / end point, taking the right costophrenic angle point B1 as the end point / starting point, and calculating the first distances from multiple first pixel points to the first straight line Line1 in sequence along the right edge line A1B1 of the right lung mask edge image. Furthermore, configure the first pixel point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle C1, and configure and position the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle C1 and the right costophrenic angle point B1 as the right lung diaphragm B1C1.
[0126] Specifically, in the embodiments of the present disclosure and other possible embodiments, a calculation formula corresponding to the right cardiophrenic angle C1(x, y) is given.
[0127]
[0128] Wherein, D C1 =(d r1 (p r1),d r2 (p r2 ),d r3 (p r3 ),...,d rn (p rn ) represents the multiple first pixel points p r1 ,p r2 ,p r3 ,...,p rn to the multiple first distances (d r1 (p r1 ),d r2 (p r2 ),d r3 (p r3 ),...,d rn (p rn )); r represents the right lung; n ≥ 1 and is a positive integer; max() represents the maximum function; (x r1 ,y r1 ),(x r2 ,y r2 ),(x r3 ,y r3 ),...,(x rn ,y rn ) respectively represent the multiple first pixel points p r1 ,p r2 ,p r3 ,...,p rn corresponding coordinates; d r1 ,d r2 ,d r3 ,...,d rn respectively represent the Euclidean distances corresponding to the multiple first pixel points p r1 ,p r2 ,p r3 ,...,p rn .
[0129] In an embodiment of the present disclosure, the method for locating the left pulmonary diaphragm based on the right cardiophrenic angle corresponding to the right pulmonary diaphragm, the left pulmonary apex, the left costophrenic angle point, and the edge image of the left pulmonary mask includes: determining an auxiliary point corresponding to the edge image of the pulmonary mask based on the coordinate point of the right cardiophrenic angle and a set increment in the y direction; determining a corresponding second straight line based on the left pulmonary apex and the left costophrenic angle point; respectively calculating a plurality of second distances from a plurality of second pixel points on the left edge line of the left pulmonary mask image (the left cardiac margin line close to the heart side) from the right pulmonary apex to the auxiliary point to the second straight line; configuring the second pixel point corresponding to the maximum distance among the plurality of second distances as the left cardiophrenic angle (left cardiophrenic angle point), and configuring and positioning the mask edge line segment corresponding to the left pulmonary mask image between the left cardiophrenic angle and the left costophrenic angle point as the left pulmonary diaphragm.
[0130] In an embodiment of the present disclosure, the method for determining an auxiliary point corresponding to the edge image of the pulmonary mask based on the coordinate point of the right cardiophrenic angle and a set increment in the y direction includes: adding the set increment in the y direction to the ordinate of the coordinate point to obtain a corresponding auxiliary line parallel to the x direction; determining the intersection point of the auxiliary line and the left pulmonary mask image as the auxiliary point corresponding to the edge image of the pulmonary mask.
[0131] In an embodiment of the present disclosure, the method for determining the intersection point of the auxiliary line and the left pulmonary mask image as the auxiliary point corresponding to the edge image of the pulmonary mask includes: the intersection points of the auxiliary line and the left pulmonary mask image include: a first group of intersection points and a second group of intersection points; determining the intersection point with the smaller / minimum abscissa among the first group of intersection points and the second group of intersection points as the auxiliary point corresponding to the edge image of the pulmonary mask.
[0132] For example, in an embodiment of the present disclosure and other possible embodiments, the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle C1 is added / subtracted by the set increment Δy in the y direction to obtain a corresponding auxiliary line parallel to the x direction (y C1 + / -Δy); the intersection point of the auxiliary line (y C1 + / -Δy) and the left pulmonary mask image is determined as the auxiliary point C2' corresponding to the edge image of the pulmonary mask. Specifically, the intersection points of the auxiliary line and the left pulmonary mask image include: a first group of intersection points and a second group of intersection points; the intersection point with the smaller / minimum abscissa among the first group of intersection points and the second group of intersection points is determined as the auxiliary point C2' corresponding to the edge image of the pulmonary mask.
[0133] Specifically, the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle C1When adding the set increment Δy in the y - direction, the set increment Δy is configured to be negative; or, when subtracting the set increment Δy in the y - direction from the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle C1 the set increment Δy is configured to be positive. The calculation formula corresponding to the auxiliary point C2’(x, y) is given, that is, C'2(x, y) = C1(x, y - Δy).
[0134] Further, in the embodiments of the present disclosure and other possible embodiments, based on the left lung apex A2 and the left costophrenic angle point B2, a corresponding second straight line Line2 is determined; the method for determining the corresponding second straight line Line2 based on the left lung apex A2 and the left costophrenic angle point B2 includes: based on the left lung apex A2(x A2 , y A2 ) and the left costophrenic angle point B2(x B2 , y B2 ) to determine the fourth coefficient a2, the fifth coefficient b2, and the sixth coefficient c2 corresponding to the second straight line Line2; based on the fourth coefficient a2, the fifth coefficient b2, and the sixth coefficient c2, determine the second straight line Line2.
[0135] Line2: a2x + b2y + c2 = 0.
[0136] Furthermore, before respectively calculating the multiple second distances from multiple second pixel points on the left - hand side edge line A2B2 (the left - hand heart - side edge line) of the left - lung mask edge image from the left lung apex A2 to the left costophrenic angle point B2 to the second straight line, based on the left lung apex A2 to the left costophrenic angle point B2, the left - hand side edge line A2B2 of the left - lung mask edge image is determined. The determination method includes: respectively taking the left lung apex A2 as the starting point, and respectively along the left - lung mask edge line of the left - lung mask image, calculating the length of the third edge line and the length of the fourth edge line from the left lung apex A2 to the left costophrenic angle point B2 / calculating the length of the third edge line and the length of the fourth edge line from the left costophrenic angle point B2 to the left lung apex A2; wherein, the third edge line and the fourth edge line are respectively distributed on both sides of the second straight line Line2, and the longest edge line among the length of the first edge line and the length of the second edge line is configured as the left - hand side edge line A2B2 of the right - lung mask edge image.
[0137] For example, in the embodiments of the present disclosure and other possible embodiments, calculating the multiple second distances from multiple second pixel points on the left edge line A1B1 (the left cardiac margin line on the side close to the heart) of the right lung mask edge image from the left lung apex A2 to the right costophrenic angle point B2 respectively includes: taking the left lung apex A2 as the starting / ending point and the right costophrenic angle point B2 as the ending / starting point, and sequentially calculating the multiple second distances from the multiple second pixel points to the second line Line2 along the left edge line A1B1 of the right lung mask edge image. Further, the second pixel point corresponding to the maximum distance among the multiple second distances is configured as the right cardiophrenic angle C2, and the mask edge line segment corresponding to the right lung mask edge image between the left cardiophrenic angle C2 and the right costophrenic angle point B2 is configured and positioned as the left lung diaphragm B2C2.
[0138] Specifically, in the embodiments of the present disclosure and other possible embodiments, a calculation formula for the right cardiophrenic angle C2(x,y) is given.
[0139]
[0140] Wherein, represents the multiple first distances d l1 , p l2 , p l3 ,..., p ln from the multiple second pixel points p to the second line Line2 l1 (p l1 ), d l2 (p l2 ), d l3 (p l3 ),..., d ln (p ln ) ; l represents the right lung; n≥1 and is a positive integer; max() represents the maximum function; (x l1 , y l1 ), (x l2 , y l2 ), (x l3 , y l3 ),...,(x ln , y ln ) respectively represent the coordinates corresponding to the multiple first pixel points p l1 , p l2 , p l3 ,..., p ln ; d l1 , d l2 , d l3 ,..., d ln respectively represent the multiple first pixel points p l1 , p l2 , pl3 ,..., p ln The corresponding Euclidean distance.
[0141] In an embodiment of the present disclosure, the method for optimizing the positioning of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle pairs corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image, to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, optimizing the positioning of the corresponding right diaphragm (right lung diaphragm).
[0142] In an embodiment of the present disclosure, the method for optimizing the positioning of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle pairs corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, optimizing the positioning of the corresponding left diaphragm (left lung diaphragm).
[0143] In the embodiment of the present disclosure and other possible embodiments, before using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle pairs corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image, the right diaphragm corresponding to the same first X-ray two-dimensional chest image is a normal right diaphragm. At the same time, before using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle pairs corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image, the left diaphragm corresponding to the same second X-ray two-dimensional chest image is a normal left diaphragm.
[0144] In the embodiments of the present disclosure and other possible embodiments, the method for respectively using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the first X-ray two-dimensional chest image of the same sheet to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image includes: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the first X-ray two-dimensional chest image of the same sheet; calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; using the first distance in the y direction to adjust the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; and based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, completing the positioning optimization of the abnormal left cardiophrenic angle to obtain the optimized left cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.
[0145] In the embodiments of the present disclosure and other possible embodiments, the method for respectively using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the first X-ray two-dimensional chest image of the same sheet to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image includes: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the first X-ray two-dimensional chest image of the same sheet; calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; using the first distance in the y direction to adjust the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; and based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, completing the positioning optimization of the abnormal left cardiophrenic angle to obtain the optimized left cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.
[0146] In the embodiments of the present disclosure and other possible embodiments, the method for adjusting the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle.
[0147] In the embodiments of the present disclosure and other possible embodiments, the method for adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y direction is greater than or equal to 0, adding the second distance in the y direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged.
[0148] In the embodiments of the present disclosure and other possible embodiments, the method for completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0149] In the embodiments of the present disclosure and other possible embodiments, the method of configuring the focus of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: making a second straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; configuring the intersection point with the largest x-direction coordinate among the intersection points of the right lung mask edge of the second straight line and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0150] In the embodiments of the present disclosure and other possible embodiments, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; determining the X-ray two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest images.
[0151] In the embodiments of the present disclosure and other possible embodiments, the method for adjusting the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle.
[0152] In embodiments of the present disclosure and other possible embodiments, the method of adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: if the first distance in the y direction is greater than or equal to 0, adding the first distance in the y direction to the y-direction coordinate point of the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged.
[0153] In embodiments of the present disclosure and other possible embodiments, the method of completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.
[0154] In embodiments of the present disclosure and other possible embodiments, the method of configuring the focus of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization includes: making a first straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the left lung mask edge in the left lung mask edge image corresponding to the first straight line and the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.
[0155] In embodiments of the present disclosure and other possible embodiments, the method of determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images that is closest to the first moment as the standard X-ray two-dimensional chest image.
[0156] Step S102: Use the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.
[0157] In an embodiment of the present disclosure, the method of positioning and optimizing the corresponding right diaphragm based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image includes: configuring the line segment of the right lung mask edge in the right lung mask edge image between the optimized right cardiophrenic angle and the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image as the right diaphragm after positioning optimization.
[0158] In an embodiment of the present disclosure, the method for positioning and optimizing the corresponding left diaphragm based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image includes: configuring the line segment of the left lung mask edge in the lung mask edge image between the optimized left cardiophrenic angle and the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image as the positioned and optimized left diaphragm.
[0159] In the embodiments of the present disclosure and other possible embodiments, the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm is obtained; each abnormal diaphragm is positioned and optimized respectively based on the optimized right cardiophrenic angle, the right costophrenic angle point, and the right lung mask edge image corresponding to each abnormal right diaphragm; and / or, the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm is obtained; each abnormal diaphragm is positioned and optimized respectively based on the optimized left cardiophrenic angle, the left costophrenic angle point, and the left lung mask edge image corresponding to each abnormal left diaphragm.
[0160] In the embodiments of the present disclosure and other possible embodiments, the method for positioning and optimizing each abnormal diaphragm respectively based on the optimized right cardiophrenic angle, the right costophrenic angle point, and the right lung mask edge image corresponding to each abnormal right diaphragm includes: configuring the line segment between the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm and the right costophrenic angle point in the right lung mask edge image as the positioned and optimized right diaphragm.
[0161] Similarly, in the embodiments of the present disclosure and other possible embodiments, the method for positioning and optimizing each abnormal diaphragm respectively based on the optimized left cardiophrenic angle, the left costophrenic angle point, and the left lung mask edge image corresponding to each abnormal left diaphragm includes: configuring the line segment between the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm and the left costophrenic angle point in the left lung mask edge image as the positioned and optimized left diaphragm.
[0162] The execution subject of the dynamic diaphragm positioning and optimization method may be an image processing device. For example, the dynamic diaphragm positioning and optimization method may be executed by a terminal device, a server, or other processing devices. Among them, the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementation manners, the dynamic diaphragm positioning and optimization method may be implemented by a processor calling computer-readable instructions stored in a memory.
[0163] Those skilled in the art can understand that in the above dynamic diaphragm positioning optimization method of the specific implementation manner, the writing order of each step does not mean a strict execution order and does not impose any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.
[0164] The embodiments of the present disclosure also propose a dynamic diaphragm positioning optimization device, including: an acquisition unit, configured to acquire a normal right diaphragm sequence (normal right lung diaphragm sequence), an abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), a normal left diaphragm sequence (normal left lung diaphragm sequence), and an abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; a diaphragm positioning optimization unit, configured to use the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.
[0165] The embodiments of the present disclosure also propose a dynamic diaphragm positioning optimization device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to call the instructions stored in the memory to execute the above dynamic diaphragm positioning optimization method.
[0166] The embodiments of the present disclosure also propose a dynamic diaphragm positioning optimization device, including: a computer-readable storage medium with computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement the above dynamic diaphragm positioning optimization method. Wherein, the dynamic diaphragm positioning optimization method at least includes: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.
[0167] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the dynamic diaphragm positioning optimization method described in the above method embodiments. Its specific implementation can refer to the description of the above dynamic diaphragm positioning optimization method embodiments. For the sake of brevity, it will not be elaborated here.
[0168] Embodiments of the present disclosure also provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the above-mentioned dynamic diaphragmatic positioning optimization method. Among them, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Among them, the dynamic diaphragmatic positioning optimization method at least includes: obtaining a normal right diaphragmatic sequence, an abnormal right diaphragmatic sequence, a normal left diaphragmatic sequence, and an abnormal left diaphragmatic sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; using the normal right diaphragmatic sequence and the normal left diaphragmatic sequence to perform positioning optimization on the abnormal right diaphragmatic sequence and / or the abnormal left diaphragmatic sequence.
[0169] Embodiments of the present disclosure also provide an electronic device, including: a processor; a memory for storing instructions executable by the processor; among them, the processor is configured to perform the above-mentioned dynamic diaphragmatic positioning optimization method. Among them, the electronic device may be provided as a terminal, a server, or other forms of devices. Among them, the dynamic diaphragmatic positioning optimization method at least includes: obtaining a normal right diaphragmatic sequence, an abnormal right diaphragmatic sequence, a normal left diaphragmatic sequence, and an abnormal left diaphragmatic sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; using the normal right diaphragmatic sequence and the normal left diaphragmatic sequence to perform positioning optimization on the abnormal right diaphragmatic sequence and / or the abnormal left diaphragmatic sequence.
[0170] Embodiments of the present disclosure also provide a computer program product including computer programs / instructions, which, when executed by a processor, implement the above-mentioned dynamic diaphragmatic positioning optimization method. Among them, the dynamic diaphragmatic positioning optimization method at least includes: obtaining a normal right diaphragmatic sequence, an abnormal right diaphragmatic sequence, a normal left diaphragmatic sequence, and an abnormal left diaphragmatic sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; using the normal right diaphragmatic sequence and the normal left diaphragmatic sequence to perform positioning optimization on the abnormal right diaphragmatic sequence and / or the abnormal left diaphragmatic sequence.
[0171] Embodiments of the present disclosure also provide a dynamic diaphragmatic positioning optimization system or medical device that applies the above-mentioned dynamic diaphragmatic positioning optimization method and / or includes the above-mentioned dynamic diaphragmatic positioning optimization device and / or includes the above-mentioned computer program product. Among them, the dynamic diaphragmatic positioning optimization method at least includes: obtaining a normal right diaphragmatic sequence, an abnormal right diaphragmatic sequence, a normal left diaphragmatic sequence, and an abnormal left diaphragmatic sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; using the normal right diaphragmatic sequence and the normal left diaphragmatic sequence to perform positioning optimization on the abnormal right diaphragmatic sequence and / or the abnormal left diaphragmatic sequence.
[0172] Figure 2is a block diagram of an electronic device 800 shown in accordance with an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals. Referring to Figure 2 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0173] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0174] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0175] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0176] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0177] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0178] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0179] The sensor component 814 includes one or more sensors for providing an assessment of the various aspects of the state of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0180] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 may access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0181] In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0182] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, and the above computer program instructions can be executed by the processor 820 of the electronic device 800 to complete the above method.
[0183] Figure 3 is a block diagram of an electronic device 1900 shown according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Referring to Figure 3 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0184] The electronic device 1900 may further include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
[0185] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, and the computer program instructions can be executed by a processing component 1922 of the electronic device 1900 to complete the above method.
[0186] The present disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium having thereon computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0187] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punch card or raised structures in a groove having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not construed as being a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0188] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. A network adapter or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.
[0189] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine - related instructions, microcode, firmware instructions, state - setting data, or source code or object code written in any combination of one or more programming languages, including object - oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer - readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand - alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer - readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field - programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer - readable program instructions to implement various aspects of the present disclosure.
[0190] Aspects of the present disclosure are described herein with reference to the flowchart and / or block diagram of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer - readable program instructions.
[0191] These computer - readable program instructions can be provided to a processor of a general - purpose computer, a special - purpose computer, or other programmable data - processing apparatus to produce a machine such that the instructions, when executed by the processor of the computer or other programmable data - processing apparatus, create a means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer - readable program instructions can also be stored in a computer - readable storage medium, which causes a computer, a programmable data - processing apparatus, and / or other devices to operate in a particular manner, so that the computer - readable medium storing the instructions includes a manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0192] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process such that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0193] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of code, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or by combinations of special purpose hardware and computer instructions.
[0194] The embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, the practical application, or the technical improvement of technologies in the market, or to enable other ordinary skilled artisans in the art to understand the embodiments disclosed herein.
Claims
1. A method for optimizing dynamic diaphragm positioning, characterized in that Including: Obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to a plurality of dynamic two-dimensional X-ray chest images during the breathing process; Using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.
2. The dynamic diaphragmatic positioning optimization method according to claim 1, wherein The method for performing positioning optimization on the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal left cardiophrenic angles corresponding to the normal left diaphragms in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second two-dimensional X-ray chest image, to obtain the optimized right cardiophrenic angle corresponding to the second two-dimensional X-ray chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second two-dimensional X-ray chest image, and the right lung mask edge in the right lung mask edge image, performing positioning optimization on the corresponding right diaphragm; and / or, The method for performing positioning optimization on the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal right cardiophrenic angles corresponding to the normal right diaphragms in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angles corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence in the same first two-dimensional X-ray chest image, to obtain the optimized left cardiophrenic angle corresponding to the first two-dimensional X-ray chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first two-dimensional X-ray chest image, and the left lung mask edge in the left lung mask edge image, performing positioning optimization on the corresponding left diaphragm.
3. The dynamic diaphragmatic positioning optimization method according to claim 2, wherein The method for respectively using the normal left cardiophrenic angles corresponding to the normal left diaphragms in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second two-dimensional X-ray chest image, to obtain the optimized right cardiophrenic angle corresponding to the second two-dimensional X-ray chest image includes: determining the standard two-dimensional X-ray chest image corresponding to the normal left diaphragm and the normal right diaphragm in the plurality of dynamic two-dimensional X-ray chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional X-ray chest image to the initialized right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence in the same second two-dimensional X-ray chest image; calculating the second distance in the y direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional X-ray chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second two-dimensional X-ray chest image; using the second distance in the y direction to adjust the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second two-dimensional X-ray chest image, completing the positioning optimization of the abnormal right cardiophrenic angle to obtain the optimized right cardiophrenic angle corresponding to the second two-dimensional X-ray chest image; and / or, The method of respectively using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence to locate and optimize the abnormal left cardiophrenic angles corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, and obtaining the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image, includes: determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; calculating the first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; using the first distance in the y direction to adjust the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, complete the localization and optimization of the abnormal left cardiophrenic angle to obtain the optimized left cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.
4. The dynamic diaphragm positioning optimization method according to any one of claims 2-3, characterized in that The method of locating and optimizing the corresponding right diaphragm based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, includes: configuring the line segment of the right lung mask edge in the right lung mask edge image between the optimized right cardiophrenic angle and the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image as the right diaphragm; and / or, The method of locating and optimizing the corresponding left diaphragm based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, includes: configuring the line segment of the left lung mask edge in the lung mask edge image between the optimized left cardiophrenic angle and the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image as the left diaphragm.
5. The dynamic diaphragmatic positioning optimization method according to any one of claims 1-4, characterized in that Before obtaining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method of determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: obtaining at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process; determining the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on the first length sequence corresponding to the dynamic right lung diaphragm sequence; and / or, determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on the second length sequence corresponding to the dynamic left lung diaphragm sequence.
6. The dynamic diaphragm positioning optimization method according to claim 5, characterized in that, The method for determining the normal right diaphragmatic muscle sequence and the abnormal right diaphragmatic muscle sequence corresponding to the dynamic right diaphragmatic muscle sequence based on the first length sequence corresponding to the dynamic right diaphragmatic muscle sequence includes: determining the right lung reference diaphragmatic muscle length as the shortest length in the first length sequence corresponding to the dynamic right diaphragmatic muscle sequence; determining whether the other right lung diaphragmatic muscles are normal right diaphragmatic muscles or abnormal right diaphragmatic muscles respectively based on the right lung reference diaphragmatic muscle length, the first length other than the right lung reference diaphragmatic muscle length in the first length sequence, and a first preset length difference; and / or, The method for determining the normal left diaphragmatic muscle sequence and the abnormal left diaphragmatic muscle sequence corresponding to the dynamic left diaphragmatic muscle sequence based on the second length sequence corresponding to the dynamic left diaphragmatic muscle sequence includes: determining the left lung reference diaphragmatic muscle length as the shortest length in the second length sequence corresponding to the dynamic left diaphragmatic muscle sequence; determining whether the other left lung diaphragmatic muscles are normal left diaphragmatic muscles or abnormal left diaphragmatic muscles respectively based on the left lung reference diaphragmatic muscle length, the second length other than the left lung reference diaphragmatic muscle length in the second length sequence, and a second preset length difference.
7. The dynamic diaphragm positioning optimization method according to any one of claims 5-6, characterized in that, Before obtaining at least one diaphragmatic muscle sequence of the dynamic right diaphragmatic muscle sequence and the dynamic left diaphragmatic muscle sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for respectively determining the corresponding dynamic right diaphragmatic muscle sequence and / or dynamic left diaphragmatic muscle sequence based on the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: respectively obtaining at least one masked edge image sequence of the right lung masked edge image sequence and the left lung masked edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung masked edge image sequence; respectively localizing the right diaphragmatic muscle based on the right lung apex, the right costophrenic angle point, and the right lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images; and / or, respectively determining the left lung apex corresponding to the left lung masked edge image sequence, and respectively determining the right costophrenic angle point corresponding to the right lung masked edge image sequence and / or the left costophrenic angle point corresponding to the left lung masked edge image sequence; respectively localizing the left diaphragmatic muscle based on the right cardiophrenic angle corresponding to the right diaphragmatic muscle, the left lung apex, the left costophrenic angle point, and the left lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.
8. A dynamic diaphragm positioning optimization device, characterized in that, including: an acquisition unit configured to acquire the normal right diaphragmatic muscle sequence, the abnormal right diaphragmatic muscle sequence, the normal left diaphragmatic muscle sequence, and the abnormal left diaphragmatic muscle sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process; a diaphragmatic muscle localization optimization unit configured to perform localization optimization on the abnormal right diaphragmatic muscle sequence and / or the abnormal left diaphragmatic muscle sequence by using the normal right diaphragmatic muscle sequence and the normal left diaphragmatic muscle sequence; or, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to call the instructions stored in the memory to execute the dynamic diaphragmatic muscle localization optimization method according to any one of claims 1 to 5; or, Comprising: a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the dynamic diaphragm positioning optimization method according to any one of claims 1 to 7.
9. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by a processor, they implement the dynamic diaphragm positioning optimization method according to any one of claims 1 to 7.
10. A medical device, characterized in that, Applying the dynamic diaphragm positioning optimization method according to any one of claims 1 to 7 and / or comprising the dynamic diaphragm positioning optimization device according to claim 8 and / or comprising the computer program product according to claim 9.
Citation Information
Patent Citations
Abnormality detection method, abnormality detection program, abnormality detection device, server device, and information processing method
CN113348485A
Method, device and system for determining abnormality in myocardium region
CN114066802A
Chest radiograph multi-anomaly recognition system, device and method based on deep learning
CN116052847A
Diaphragm motion detection method and device, diaphragm motion evaluation method and device, electronic equipment and storage medium
CN116977366A
Diaphragm positioning method and device, program product and medical equipment
CN118469902A