Dynamic diaphragm positioning optimization method and apparatus, program product, and medical device

By comparing and optimizing the localization of normal and abnormal diaphragm sequences, the problem of inaccurate diaphragm measurement caused by lung field deformation was solved, and the precise localization of the diaphragm in dynamic chest X-ray images was achieved, ensuring the accuracy of quantitative analysis.

CN120374591BActive Publication Date: 2026-05-01SHENZHEN BLUE SHADOW MEDICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN BLUE SHADOW MEDICAL TECH CO LTD
Filing Date
2025-04-25
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing methods for measuring the diaphragm are inaccurate in dynamic chest X-ray images due to lung field deformation, which affects the accuracy of subsequent quantitative analysis.

Method used

By comparing normal and abnormal diaphragm sequences, the abnormal diaphragm is located and optimized using the feature points of the normal diaphragm. Combined with lung mask edge information, the coordinate points of the diaphragm are adjusted to improve the positioning accuracy.

Benefits of technology

This improved the accuracy of diaphragm localization in dynamic chest X-ray images, ensuring the reliability of subsequent quantitative analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120374591B_ABST
    Figure CN120374591B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a dynamic diaphragm positioning optimization method and device, a program product and a medical equipment, and relates to the technical field of X-ray two-dimensional image processing. The dynamic diaphragm positioning optimization method comprises: acquiring normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences and abnormal left diaphragm sequences corresponding to dynamic multiple X-ray two-dimensional chest images in a breathing process; and using the normal right diaphragm sequences and the normal left diaphragm sequences to perform positioning optimization on the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences. The embodiment of the present disclosure can realize positioning optimization of a dynamic diaphragm.
Need to check novelty before this filing date? Find Prior Art

Description

Dynamic diaphragm positioning optimization methods, devices, software products and medical equipment Technical Field

[0001] This disclosure relates to the field of X-ray two-dimensional image processing technology, and in particular to a dynamic diaphragm positioning optimization method and apparatus, program product and medical device. Background Technology

[0002] The diaphragm is a muscle-fiber structure located between the thoracic and abdominal cavities. It is surrounded by muscle bellies and has an aponeurosis in the center. It is also translated as diaphragm and is an important respiratory muscle in the body, accounting for 60% to 80% of the function of all respiratory muscles.

[0003] Due to its widespread availability, low cost, fast imaging speed, and ease of acquisition, X-ray has become the most widely used primary imaging technique in routine chest and bone radiography. Furthermore, fluoroscopic chest images or multi-time-series spot chest images (DCR) include more time points during free breathing, providing dynamic information about the diaphragm based on these images.

[0004] Specifically, Tanaka et al. assessed the correlation between diaphragmatic motion parameters and vital capacity. Meanwhile, Yamada et al. used dynamic chest radiography (DCR) to assess mean diaphragmatic displacement in healthy volunteers and differences in tidal diaphragmatic motion between COPD (Chronic Obstructive Pulmonary Disease) and healthy controls. Subsequently, Yamada et al. further evaluated the correlation between diaphragmatic motion and anthropometric measurements. Furthermore, Hida et al. assessed diaphragmatic motion in a standing position during forced breathing and evaluated its relationship with demographics and pulmonary function tests. Hida et al. subsequently further evaluated differences in diaphragmatic motion velocity and displacement between COPD and controls, and the correlation between pulmonary function tests and diaphragmatic motion. Additionally, FitzMaurice et al. described changes in diaphragmatic motion and lung area before and after modulatory therapy in adults with cystic fibrotic bronchiectasis using DCR. Subsequently, FitzMaurice et al. further described diaphragmatic movement in patients treated with DCR for diaphragmatic paralysis, as well as diaphragmatic joint movement in patients undergoing treatment for cystic fibrosis-related bronchiectasis. Furthermore, Chen et al. used DCR to quantitatively assess diaphragmatic movement during forced breathing in patients with chronic obstructive pulmonary disease. Therefore, accurate diaphragmatic detection in dynamic multi-frame 2D chest X-ray images corresponding to DCR images during respiration is crucial for accurately assessing diaphragmatic function.

[0005] However, due to lung field deformation in DCR leading to abnormal lung field morphology, existing methods for diaphragm measurement often result in abnormal diaphragm measurements corresponding to the lung field. Therefore, it is necessary to propose an optimized algorithm to ensure the accuracy of diaphragm measurement on dynamic chest X-ray (dynamic multi-frame two-dimensional chest images) for subsequent quantitative analysis. Summary of the Invention

[0006] This disclosure presents a technical solution for a dynamic diaphragm positioning optimization method, device, program product, and medical device.

[0007] According to one aspect of this disclosure, a dynamic diaphragm localization optimization method is provided, comprising:

[0008] Acquire normal right diaphragm sequence (normal right lung diaphragm sequence), abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), normal left diaphragm sequence (normal left lung diaphragm sequence), and abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to multiple dynamic two-dimensional chest X-ray images during respiration.

[0009] Using the normal right diaphragm sequence and the normal left diaphragm sequence, the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence are located and optimized.

[0010] Preferably, the method for optimizing the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence includes: optimizing the localization 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 using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence, to obtain the localized optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; and based on the localized 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, locating and optimizing the corresponding right diaphragm (right lung diaphragm).

[0011] Preferably, the method for optimizing the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence includes: optimizing the localization 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 using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; and optimizing the localization of the corresponding left diaphragm (left lung 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.

[0012] Preferably, the method of optimizing the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image by utilizing the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence, respectively, to obtain the localized optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image, includes: determining the standard X-ray two-dimensional chest images corresponding to the normal left diaphragm and normal right diaphragm in the dynamic multi-image X-ray two-dimensional chest images; and configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the abnormal right cardiophrenic angle in the same second X-ray two-dimensional chest image. The initial right cardiophrenic angle is determined by the abnormal right diaphragm in the normal right diaphragm sequence. A second distance in the y-direction is calculated between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard two-dimensional chest X-ray image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the second two-dimensional chest X-ray image. The initial right cardiophrenic angle is adjusted using the second distance in the y-direction 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 chest X-ray image, the abnormal right cardiophrenic angle is optimized for localization to obtain the optimized right cardiophrenic angle corresponding to the second two-dimensional chest X-ray image.

[0013] Preferably, the method of optimizing the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image by utilizing the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence, respectively, to obtain the localized 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 normal left diaphragm in the dynamic multi-image X-ray two-dimensional chest images; and configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the abnormal left cardiophrenic angle in the same first X-ray two-dimensional chest image. The initial left cardiophrenic angle is determined by the abnormal left diaphragm in the normal left diaphragm sequence. The first distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest X-ray image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the first two-dimensional chest X-ray image is calculated. The initial left cardiophrenic angle is adjusted using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle. Based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional chest X-ray image, the abnormal left cardiophrenic angle is optimized for localization to obtain the optimized left cardiophrenic angle corresponding to the second two-dimensional chest X-ray image.

[0014] Preferably, the method of adjusting the initial right cardiodiaphragm angle using the second distance in the y-direction to obtain the adjusted right cardiodiaphragm angle includes: adjusting the y-direction coordinate point of the initial right cardiodiaphragm angle using the second distance in the y-direction to obtain the adjusted right cardiodiaphragm angle.

[0015] Preferably, the method of adjusting the y-direction coordinate point of the initialized right diaphragm angle using the second distance in the y-direction to obtain the adjusted right diaphragm angle includes: if the second distance in the y-direction is greater than or equal to 0, then the y-direction coordinate point of the initialized right diaphragm angle is added to the second distance in the y-direction to obtain the adjusted right diaphragm angle; wherein, the x-direction coordinate point corresponding to the adjusted right diaphragm angle remains unchanged.

[0016] Preferably, the method for optimizing the location 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 optimized right cardiophrenic angle.

[0017] Preferably, 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 optimized right cardiophrenic angle includes: drawing a second straight line parallel to the x-direction using the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; and configuring the intersection point with the largest x-direction coordinate point 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 optimized right cardiophrenic angle.

[0018] Preferably, the method for determining the standard two-dimensional chest images corresponding to the normal left diaphragm and normal right diaphragm in the dynamic multi-image two-dimensional chest X-ray images includes: acquiring the second time corresponding to the second two-dimensional chest image; and determining the two-dimensional chest image corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multi-image two-dimensional chest X-ray images closest to the second time as the standard two-dimensional chest image.

[0019] Preferably, the method of adjusting the initial left diaphragm angle using the first distance in the y-direction to obtain the adjusted left diaphragm angle includes: adjusting the y-direction coordinate point of the initial left diaphragm angle using the first distance in the y-direction to obtain the adjusted left diaphragm angle.

[0020] Preferably, the method of adjusting the y-direction coordinate point of the initialized left diaphragm angle using the first distance in the y-direction to obtain the adjusted left diaphragm angle includes: if the first distance in the y-direction is greater than or equal to 0, then the y-direction coordinate point of the initialized left diaphragm angle is added to the first distance in the y-direction to obtain the adjusted left diaphragm angle; wherein, the x-direction coordinate point corresponding to the adjusted left diaphragm angle remains unchanged.

[0021] Preferably, the method for optimizing the location of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional chest X-ray 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 chest X-ray image as the optimized left cardiophrenic angle.

[0022] Preferably, the method of configuring the focal 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 optimized left cardiophrenic angle includes: drawing a first straight line parallel to the x-direction using the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; and configuring the intersection point with the smallest x-direction coordinate point among the intersection points of the first straight line and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the optimized left cardiophrenic angle.

[0023] Preferably, the method for determining the standard two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multi-image X-ray two-dimensional chest images includes: acquiring a first moment corresponding to the first X-ray two-dimensional chest image; and determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multi-image X-ray two-dimensional chest images closest to the first moment as the standard two-dimensional chest image.

[0024] Preferably, the method for locating and optimizing the corresponding right diaphragm 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 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 chest X-ray image as the right diaphragm.

[0025] Preferably, the method for locating and optimizing the corresponding left diaphragm 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 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 two-dimensional chest X-ray image as the left diaphragm.

[0026] Preferably, before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration, 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 two-dimensional chest X-ray images during respiration includes: acquiring at least one diaphragm sequence of dynamic right lung diaphragm sequence and dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; determining the normal right diaphragm sequence and abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on a first length sequence corresponding to the dynamic right lung diaphragm sequence; and / or, determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on a second length sequence corresponding to the dynamic left lung diaphragm sequence.

[0027] Preferably, 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 shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence as the right lung baseline diaphragm length; and determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

[0028] Preferably, the method for determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left diaphragm sequence based on the second length sequence corresponding to the dynamic left diaphragm sequence includes: determining the left lung baseline diaphragm length based on the shortest length in the second length sequence corresponding to the dynamic left diaphragm sequence; and determining the other left diaphragms as normal left diaphragms or abnormal left diaphragms based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence excluding the left lung baseline diaphragm length, and the second preset length.

[0029] Preferably, the method of determining the right lung baseline diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as normal or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first length and the first preset length, respectively, includes: determining the right lung baseline diaphragm by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as normal or abnormal right diaphragms based on the first baseline length corresponding to the right lung baseline diaphragm, the first length in the dynamic right lung diaphragm sequence excluding the right lung baseline diaphragm, and the difference between the first length and the first preset length, respectively.

[0030] Preferably, the method of determining the left lung baseline diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as normal or abnormal based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence excluding the left lung baseline diaphragm length, and the second preset length, includes: determining the left lung baseline diaphragm by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as normal or abnormal based on the difference between the second baseline length corresponding to the left lung baseline diaphragm, the second length in the dynamic left lung diaphragm sequence excluding the left lung baseline diaphragm, and the second preset length, respectively.

[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 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 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 determining the right lung apex corresponding to the right lung mask edge image sequence includes: detecting the right lung vertex corresponding to each right lung mask edge image in the right lung mask edge image sequence, and configuring the right lung vertex as the right lung apex corresponding to the right lung mask edge image sequence.

[0034] Preferably, the method for determining the left lung apex corresponding to the left lung mask edge image sequence includes: detecting the left lung vertex corresponding to each left lung mask edge image in the left lung mask edge image sequence, and configuring the left lung vertex as the left lung apex corresponding to the left lung mask edge image sequence.

[0035] Preferably, the method for determining the right costophrenic angle points corresponding to the right lung mask edge image sequence includes: detecting the lowest point of the right lung corresponding to each right lung mask edge image in the right lung mask edge image sequence, and configuring the lowest point of the right lung as the right costophrenic angle point corresponding to the right lung mask edge image sequence.

[0036] Preferably, the method for determining the left costophrenic angle points corresponding to the left lung mask edge image sequence includes: detecting the lowest point of the left lung corresponding to each left lung mask edge image in the left lung mask edge image sequence, and configuring the lowest point of the left lung as the left costophrenic angle point corresponding to the left lung mask edge image sequence.

[0037] Preferably, the method for locating the right lung diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: determining a corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images; calculating multiple first distances from multiple first pixel positions on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle to the first straight line; configuring the first pixel position corresponding to the largest distance among the multiple first distances as the right cardiodiaphragmatic angle; and configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiodiaphragmatic angle and the right costophrenic angle as the corresponding right lung diaphragm.

[0038] Preferably, the method for locating the left diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle, and the left lung mask edge image corresponding to the right diaphragm in each of the dynamic multi-dimensional chest X-ray images includes: determining an auxiliary point corresponding to the lung mask edge image based on the coordinates of the right cardiophrenic angle and a set increment in the y-direction of each of the dynamic multi-dimensional chest X-ray images; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle; calculating multiple second distances from multiple second pixel positions on the left edge 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 corresponding to the largest 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 as the corresponding left diaphragm.

[0039] Preferably, the method for determining whether other right lung diaphragms are normal or abnormal right diaphragms based on the right lung baseline diaphragm length, a first length in the first length sequence excluding the right lung baseline diaphragm length, and a first preset length difference includes: calculating multiple first differences between the first length excluding the right lung baseline diaphragm length and the right lung baseline diaphragm length; if one of the multiple differences is greater than or equal to the first preset length difference, then the right diaphragm corresponding to the first difference is determined to be an abnormal right diaphragm; otherwise, it is determined to be a normal right diaphragm.

[0040] Preferably, the method for determining the left lung baseline diaphragm length by determining 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 or abnormal based on the left lung baseline diaphragm length, the second length in the second length sequence excluding the left lung baseline diaphragm length, and the second preset length difference, includes: calculating multiple second differences between the second length excluding the left lung baseline diaphragm length and the left lung baseline diaphragm length; if one of the multiple second differences is greater than or equal to the second preset length difference, then the left diaphragm corresponding to the second difference is determined to be an abnormal left diaphragm; otherwise, it is determined to be a normal left diaphragm.

[0041] Preferably, the method further includes: acquiring at least one diaphragm sequence corresponding to a normal right diaphragm and an abnormal right diaphragm, and a normal left diaphragm and an abnormal left diaphragm, from multiple dynamic two-dimensional chest X-ray images during respiration; wherein the diaphragm sequence includes: a right diaphragm sequence and / or a left diaphragm sequence; optimizing the location 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 location 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, the right cardiophrenic angle corresponding to each abnormal right diaphragm is obtained after localization optimization; the localization of each abnormal diaphragm is optimized based on the right cardiophrenic angle, right costophrenic angle point, and right lung mask edge image corresponding to each abnormal right diaphragm; and / or, the left cardiophrenic angle corresponding to each abnormal left diaphragm is obtained after localization optimization; the localization of each abnormal left diaphragm is optimized based on the left cardiophrenic angle, left costophrenic angle point, and 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 first length sequence is obtained by summing the number of first pixel values ​​corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence.

[0044] Preferably, the second length sequence is obtained by summing the number of second pixel values ​​corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence.

[0045] Preferably, the first preset length difference and the configured value of the first preset length difference are the same or different; and / or, the first value corresponding to the first preset length difference is configured to any value between 10 and 50 pixels; and the second value corresponding to the second preset length difference is configured to any value between 10 and 50 pixels.

[0046] Preferably, before acquiring 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 respiration, the method for determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence based on the dynamic multiple X-ray two-dimensional chest images during respiration includes: acquiring 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; determining the right lung apex corresponding to the right lung masked edge image sequence; and determining the corresponding right lung apex based on the dynamic right lung masked edge image sequence. The right lung diaphragm is located based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-X-ray two-dimensional chest images; and / or, the left lung apex corresponding to the left lung mask edge image sequence is determined, and the right costophrenic angle corresponding to the right lung mask edge image sequence and / or the left costophrenic angle corresponding to the left lung mask edge image sequence are determined; the left lung diaphragm is located based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to the right lung diaphragm of each of the dynamic multi-X-ray two-dimensional chest images.

[0047] According to one aspect of this disclosure, a dynamic diaphragm positioning optimization device is provided, comprising:

[0048] The acquisition unit is used to acquire normal right diaphragm sequence (normal right lung diaphragm sequence), abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), normal left diaphragm sequence (normal left lung diaphragm sequence), and abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to multiple dynamic two-dimensional chest X-ray images during the breathing process.

[0049] A diaphragm localization optimization unit is used to optimize the localization of the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence; or...

[0050] Includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the aforementioned dynamic diaphragm positioning optimization method; or,

[0051] It includes: a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, implement the above-described dynamic diaphragm positioning optimization method.

[0052] According to one aspect of this disclosure, a computer program product is provided, including a computer program / instructions, characterized in that the computer program / instructions, when executed by a processor, implement the above-described dynamic diaphragm positioning optimization method.

[0053] According to one aspect of this disclosure, an electronic device is provided, comprising: 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 this disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the above-described dynamic diaphragm positioning optimization method.

[0055] According to one aspect of this disclosure, a dynamic diaphragm positioning optimization system or medical device is provided, which applies the dynamic diaphragm positioning optimization method as described above and / or includes the dynamic diaphragm positioning optimization device as described above and / or includes the computer program product as described above.

[0056] In the embodiments of this disclosure, a technical solution is proposed for a dynamic diaphragm positioning optimization method and 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 exemplary and explanatory only, and are not intended to limit this disclosure.

[0058] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0059] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the specification, serve to illustrate the technical solutions of this disclosure.

[0060] Figure 1 shows a flowchart of a dynamic diaphragm localization optimization method according to an embodiment of the present disclosure;

[0061] Figure 2 is a block diagram illustrating an electronic device 800 according to an exemplary embodiment;

[0062] Figure 3 is a block diagram illustrating an electronic device 1900 according to an exemplary embodiment. Detailed Implementation

[0063] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0064] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0065] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0066] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0067] It is understood that the various method embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further.

[0068] In addition, this disclosure also provides a dynamic diaphragm positioning optimization device, electronic device, computer-readable storage medium, program product and medical device, all of which can be used to implement any of the dynamic diaphragm positioning optimization methods provided in this disclosure. The corresponding technical solutions and descriptions are described in the relevant section on dynamic diaphragm positioning optimization methods and will not be repeated here.

[0069] Figure 1 shows a flowchart of the dynamic diaphragm localization optimization method according to an embodiment of the present disclosure. As shown in Figure 1, the dynamic diaphragm localization optimization method includes: Step S101: acquiring normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; Step S102: using the normal right diaphragm sequence and the normal left diaphragm sequence to optimize the localization of the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence. This aims to solve problems such as abnormal lung field morphology caused by lung field deformation, leading to incorrect diaphragm localization.

[0070] In the embodiments of this disclosure and other possible embodiments, a two-dimensional chest X-ray image may be referred to as a two-dimensional chest (lung) X-ray image, a two-dimensional chest (lung) X-ray image, or a two-dimensional lung X-ray image, etc. Any combination of two or more of the terms X-ray / DR, two-dimensional, chest / lung, and image expresses the same meaning.

[0071] Step S101: Obtain the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the breathing process.

[0072] In the embodiments of this disclosure and other possible embodiments, normal right diaphragm sequence (normal right lung diaphragm sequence), abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), normal left diaphragm sequence (normal left lung diaphragm sequence) and abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to multiple dynamic two-dimensional chest X-ray images during the breathing process are obtained.

[0073] In the embodiments of this disclosure and other possible embodiments, digital X-ray (DR) imaging equipment can provide high-resolution and real-time two-dimensional X-ray images. The DR imaging equipment can be used to image the chest, obtaining corresponding two-dimensional X-ray chest images. For example, in the embodiments of this disclosure and other possible embodiments, the digital X-ray imaging equipment can be used to image the chest containing the lungs during free breathing or forced breathing, obtaining multiple dynamic two-dimensional X-ray chest images (dynamic two-dimensional X-ray chest images to be located) corresponding to a continuous time series during breathing. Simultaneously, the digital X-ray imaging equipment can also be used to image the chest containing the lungs during breath-holding, obtaining multiple dynamic two-dimensional X-ray chest images (two-dimensional X-ray chest images to be located) corresponding to a continuous time series during breath-holding. Specifically, the dynamic multiple two-dimensional X-ray chest images during breathing or during breath-holding include at least one two-dimensional X-ray chest image.

[0074] In the embodiments of this 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 image to be located) is segmented into a left chest image and a right chest image; the left lung and the right lung are segmented based on the left chest image and the right chest image, respectively.

[0075] In embodiments of this disclosure and other possible embodiments, the lung image to be segmented (the dynamic multiple X-ray two-dimensional chest images during breathing / dynamic X-ray two-dimensional chest images to be located) is segmented into a left chest image and a right chest image; the left lung and right lung are segmented based on the left chest image and the right chest image, respectively; or, a preset convolutional neural network segmentation model, DR lung region label images for training the segmentation model, and multiple DR lung images to be segmented at multiple times during breathing or breath-holding (lung image to be segmented / dynamic multiple X-ray two-dimensional chest images during breathing to be segmented / dynamic X-ray two-dimensional chest images to be located) are obtained. The method for determining the DR lung region label images used to train the segmentation model includes: detecting the costal margin boundary, lung apex boundary, and mediastinal and transverse diaphragmatic edges of the left and right chest images of multiple DR lung region images respectively, to obtain DR lung region label images corresponding to the multiple DR lung region images; training the segmentation model using the DR lung region label images used to train the segmentation model; and, based on the trained segmentation model, segmenting the left and / or right lungs of the multiple DR lung images to be segmented (i.e., the two-dimensional chest X-ray images to be located / two-dimensional chest X-ray images), to obtain the right lung mask image and / or the left lung mask image. The lung field mask value corresponding to the right lung mask image can be configured to 1, and the lung field mask value corresponding to the left lung mask image can be configured to 2.

[0076] In the embodiments of this disclosure and other possible embodiments, the lung regions (lung fields) of multiple DR lung images (lung images to be segmented / multiple dynamic 2D chest X-ray images to be segmented during breathing / multiple dynamic 2D chest X-ray images to be segmented and located) at multiple times during breathing or breath-holding can be labeled manually to obtain the DR lung region label images (2D lung region / lung field label images) used to train the segmentation model; then, the segmentation model is trained using the DR lung region label images (2D lung region / lung field label images); finally, the trained segmentation model (preset lung field segmentation model) is used to segment the lung fields of the multiple dynamic 2D chest X-ray images to obtain the right lung mask image sequence and / or the left lung mask image sequence.

[0077] In embodiments of this disclosure and other possible embodiments, before acquiring 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 multiple dynamic X-ray two-dimensional chest images (two-dimensional X-ray chest images to be located), the method for determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the multiple dynamic X-ray two-dimensional chest images includes: using an erosion template of a set size to erode the right lung mask image sequence and / or the left lung mask image sequence to obtain the corresponding right lung mask eroded image sequence (right lung mask eroded image) and / or left lung mask eroded image sequence (left lung mask eroded image); and 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] In the embodiments of this disclosure and other possible embodiments, the set of left lung mask edge images corresponding to each of the dynamic multi-dimensional X-ray chest images constitutes a left lung mask edge image sequence; similarly, the set of right lung mask edge images corresponding to each of the dynamic multi-dimensional X-ray chest images constitutes a right lung mask edge image sequence.

[0079] In the embodiments of this disclosure and other possible embodiments, the set of right lung mask erosion images corresponding to each of the dynamic multi-X-ray two-dimensional chest images constitutes a right lung mask erosion image sequence; similarly, the set of left lung mask erosion images corresponding to each of the dynamic multi-X-ray two-dimensional chest images constitutes a left lung mask erosion image sequence.

[0080] In embodiments of this 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 erosion image sequence includes: subtracting the pixel value of the corresponding position in the right lung mask erosion image sequence from the pixel value of each position in the right lung mask image sequence to determine the right lung mask edge image sequence.

[0081] In embodiments of this 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 erosion image sequence includes: subtracting the pixel value of the corresponding position in the left lung mask erosion image sequence from the pixel value of each position in the left lung mask image sequence to determine the left lung mask edge image sequence.

[0082] In the embodiments of this disclosure and other possible embodiments, before determining the right lung mask edge image sequence and / or left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images respectively, a preset lung field segmentation model is used to segment the lung fields of 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.

[0083] In embodiments of this disclosure and other possible embodiments, the erosion template of a set size can be configured as an N×N erosion template with a pixel value of 1. Using the N×N erosion template with a pixel value of 1, the right lung mask image and / or the left lung mask image are eroded respectively to obtain the corresponding right lung mask erosion image and / or left lung mask erosion image. Specifically, using the erosion template of a set size (N×N with a pixel value of 1), the right lung mask image and / or the left lung mask image are traversed row by row / column to obtain the corresponding right lung mask erosion image and / or left lung mask erosion image.

[0084] In embodiments of this disclosure and other possible embodiments, the erosion template of the set size can be configured as a 3×3 erosion template with a pixel value of 1 for each pixel. Each 3×3 erosion template with a pixel value of 1 traverses each lung field mask image (right lung mask image and / or left lung mask image) row / column by row with a step size of 1 pixel to generate the corresponding right lung mask erosion image and / or left lung mask erosion image. More specifically, if the nine values ​​configured with a pixel value of 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 these nine values ​​are not 0 for the first and last time, then it is considered that the lung field corresponding to the right lung mask image and / or left lung mask image has been detected. When a lung field is detected, the position information of the center of the 3×3 erosion template and its pixel value are recorded. Then, the corresponding right lung mask erosion image and / or left lung mask erosion image are generated based on the recorded position information and its pixel value (1 or 2). Next, the corresponding right lung mask erosion image and / or left lung mask erosion image are subtracted from the right lung mask image and / or left lung mask erosion image, respectively, to obtain the corresponding right lung mask edge image and / or left lung mask edge image. Here, 1 can represent the right lung and 2 can represent the left lung.

[0085] In embodiments of this disclosure and other possible embodiments, the method of segmenting the lung fields of the dynamic multiple X-ray two-dimensional chest images using a preset lung field segmentation model to obtain the right lung mask image sequence and / or the left lung mask image sequence includes: segmenting the lung fields of the dynamic multiple X-ray two-dimensional chest images using a preset lung field segmentation model to obtain the right lung mask image sequence to be processed (the right lung mask image to be processed) and / or the left lung mask image sequence to be processed (the left lung mask image sequence to be processed); and processing the right lung mask image sequence to be processed and / or the left lung mask image sequence to be processed using a connected component algorithm to remove over-segmented regions outside the lung fields to obtain the right lung mask image sequence and / or the left lung mask image sequence.

[0086] In embodiments of this 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, 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 residual structure.

[0087] In embodiments of this disclosure and other possible embodiments, the Unet convolutional neural network or nnUnet convolutional neural network or a convolutional neural network improved based on Unet convolutional neural network or a convolutional neural network improved based on nnUnet convolutional neural network includes at least: a downsampling shrinking path, an upsampling expanding path, and a final classification layer.

[0088] In embodiments of this disclosure and other possible embodiments, before training the segmentation model using the DR lung region label image used to train the segmentation model, the DR lung region label image is data augmented to obtain an augmented DR lung region label image; and the segmentation model is trained using the augmented DR lung region label image.

[0089] In embodiments of this disclosure and other possible embodiments, the method for data augmentation of 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 rotating and / or cropping and / or scaling and / or image shifting and / or edge filling and / or random erasing and / or random occlusion operations on the DR lung region label image to obtain the enhanced DR lung region label image.

[0090] In embodiments of this disclosure and other possible embodiments, the method for data augmentation of the DR lung region label image to obtain an enhanced DR lung region label image further includes: randomly selecting any two DR lung region label images from the DR lung region label images; performing a registration operation on the arbitrary two DR lung region label images to obtain a corresponding DR lung region label registered image; and performing a fusion operation on the DR lung region label registered images to obtain the enhanced DR lung region label image. The registration operation on the arbitrary two DR lung region label images can employ existing registration algorithms or models, such as one or more of SIFT (Scale-invariant feature transform), SURF (Speeded UpRobust Features), and ORB (Oriented FAST and Rotated BRIEF) registration algorithms or models, or other registration algorithms or models based on convolutional neural networks. For example, a registration algorithm or model based on a convolutional neural network can be configured as a registration algorithm or model based on a VGG network.

[0091] In the embodiments of this disclosure and other possible embodiments, the method of performing a fusion operation on the DR lung region label registration image to obtain an enhanced DR lung region label image includes: performing a minimum, maximum, or average 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 embodiments of this disclosure, before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration, 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 two-dimensional chest X-ray images during respiration includes: acquiring at least one diaphragm sequence of dynamic right lung diaphragm sequence and dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; determining the normal right diaphragm sequence and abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on a first length sequence corresponding to the dynamic right lung diaphragm sequence; and / or, determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on a second length sequence corresponding to the dynamic left lung diaphragm sequence.

[0093] In embodiments of this 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 shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence as the right lung baseline diaphragm length; and determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

[0094] In embodiments of this disclosure, the method for determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left diaphragm sequence based on the second length sequence corresponding to the dynamic left diaphragm sequence includes: determining the left lung baseline diaphragm length based on the shortest length in the second length sequence corresponding to the dynamic left diaphragm sequence; and determining the other left diaphragms as normal left diaphragms or abnormal left diaphragms based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence excluding the left lung baseline diaphragm length, and the second preset length.

[0095] In embodiments of this disclosure and other possible embodiments, the method of determining the right lung baseline diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence, and determining the other right lung diaphragms as normal or abnormal based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first and first preset lengths, respectively, includes: determining the right lung baseline diaphragm by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as normal or abnormal based on the first baseline length corresponding to the right lung baseline diaphragm, the first length in the dynamic right lung diaphragm sequence excluding the right lung baseline diaphragm, and the difference between the first and first preset lengths, respectively.

[0096] In embodiments of this disclosure and other possible embodiments, the method of determining the left lung baseline diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence, and determining the other left lung diaphragms as normal or abnormal based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence excluding the left lung baseline diaphragm length, and the second preset length, includes: determining the left lung baseline diaphragm by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as normal or abnormal based on the difference between the second baseline length corresponding to the left lung baseline diaphragm, the second length corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence excluding the left lung baseline diaphragm, and the second preset length, respectively.

[0097] In embodiments of this disclosure and other possible embodiments, a 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 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.

[0098] In embodiments of this disclosure and other possible embodiments, a 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 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.

[0099] In embodiments of this disclosure and other possible embodiments, the area corresponding to each pixel can be obtained by reading DICOM (Digital Imaging and Communications in Medicine) files corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; DICOM, or Digital Imaging and Communications in Medicine, is an international standard (ISO 12052) for medical images and related information, defining a medical image format that meets clinical needs and can be used for data exchange. Alternatively, the area corresponding to each pixel can also be input via an input device (such as a keyboard).

[0100] In embodiments of this disclosure and other possible embodiments, the unit of the first length sequence and / or the second length sequence is configured as pixel values. Specifically, the first length sequence is obtained by summing the number of first pixel values ​​corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; and / or, the second length sequence is obtained by summing the number of second pixel values ​​corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence.

[0101] Furthermore, in the embodiments disclosed herein and other possible embodiments, the first preset length difference and the numerical values ​​configured for the first preset length difference may be the same or different. For example, the first numerical value corresponding to the first preset length difference may be configured as any value between 10 and 50 pixels; the second numerical value corresponding to the second preset length difference may be configured as any value between 10 and 50 pixels. Moreover, those skilled in the art may configure other numerical values ​​for the first numerical value corresponding to the first preset length difference and the second numerical value corresponding to the second preset length difference according to actual needs.

[0102] For example, in the embodiments of this 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 configured as any one of 10, 20, 30, 40, and 50, respectively.

[0103] In embodiments of this disclosure, before acquiring 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 respiration, a method for determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence based on the multiple dynamic X-ray two-dimensional chest images during respiration includes: acquiring at least one masked edge image sequence of the right lung masked edge image sequence (right lung masked edge image) and the left lung masked edge image sequence (left lung masked edge image) corresponding to multiple dynamic X-ray two-dimensional chest images (dynamic X-ray two-dimensional chest images to be located during respiration / dynamic lung images during respiration); and determining each right lung masked edge image in the right lung masked edge image sequence. The corresponding right lung apex; the right lung diaphragm is located based on the right lung apex, the right costophrenic angle, and the right lung mask edge image corresponding to each of the dynamic multi-X-ray two-dimensional chest images (each right lung mask edge image); and / or, the left lung apex corresponding to each left lung mask edge image in the left lung mask edge image sequence is determined, and the right costophrenic angle and / or the left costophrenic angle corresponding to each left lung mask edge image in the right lung mask edge image sequence are determined; the left lung diaphragm is located based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle, and the left lung mask edge image corresponding to each of the dynamic multi-X-ray two-dimensional chest images (each left lung mask edge image). The set of right lung diaphragms corresponding to each of the dynamic multi-X-ray two-dimensional chest images constitutes a dynamic right lung diaphragm sequence; similarly, the set of left lung diaphragms corresponding to each of the dynamic multi-X-ray two-dimensional chest images constitutes a dynamic left lung diaphragm sequence.

[0104] In embodiments of this disclosure and other possible embodiments, the method for determining the right lung apex corresponding to the right lung mask edge image sequence includes: detecting the right lung vertex corresponding to each right lung mask edge image in the right lung mask edge image sequence, and configuring the right lung vertex as the right lung apex corresponding to the right lung mask edge image sequence.

[0105] In embodiments of this disclosure and other possible embodiments, the method for determining the left lung apex corresponding to the left lung mask edge image sequence includes: detecting the left lung vertex corresponding to each left lung mask edge image in the left lung mask edge image sequence, and configuring the left lung vertex as the left lung apex corresponding to the left lung mask edge image sequence.

[0106] In embodiments of this disclosure and other possible embodiments, the method for determining the right costophrenic angle points corresponding to the right lung mask edge image sequence includes: detecting the lowest point of the right lung corresponding to each right lung mask edge image in the right lung mask edge image sequence, and configuring the lowest point of the right lung as the right costophrenic angle point corresponding to the right lung mask edge image sequence.

[0107] In embodiments of this disclosure and other possible embodiments, the method for determining the left costophrenic angle points corresponding to the left lung mask edge image sequence includes: detecting the lowest point of the left lung corresponding to each left lung mask edge image in the left lung mask edge image sequence, and configuring the lowest point of the left lung as the left costophrenic angle point corresponding to the left lung mask edge image sequence.

[0108] In embodiments of this disclosure and other possible embodiments, the method for locating the right lung diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: determining corresponding first straight lines based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images; calculating multiple first distances from multiple first pixel positions on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle to the first straight line; configuring the first pixel position corresponding to the largest distance among the multiple first distances as the right cardiodiaphragmatic angle, and configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiodiaphragmatic angle and the right costophrenic angle as the corresponding right lung diaphragm.

[0109] In embodiments of this disclosure and other possible embodiments, the method for locating the left diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle, and the left lung mask edge image corresponding to the right diaphragm in each of the dynamic multi-dimensional chest X-ray images includes: determining an auxiliary point corresponding to the lung mask edge image based on the coordinates of the right cardiophrenic angle and a set increment in the y-direction of each of the dynamic multi-dimensional chest X-ray images; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle; calculating multiple second distances from multiple second pixel positions 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 corresponding to the largest 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 as the corresponding left diaphragm.

[0110] In embodiments of this disclosure and other possible embodiments, the method for determining whether other right lung diaphragms are normal or abnormal right diaphragms based on the right lung baseline diaphragm length, a first length in the first length sequence excluding the right lung baseline diaphragm length, and a first preset length difference includes: calculating multiple first differences between the first length excluding the right lung baseline diaphragm length and the right lung baseline diaphragm length; if one of the multiple differences is greater than or equal to the first preset length difference, then the right diaphragm corresponding to the first difference is determined to be an abnormal right diaphragm; otherwise, it is determined to be a normal right diaphragm.

[0111] For example, in embodiments of this disclosure and other possible embodiments, the first preset length difference is configured as 20 mm or 20 pixels. Multiple first differences are calculated between a first length other than the reference diaphragm length of the right lung and the reference diaphragm length of the right lung. If one of the multiple differences is greater than or equal to the first preset length difference of 20 mm or 20 pixels, the right diaphragm corresponding to that first difference is identified as an abnormal right diaphragm; if one of the multiple differences is less than the first preset length difference of 20 mm or 20 pixels, the right diaphragm corresponding to that first difference is identified as a normal right diaphragm.

[0112] In embodiments of this disclosure and other possible embodiments, the method of determining the left lung baseline diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as normal or abnormal based on the left lung baseline diaphragm length, the second length in the second length sequence excluding the left lung baseline diaphragm length, and the second preset length difference, respectively, includes: calculating a plurality of second differences between the second length excluding the left lung baseline diaphragm length and the left lung baseline diaphragm length; if one of the plurality of second differences is greater than or equal to the second preset length difference, then the left diaphragm corresponding to the certain second difference is determined to be an abnormal left diaphragm; otherwise, it is determined to be a normal left diaphragm.

[0113] For example, in embodiments of this disclosure and other possible embodiments, the first preset length difference is configured as 20 mm or 20 pixels. Multiple second differences are calculated between a second length (excluding the reference diaphragm length for the left lung) and the reference diaphragm length for the left lung. If one of the multiple second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, the left diaphragm corresponding to that second difference is identified as an abnormal left diaphragm. If one of the multiple second differences is less than the second preset length difference of 20 mm or 20 pixels, and if one of the multiple second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, it indicates a normal left diaphragm.

[0114] In embodiments of this disclosure and other possible embodiments, the method further includes: acquiring at least one diaphragm sequence corresponding to a normal right diaphragm and an abnormal right diaphragm, and a normal left diaphragm and an abnormal left diaphragm, based on multiple dynamic two-dimensional chest X-ray images during respiration; wherein the diaphragm sequence includes: a right diaphragm sequence and / or a left diaphragm sequence; optimizing the location 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 location 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 the embodiments of this disclosure and other possible embodiments, the right cardiophrenic angle corresponding to each abnormal right diaphragm is obtained after localization optimization; the localization of each abnormal diaphragm is optimized based on the right cardiophrenic angle, right costophrenic angle point and right lung mask edge image corresponding to each abnormal right diaphragm; and / or, the left cardiophrenic angle corresponding to each abnormal left diaphragm is obtained after localization optimization; the localization of each abnormal left diaphragm is optimized based on the left cardiophrenic angle, left costophrenic angle point and left lung mask edge image corresponding to each abnormal left diaphragm.

[0116] In the embodiments of this disclosure and other possible embodiments, the unit of the first length sequence and / or the second length sequence is configured as pixel value; wherein, the first length sequence is obtained by summing the number of first pixel values ​​corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; and / or, the second length sequence is obtained by summing the number of second pixel values ​​corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence; and / or, the first preset length difference and the configured value of 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 between 10 and 50 pixels; the second value corresponding to the second preset length difference is configured as any value between 10 and 50 pixels.

[0117] In embodiments of this disclosure and other possible embodiments, before acquiring at least one diaphragm sequence corresponding to the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence of the dynamic multiple X-ray two-dimensional chest images during the breathing process, a method for determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence based on the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: acquiring at least one masked edge image sequence of the right lung and the left lung corresponding to the dynamic multiple X-ray two-dimensional chest images; determining the right lung apex corresponding to the right lung masked edge image sequence; and locating the right lung diaphragm based on the right lung apex, the right costophrenic angle, and the right lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.

[0118] In embodiments of this disclosure and other possible embodiments, before acquiring at least one diaphragm sequence corresponding to a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during respiration, the left lung apex corresponding to the left lung mask edge image sequence is determined, and 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 is determined; the left lung diaphragm is located based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to the right lung diaphragm in each of the multiple dynamic X-ray two-dimensional chest images.

[0119] In embodiments of this disclosure, the method for locating the right lung diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: determining corresponding first straight lines based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images; calculating multiple first distances from multiple first pixel positions (first pixels) on the right edge line (right heart border line near the heart) of the right lung mask edge image from the right lung apex to the right costophrenic angle to the first straight line; configuring the first pixel position corresponding to the largest distance among the multiple first distances as the right costophrenic angle, and configuring the mask edge line segment corresponding to the right lung mask edge image between the right costophrenic angle and the right lung mask edge image as the corresponding right lung diaphragm.

[0120] In embodiments of this disclosure, the method for locating the left diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle, and the left lung mask edge image corresponding to the right diaphragm in each of the dynamic multi-dimensional chest X-ray images includes: determining an auxiliary point corresponding to the lung mask edge image based on the coordinates of the right cardiophrenic angle and a set increment in the y-direction of each of the dynamic multi-dimensional chest X-ray images; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle; calculating multiple second distances from multiple second pixel positions (second pixels) on the left edge line (the left heart border line closer to the heart) 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 corresponding to the largest distance among the multiple second distances as the left cardiophrenic angle (left cardiophrenic angle point); and configuring the mask edge line segment of the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle as the corresponding left diaphragm.

[0121] In the embodiments of this disclosure and other possible embodiments, the right costophrenic angle or left costophrenic angle corresponding to the left or right lung is close to the origin of the xoy coordinate system; the ordinate of the right or left lung apex corresponding to the left or right lung is greater than the ordinate of the corresponding right or left costophrenic angle. For example, the right costophrenic angle 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 to the right lung apex, and the y-axis is configured in the direction from the right costophrenic angle to the left costophrenic angle.

[0122] For example, in embodiments of this disclosure and other possible embodiments, the method for determining the corresponding first straight line based on the right lung apex A1 and the right costophrenic angle B1 includes: based on the right lung apex A1 (x A1 ,y A1 ) and the right costophrenic angle point B1 (x B1 ,y B1Determine 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] .

[0124] Furthermore, before calculating the first distances from multiple first pixels to the first straight line on the right edge line A1B1 (the right heart border line closer to the heart) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle B1, the right edge line A1B1 of the right lung mask edge image is determined based on the distance from the right lung apex A1 to the right costophrenic angle B1. The method for determining this method includes: taking the right lung apex A1 as the starting point, and along the right lung mask edge line of the right lung mask edge image, calculating the distance from the right lung apex A1 to the right costophrenic angle B1. The lengths of the first and second edge lines from the right lung apex to the right costophrenic angle B1 are calculated. The lengths of the first and second edge lines from the right lung apex A1 to the right costophrenic angle B1 are also calculated. The first and second edge lines are respectively distributed on both sides of the first straight line Line1. The longest edge line among the lengths of the first and second edge lines is configured as the right edge line A1B1 of the right lung mask edge image.

[0125] For example, in embodiments of this disclosure and other possible embodiments, calculating multiple first distances from multiple first pixels on the right edge line A1B1 (the right cardiac border line closer to the heart) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle B1 to the first straight line Line1 includes: taking the right lung apex A1 as the starting point / end point and the right costophrenic angle B1 as the end point / start point, and sequentially calculating multiple first distances from multiple first pixels to the first straight line Line1 along the right edge line A1B1 of the right lung mask edge image. Furthermore, the first pixel corresponding to the largest distance among the multiple first distances is configured as the right costophrenic angle C1, and the mask edge line segment corresponding to the right lung mask edge image between the right costophrenic angle C1 and the right costophrenic angle B1 is configured and positioned as the right lung diaphragm B1C1.

[0126] Specifically, in the embodiments of this disclosure and other possible embodiments, a calculation formula corresponding to the right cardiophrenic angle C1(x, y) is given.

[0127] .

[0128] in, Represents the plurality of first pixels Multiple first distances to the first straight line Line1 r represents the right lung; n ≥ 1 and is a positive integer; max() represents the function that takes the maximum value. Each represents a first pixel. The corresponding coordinates; Each represents a first pixel. The corresponding Euclidean distance.

[0129] In embodiments of this disclosure, the method for locating the left diaphragm based on the right cardiophrenic angle corresponding to the right diaphragm, the left lung apex, the left costophrenic angle, and the left lung mask edge image includes: determining an auxiliary point corresponding to the lung mask edge image 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 lung apex and the left costophrenic angle; calculating multiple second distances from multiple second pixels on the left edge line (the left heart border line closer to the heart) 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 corresponding to the largest 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 left diaphragm.

[0130] In an embodiment of this disclosure, the method for determining the auxiliary point corresponding to the lung mask edge image 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 an auxiliary line parallel to the x-direction; and determining the intersection of the auxiliary line and the left lung mask edge image as the auxiliary point corresponding to the lung mask edge image.

[0131] In an embodiment of this disclosure, the method of determining the intersection of the auxiliary line and the left lung mask edge image as the auxiliary point corresponding to the lung mask edge image includes: the intersection of the auxiliary line and the left lung mask edge image includes: a first set of intersections and a second set of intersections; and determining the intersection with the smaller / smallest abscissa among the first set of intersections and the second set of intersections as the auxiliary point corresponding to the lung mask edge image.

[0132] For example, in embodiments of this disclosure and other possible embodiments, the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle is... C1 Adding / subtracting the aforementioned y-direction increment ∆y yields the corresponding auxiliary line (y) parallel to the x-direction. C1 + / -∆ y); the auxiliary line (y C1The intersection of the auxiliary line (+ / - ∆ y) with the edge image of the left lung mask is determined as the auxiliary point C2' corresponding to the edge image of the lung mask. Specifically, the intersection of the auxiliary line with the edge image of the left lung mask includes: a first set of intersections and a second set of intersections; the intersection with the smaller / smallest x-coordinate among the first set of intersections and the second set of intersections is determined as the auxiliary point C2' corresponding to the edge image of the lung mask.

[0133] Specifically, the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle is... C1 When adding the set increment ∆y in the y-direction, the set increment ∆y is configured to be negative; or, the ordinate y of the coordinate point C1(x, y) of the right diaphragm angle is set to... C1 When subtracting the set increment ∆y in the y-direction, the set increment ∆y is configured to be a positive value. The calculation formula for the auxiliary point C2'(x, y) is given, i.e. .

[0134] Further, in the embodiments of this disclosure and other possible embodiments, a corresponding second straight line Line2 is determined based on the left lung apex A2 and the left costophrenic angle B2; the method for determining the corresponding second straight line Line2 based on the left lung apex A2 and the left costophrenic angle B2 includes: based on the left lung apex A2 (x A2 , y A2 ) and the left costophrenic angle point B2 (x B2 , y B2 Determine the fourth coefficient a2, the fifth coefficient b2, and the sixth coefficient c2 corresponding to the second line Line2; based on the fourth coefficient a2, the fifth coefficient b2, and the sixth coefficient c2, determine the second line Line2.

[0135] .

[0136] Furthermore, before calculating multiple second distances from multiple second pixels to the second straight line on the left edge line A2B2 (the left heart border line closer to the heart) of the left lung mask edge image from the left lung apex A2 to the ischiocostal angle point B2, the left edge line A2B2 of the left lung mask edge image is determined based on the left lung apex A2 to the ischiocostal angle point B2. The method for determining this method includes: taking the left lung apex A2 as the starting point, and along the left lung mask edge line of the left lung mask edge image, calculating the distances from multiple second pixels to the second straight line. The lengths of the third and fourth edge lines from the left lung apex A2 to the left costophrenic angle B2 are calculated. The third and fourth edge lines are located on opposite sides of the second straight line Line2. The longest edge line between the lengths of the first and second edge lines is designated as the left edge line A2B2 of the right lung mask edge image.

[0137] For example, in embodiments of this disclosure and other possible embodiments, calculating multiple second distances from multiple second pixels on the left edge line A1B1 (the left heart border line closer to the heart) of the right lung mask edge image from the left lung apex A2 to the ischiocostal angle B2 to the second straight line includes: taking the left lung apex A2 as the starting / ending point and the ischiocostal angle B2 as the ending / starting point, and sequentially calculating multiple second distances from multiple second pixels to the second straight line Line2 along the left edge line A1B1 of the left lung mask edge image. Furthermore, the second pixel corresponding to the largest distance among the multiple second distances is configured as the right cardiodiaphragm angle C2, and the mask edge line segment corresponding to the right lung mask edge image between the left cardiodiaphragm angle C2 and the ischiocostal angle B2 is configured and positioned as the left diaphragm B2C2.

[0138] Specifically, in the embodiments of this disclosure and other possible embodiments, a calculation formula corresponding to the right cardiophrenic angle C2(x, y) is given.

[0139] .

[0140] in, Represents the plurality of second pixels Multiple first distances to the second straight line Line2 ; l represents the right lung; n ≥ 1 and is a positive integer; max() represents the function that takes the maximum value; Each represents a first pixel. The corresponding coordinates; Each represents a first pixel. The corresponding Euclidean distance.

[0141] In embodiments of this disclosure, the method for optimizing the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence includes: optimizing the localization 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 using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence, to obtain the localized optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; and based on the localized 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, locating and optimizing the corresponding right diaphragm (right lung diaphragm).

[0142] In embodiments of this disclosure, the method for optimizing the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence includes: optimizing the localization 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 using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; and optimizing the localization of the corresponding left diaphragm (left lung 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.

[0143] In the embodiments of this disclosure and other possible embodiments, before optimizing the localization 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 using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence, the right diaphragm corresponding to the same first X-ray two-dimensional chest image is a normal right diaphragm. Similarly, before optimizing the localization 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 using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence, the left diaphragm corresponding to the same second X-ray two-dimensional chest image is a normal left diaphragm.

[0144] In embodiments of this disclosure and other possible embodiments, the method of optimizing the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image by utilizing the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to obtain the localized optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image includes: determining the standard X-ray two-dimensional chest images corresponding to the normal left diaphragm and normal right diaphragm in the dynamic multi-image X-ray two-dimensional chest images; and configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the same second X-ray two-dimensional chest image. The initial right cardiophrenic angle is determined by the abnormal right diaphragm sequence in the chest image. A second distance in the y-direction is calculated between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the second two-dimensional chest image. The initial right cardiophrenic angle is adjusted using the second distance in the y-direction 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 chest image, the abnormal right cardiophrenic angle is optimized for localization to obtain the optimized right cardiophrenic angle corresponding to the second two-dimensional chest image.

[0145] In embodiments of this disclosure and other possible embodiments, the method of optimizing the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image by utilizing the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to obtain the localized 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 normal left diaphragm in the dynamic multi-image X-ray two-dimensional chest images; and configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the same first X-ray two-dimensional chest image. The initial left cardiophrenic angle is determined by the abnormal left diaphragm sequence in the chest image. The first distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the first two-dimensional chest image is calculated. The initial left cardiophrenic angle is adjusted using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle. Based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional chest image, the abnormal left cardiophrenic angle is optimized for localization to obtain the optimized left cardiophrenic angle corresponding to the second two-dimensional chest image.

[0146] In embodiments of this disclosure and other possible embodiments, the method of adjusting the initial right diaphragm angle using the second distance in the y-direction to obtain the adjusted right diaphragm angle includes: adjusting the y-direction coordinate point of the initial right diaphragm angle using the second distance in the y-direction to obtain the adjusted right diaphragm angle.

[0147] In the embodiments of this disclosure and other possible embodiments, the method of adjusting the y-direction coordinate point of the initialized right diaphragm angle using the second distance in the y-direction to obtain the adjusted right diaphragm angle includes: if the second distance in the y-direction is greater than or equal to 0, then the y-direction coordinate point of the initialized right diaphragm angle is added to the second distance in the y-direction to obtain the adjusted right diaphragm angle; wherein, the x-direction coordinate point corresponding to the adjusted right diaphragm angle remains unchanged.

[0148] In the embodiments of this disclosure and other possible embodiments, the method for optimizing the localization 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 localized optimized right cardiophrenic angle.

[0149] In embodiments of this 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 optimized right cardiophrenic angle includes: drawing a second straight line parallel to the x-direction using the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; and configuring the intersection point with the largest x-direction coordinate point 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 optimized right cardiophrenic angle.

[0150] In embodiments of this disclosure and other possible embodiments, the method for determining the standard two-dimensional chest images corresponding to the normal left diaphragm and normal right diaphragm in the dynamic multi-image two-dimensional chest X-ray images includes: acquiring a second time corresponding to the second two-dimensional chest image; and determining the two-dimensional chest image corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multi-image two-dimensional chest X-ray images closest to the second time as the standard two-dimensional chest image.

[0151] In embodiments of this disclosure and other possible embodiments, the method of adjusting the initial left diaphragm angle using the first distance in the y-direction to obtain the adjusted left diaphragm angle includes: adjusting the y-direction coordinate point of the initial left diaphragm angle using the first distance in the y-direction to obtain the adjusted left diaphragm angle.

[0152] In the embodiments of this disclosure and other possible embodiments, the method of adjusting the y-direction coordinate point of the initialized left diaphragm angle using the first distance in the y-direction to obtain the adjusted left diaphragm angle includes: if the first distance in the y-direction is greater than or equal to 0, then the y-direction coordinate point of the initialized left diaphragm angle is added to the first distance in the y-direction to obtain the adjusted left diaphragm angle; wherein, the x-direction coordinate point corresponding to the adjusted left diaphragm angle remains unchanged.

[0153] In the embodiments of this disclosure and other possible embodiments, the method for optimizing the location of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first two-dimensional chest X-ray 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 chest X-ray image as the optimized left cardiophrenic angle.

[0154] In the embodiments of this disclosure and other possible embodiments, the method of configuring the focal 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 optimized left cardiophrenic angle includes: drawing a first straight line parallel to the x-direction using the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; and configuring the intersection point with the smallest x-direction coordinate point among the intersection points of the first straight line and the left lung mask edge in the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the optimized left cardiophrenic angle.

[0155] In embodiments of this disclosure and other possible embodiments, the method for determining the standard two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multi-image X-ray two-dimensional chest images includes: acquiring a first moment corresponding to the first two-dimensional chest image; and determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multi-image X-ray two-dimensional chest images closest to the first moment as the standard two-dimensional chest image.

[0156] Step S102: Using the normal right diaphragm sequence and the normal left diaphragm sequence, optimize the localization of the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.

[0157] In embodiments of this disclosure, the method for locating and optimizing the corresponding right diaphragm 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 includes: configuring the line segment of the right lung mask edge image between the optimized right cardiophrenic angle and the right costophrenic angle point corresponding to the second two-dimensional chest X-ray image as the optimized right diaphragm.

[0158] In embodiments of this disclosure, the method for locating and optimizing the corresponding left diaphragm 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 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 two-dimensional chest X-ray image as the optimized left diaphragm.

[0159] In embodiments of this disclosure and other possible embodiments, the right cardiophrenic angle corresponding to each abnormal right diaphragm is obtained after localization optimization; the localization of each abnormal diaphragm is optimized based on the right cardiophrenic angle, right costophrenic angle point, and right lung mask edge image corresponding to each abnormal right diaphragm; and / or, the left cardiophrenic angle corresponding to each abnormal left diaphragm is obtained after localization optimization; the localization of each abnormal left diaphragm is optimized based on the left cardiophrenic angle, left costophrenic angle point, and left lung mask edge image corresponding to each abnormal left diaphragm.

[0160] In the embodiments of this disclosure and other possible embodiments, a method for optimizing the localization of each abnormal right diaphragm based on the localized optimized right cardiophrenic angle, right costophrenic angle point, and right lung mask edge image corresponding to each abnormal right diaphragm includes: configuring the line segment between the localized optimized right cardiophrenic angle and the right costophrenic angle point corresponding to each abnormal right diaphragm and the right lung mask edge in the right lung mask edge image as the localized optimized right diaphragm.

[0161] Similarly, in the embodiments of this disclosure and other possible embodiments, the method for optimizing the localization of each abnormal left diaphragm based on the localized optimized left cardiophrenic angle, left costophrenic angle point and left lung mask edge image corresponding to each abnormal left diaphragm includes: configuring the line segment between the localized optimized left cardiophrenic angle and the left costophrenic angle point corresponding to each abnormal left diaphragm and the left lung mask edge in the left lung mask edge image as the localized optimized left diaphragm.

[0162] The dynamic diaphragm localization optimization method can be executed by an image processing device. For example, the method can be executed by a terminal device, a server, or other processing devices. The terminal device can be a user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. In some possible implementations, the dynamic diaphragm localization optimization method can be implemented by a processor calling computer-readable instructions stored in memory.

[0163] Those skilled in the art will understand that in the above-described dynamic diaphragm positioning optimization method in specific embodiments, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0164] This disclosure also proposes a dynamic diaphragm localization optimization device, comprising: an acquisition unit for acquiring normal right diaphragm sequences (normal right lung diaphragm sequences), abnormal right diaphragm sequences (abnormal right lung diaphragm sequences), normal left diaphragm sequences (normal left lung diaphragm sequences), and abnormal left diaphragm sequences (abnormal left lung diaphragm sequences) corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; and a diaphragm localization optimization unit for optimizing the localization of the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences using the normal right diaphragm sequences and the normal left diaphragm sequences.

[0165] This disclosure also proposes a dynamic diaphragm positioning optimization device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the aforementioned dynamic diaphragm positioning optimization method.

[0166] This disclosure also proposes a dynamic diaphragm localization optimization device, comprising: a computer-readable storage medium storing computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the aforementioned dynamic diaphragm localization optimization method. The dynamic diaphragm localization optimization method includes at least: acquiring normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences, and abnormal left diaphragm sequences corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; and using the normal right diaphragm sequences and the normal left diaphragm sequences to perform localization optimization on the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences.

[0167] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to execute the dynamic diaphragm positioning optimization method described in the above method embodiments. The specific implementation can be referred to the description of the dynamic diaphragm positioning optimization method embodiments above, which will not be repeated here for the sake of brevity.

[0168] This disclosure also proposes a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the aforementioned dynamic diaphragm localization optimization method. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The dynamic diaphragm localization optimization method includes at least: acquiring normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences, and abnormal left diaphragm sequences corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; and using the normal right diaphragm sequences and the normal left diaphragm sequences to optimize the localization of the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences.

[0169] This disclosure also proposes an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured for the aforementioned dynamic diaphragm localization optimization method. The electronic device may be provided as a terminal, a server, or other type of device. The dynamic diaphragm localization optimization method includes at least: acquiring normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences, and abnormal left diaphragm sequences corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; and using the normal right diaphragm sequences and the normal left diaphragm sequences to perform localization optimization on the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences.

[0170] This disclosure also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implements the aforementioned dynamic diaphragm localization optimization method. The dynamic diaphragm localization optimization method includes at least: acquiring normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences, and abnormal left diaphragm sequences corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; and using the normal right diaphragm sequences and the normal left diaphragm sequences to perform localization optimization on the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences.

[0171] The disclosed embodiments also propose a dynamic diaphragm positioning optimization system or medical device, applying the dynamic diaphragm positioning optimization method as described above and / or including the dynamic diaphragm positioning optimization device as described above and / or including the computer program product as described above. The dynamic diaphragm positioning optimization method includes at least: acquiring normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences, and abnormal left diaphragm sequences corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; and using the normal right diaphragm sequences and the normal left diaphragm sequences to optimize the positioning of the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences.

[0172] Figure 2 is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, or other terminal. 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 supply 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] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0174] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can 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 storage, flash memory, magnetic disk, or optical disk.

[0175] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.

[0176] 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 may be implemented as a touchscreen 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 may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0177] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0178] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0179] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 can detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0180] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also 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 to perform the methods described above.

[0182] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions that can be executed by a processor 820 of an electronic device 800 to perform the above-described method.

[0183] Figure 3 is a block diagram illustrating an electronic device 1900 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 memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the methods described above.

[0184] Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input / output (I / O) interface 1958. Electronic device 1900 can operate on an operating system stored in memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0185] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by a processing component 1922 of an electronic device 1900 to perform the above-described method.

[0186] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.

[0187] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0188] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0189] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status 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 execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via 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., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.

[0190] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, 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, when executed by the processor of the computer or other programmable data processing apparatus, they create 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 that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing 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 to cause 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, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0193] The flowcharts and block diagrams in the accompanying drawings 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 a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0194] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A dynamic diaphragm positioning optimization method, characterized in that, include: Acquire normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; Using the normal right diaphragm sequence and the normal left diaphragm sequence, the abnormal left diaphragm sequence is localized and optimized, including: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multi-image 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 first X-ray two-dimensional chest image, which is in the same image as the normal right diaphragm; calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the first X-ray two-dimensional chest image. The first distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the two-dimensional chest X-ray image; the initial left cardiophrenic angle is adjusted using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle; 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 chest X-ray image is configured as the optimized left cardiophrenic angle; 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, the corresponding left diaphragm is located and optimized.

2. The dynamic diaphragm positioning optimization method according to claim 1, characterized in that, The step of locating and optimizing the corresponding left diaphragm 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 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 two-dimensional chest X-ray image as the left diaphragm.

3. The dynamic diaphragm positioning optimization method according to any one of claims 1 or 2, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal left diaphragm sequence and 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.

4. The dynamic diaphragm positioning optimization method according to claim 3, characterized in that, The step of determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left diaphragm sequence based on the second length sequence corresponding to the dynamic left diaphragm sequence includes: determining the left lung baseline diaphragm length based on the shortest length in the second length sequence corresponding to the dynamic left diaphragm sequence; and determining other left diaphragms as normal left diaphragms or abnormal left diaphragms based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence other than the left lung baseline diaphragm length, and the second preset length.

5. The dynamic diaphragm positioning optimization method according to any one of claims 1, 2, and 4, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic right lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal right diaphragm sequence and 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.

6. The dynamic diaphragm positioning optimization method according to claim 3, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic right lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal right diaphragm sequence and 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.

7. The dynamic diaphragm positioning optimization method according to claim 5, characterized in that, The step of 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 shortest length of the right lung baseline diaphragm length from the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

8. The dynamic diaphragm positioning optimization method according to claim 6, characterized in that, The step of 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 shortest length of the right lung baseline diaphragm length from the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

9. A dynamic diaphragm positioning optimization method, characterized in that, include: Acquire normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; Using the normal right diaphragm sequence and the normal left diaphragm sequence, the abnormal right diaphragm sequence is localized and optimized, including: determining the standard two-dimensional chest images corresponding to the normal left and right diaphragms in the dynamic multi-image X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest images to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the second two-dimensional chest image, which is in the same image as the normal left diaphragm; calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest images and the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the second two-dimensional chest image. The second distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the two-dimensional chest X-ray image; the initial right cardiophrenic angle is adjusted using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; 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 two-dimensional chest X-ray image is configured as the optimized right cardiophrenic angle; 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, the corresponding right diaphragm is located and optimized.

10. The dynamic diaphragm positioning optimization method according to claim 9, characterized in that, The step of locating and optimizing the corresponding right diaphragm 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 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 chest X-ray image as the right diaphragm.

11. The dynamic diaphragm positioning optimization method according to any one of claims 9 or 10, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal left diaphragm sequence and 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.

12. The dynamic diaphragm positioning optimization method according to claim 11, characterized in that, The step of determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left diaphragm sequence based on the second length sequence corresponding to the dynamic left diaphragm sequence includes: determining the left lung baseline diaphragm length based on the shortest length in the second length sequence corresponding to the dynamic left diaphragm sequence; and determining other left diaphragms as normal left diaphragms or abnormal left diaphragms based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence other than the left lung baseline diaphragm length, and the second preset length.

13. The dynamic diaphragm positioning optimization method according to any one of claims 9, 10, and 12, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic right lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal right diaphragm sequence and 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.

14. The dynamic diaphragm positioning optimization method according to claim 12, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic right lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal right diaphragm sequence and 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.

15. The dynamic diaphragm positioning optimization method according to claim 13, characterized in that, The step of 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 shortest length of the right lung baseline diaphragm length from the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

16. The dynamic diaphragm positioning optimization method according to claim 14, characterized in that, The step of 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 shortest length of the right lung baseline diaphragm length from the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

17. A dynamic diaphragm positioning optimization method, characterized in that, include: Acquire normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; Using the normal right diaphragm sequence and the normal left diaphragm sequence, the abnormal left diaphragm sequence is localized and optimized, including: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multi-image 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 first X-ray two-dimensional chest image, which is in the same image as the normal right diaphragm; calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the first X-ray two-dimensional chest image. The first distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the two-dimensional chest X-ray image; the initial left cardiophrenic angle is adjusted using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle; 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 chest X-ray image is configured as the optimized left cardiophrenic angle; 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, the corresponding left diaphragm is located and optimized; Using the normal right diaphragm sequence and the normal left diaphragm sequence, the abnormal right diaphragm sequence is localized and optimized, including: determining the standard two-dimensional chest images corresponding to the normal left and right diaphragms in the dynamic multi-image X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest images to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the second two-dimensional chest image, which is in the same image as the normal left diaphragm; calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest images and the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the second two-dimensional chest image. The second distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the two-dimensional chest X-ray image; the initial right cardiophrenic angle is adjusted using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; 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 two-dimensional chest X-ray image is configured as the optimized right cardiophrenic angle; 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, the corresponding right diaphragm is located and optimized.

18. The dynamic diaphragm positioning optimization method according to claim 17, characterized in that, The step of locating and optimizing the corresponding right diaphragm 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 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 chest X-ray image as the right diaphragm.

19. The dynamic diaphragm positioning optimization method according to any one of claims 17 or 18, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal left diaphragm sequence and 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.

20. The dynamic diaphragm positioning optimization method according to claim 19, characterized in that, The step of determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left diaphragm sequence based on the second length sequence corresponding to the dynamic left diaphragm sequence includes: determining the left lung baseline diaphragm length based on the shortest length in the second length sequence corresponding to the dynamic left diaphragm sequence; and determining other left diaphragms as normal left diaphragms or abnormal left diaphragms based on the difference between the left lung baseline diaphragm length, the second length in the second length sequence other than the left lung baseline diaphragm length, and the second preset length.

21. The dynamic diaphragm positioning optimization method according to any one of claims 17, 18, and 20, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic right lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal right diaphragm sequence and 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.

22. The dynamic diaphragm positioning optimization method according to claim 20, characterized in that, Before acquiring the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process, determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process includes: acquiring the dynamic right lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; and determining the normal right diaphragm sequence and 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.

23. The dynamic diaphragm positioning optimization method according to claim 21, characterized in that, The step of 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 shortest length of the right lung baseline diaphragm length from the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

24. The dynamic diaphragm positioning optimization method according to claim 22, characterized in that, The step of 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 shortest length of the right lung baseline diaphragm length from the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length in the first length sequence excluding the right lung baseline diaphragm length, and the difference between the first preset length and the first length.

25. A dynamic diaphragm positioning optimization device, characterized in that, include: The acquisition unit is used to acquire the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process. The diaphragm localization optimization unit is used to optimize the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence. This includes: determining the standard X-ray two-dimensional chest images corresponding to the normal right and normal left diaphragms in the dynamic multi-image 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 first X-ray two-dimensional chest image, which is in the same image as the normal right diaphragm; and calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image. The first distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the first X-ray two-dimensional chest image; the first distance in the y-direction is used to adjust the initialized left cardiophrenic angle to obtain the adjusted left cardiophrenic angle; 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 is configured as the optimized left cardiophrenic angle; 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, the corresponding left diaphragm is located and optimized.

26. A dynamic diaphragm positioning optimization device, characterized in that, include: The acquisition unit is used to acquire the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process. The diaphragm localization optimization unit is used to optimize the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence. This includes: determining the standard two-dimensional chest images corresponding to the normal left and right diaphragms in the dynamic multi-image X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest image to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence in the second two-dimensional chest image (which is in the same image as the normal left diaphragm); and calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest image. The second distance in the y-direction between the angle and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; the initial right cardiophrenic angle is adjusted using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; 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 is configured as the optimized right cardiophrenic angle; 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, the corresponding right diaphragm is located and optimized.

27. A dynamic diaphragm positioning optimization device, characterized in that, include: The acquisition unit is used to acquire the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process. The diaphragm localization optimization unit is used to optimize the localization of the abnormal right diaphragm sequence using the normal right diaphragm sequence and the normal left diaphragm sequence. This includes: determining the standard X-ray two-dimensional chest images corresponding to the normal right and normal left diaphragms in the dynamic multi-image 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 first X-ray two-dimensional chest image, which is in the same image as the normal right diaphragm; and calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image. The first distance in the y-direction between the diaphragmatic angle and the normal right cardiophragmatic angle corresponding to the normal right diaphragm in the first two-dimensional chest X-ray image; the initial left cardiophragmatic angle is adjusted using the first distance in the y-direction to obtain the adjusted left cardiophragmatic angle; the intersection point of the first straight line parallel to the x-direction corresponding to the adjusted left cardiophragmatic angle and the left lung mask edge image corresponding to the first two-dimensional chest X-ray image is configured as the optimized left cardiophragmatic angle; based on the optimized left cardiophragmatic 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, the corresponding optimized left cardiophragmatic angle is located. Diaphragm; and, for using the normal right diaphragm sequence and the normal left diaphragm sequence to perform localization optimization on the abnormal right diaphragm sequence, including: determining the standard X-ray two-dimensional chest images corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multi-image 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 in the second X-ray two-dimensional chest image that is in the same image as the normal left diaphragm; calculating the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and... The second distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; the initial right cardiophrenic angle is adjusted using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; 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 is configured as the optimized right cardiophrenic angle; 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, the corresponding right diaphragm is located and optimized.

28. A dynamic diaphragm positioning optimization device, characterized in that, include: processor; A memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the dynamic diaphragm positioning optimization method according to any one of claims 1 to 25.

29. A dynamic diaphragm positioning optimization device, characterized in that, include: A computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the dynamic diaphragm positioning optimization method according to any one of claims 1 to 24.

30. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the dynamic diaphragm positioning optimization method according to any one of claims 1 to 24.

31. A medical device, characterized in that, include: The dynamic diaphragm positioning optimization device as described in any one of claims 25-29.

32. A medical device, characterized in that, include: The computer program product as described in claim 30.

Citation Information

Patent Citations

  • Abnormality detection method, abnormality detection program, abnormality detection device, server device, and information processing method

    CN113348485A

  • Diaphragm positioning method and device, program product and medical equipment

    CN118469902A