Dynamic cardiophrenic angle positioning optimization method and device, program product and medical equipment

By acquiring and adjusting the sequences of normal and abnormal diaphragms in dynamic two-dimensional chest X-ray images, and optimizing the localization of abnormal diaphragms using the cardiophrenic angle of normal diaphragms, the problem of abnormal central diaphragmatic angle position in chest fluoroscopy X-ray images was solved, achieving more accurate cardiophrenic angle localization.

CN120374589BActive 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

In the existing technology, the cardiophrenic angle is not accurately located in chest fluoroscopy X-ray images or multi-time series chest spot X-ray images due to abnormal positioning caused by the breathing process or heartbeat.

Method used

By acquiring normal and abnormal diaphragm sequences corresponding to multiple dynamic two-dimensional chest X-ray images during respiration, the abnormal diaphragm is located and optimized using the cardiophrenic angle corresponding to the normal diaphragm, including calculating and adjusting the coordinate points of the cardiophrenic angle to improve the accuracy of location.

Benefits of technology

It improves the accuracy of dynamic cardiophrenic angle positioning and solves the problem of abnormal positioning caused by breathing and heartbeat.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120374589B_ABST
    Figure CN120374589B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a dynamic cardiophrenic angle positioning optimization method and device, program product and medical equipment, and relates to the technical field of X-ray two-dimensional chest image processing. The dynamic cardiophrenic angle 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; using the normal right diaphragm corresponding to the normal right cardiophrenic angle in the normal right diaphragm sequences to position and optimize the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequences of the same first X-ray two-dimensional chest image; and / or using the normal left diaphragm corresponding to the normal left cardiophrenic angle in the normal left diaphragm sequences to position and optimize the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequences of the same second X-ray two-dimensional chest image. The positioning optimization of the dynamic cardiophrenic angle can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

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

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

[0002] The cardiophrenic angle is the angle between the right edge of the heart and the diaphragm, specifically located on the medial side of both lungs. The examination procedure for the cardiophrenic angle is as follows: In a normal human body, the cardiophrenic angle is an acute angle. If a low-density pericardial fat pad is observed during the examination, it may indicate obesity. Additionally, the pericardium lies within the cardiophrenic angle, and the diaphragm is below it. Examination of the lymph nodes in the cardiophrenic angle area is clinically significant for diagnosing cardiophrenic angle disorders.

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

[0004] However, in chest fluoroscopy X-ray images or multi-time-series chest spot X-ray images, deformation of the lung fields due to breathing or heartbeat can lead to abnormal lung field morphology, which in turn causes abnormal cardiophrenic angle position. Therefore, it is necessary to propose a dynamic cardiophrenic angle localization optimization method to improve the accuracy of dynamic cardiophrenic angle localization. Summary of the Invention

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

[0006] According to one aspect of this disclosure, a dynamic cardiophrenic angle localization optimization method is provided, comprising:

[0007] 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.

[0008] The abnormal left cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image is located and optimized using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal left diaphragm sequence; and / or, 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 is located and optimized using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence.

[0009] Preferably, before 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 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 the normal right diaphragm.

[0010] Preferably, before 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 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 the normal left diaphragm.

[0011] Preferably, the method for 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 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; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; calculating the first distance in the y-direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; adjusting the initial left cardiophrenic angle using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle; and optimizing the localization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.

[0012] 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.

[0013] 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.

[0014] 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.

[0015] 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.

[0016] 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.

[0017] Preferably, the method for 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 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; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image; calculating the second distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; adjusting the initial right cardiophrenic angle using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; and 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.

[0018] 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.

[0019] 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.

[0020] 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.

[0021] 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.

[0022] 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.

[0023] 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 (initial) diaphragm sequence of (initial) dynamic right lung diaphragm sequence and (initial) 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 (initial) dynamic right lung diaphragm sequence based on a first length sequence corresponding to the (initial) dynamic right lung diaphragm sequence; or, determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the (initial) dynamic left lung diaphragm sequence based on a second length sequence corresponding to the (initial) dynamic left lung diaphragm sequence.

[0024] Preferably, before acquiring at least one (initial) diaphragm sequence of the (initial) dynamic right lung diaphragm sequence and the (initial) dynamic left lung diaphragm sequence corresponding to the (initial) multiple dynamic two-dimensional chest X-ray 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 two-dimensional chest X-ray 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 two-dimensional chest X-ray images; determining the right lung apex corresponding to the right lung masked edge image sequence; and respectively determining the right lung apex based on the dynamic multiple two-dimensional chest X-ray images. The right lung diaphragm is located based on the right lung apex, the right costophrenic angle, and the right lung mask edge image (initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence); 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, the left lung apex, the left costophrenic angle, and the left lung mask edge image corresponding to the right lung diaphragm in each of the dynamic multiple X-ray two-dimensional chest images (left diaphragm, initial dynamic left lung diaphragm sequence, dynamic left lung diaphragm sequence).

[0025] 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 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 and locating 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 (right diaphragm, initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence).

[0026] 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 auxiliary points 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 corresponding second straight lines 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 (left diaphragm).

[0027] According to one aspect of this disclosure, a dynamic cardiophrenic angle positioning optimization device is provided, comprising:

[0028] 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.

[0029] The cardiophrenic angle localization optimization unit is used to optimize 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; and / or, to optimize 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; or...

[0030] 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 cardiophrenic angle localization optimization method; or,

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

[0032] 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 cardiophrenic angle positioning optimization method.

[0033] 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 cardiophrenic angle positioning optimization method.

[0034] According to one aspect of this disclosure, a computer-readable storage medium is provided having computer program instructions stored thereon, which, when executed by a processor, implement the above-described dynamic cardiophrenic angle positioning optimization method.

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

[0036] In the embodiments of this disclosure, a technical solution is proposed for a dynamic cardiophrenic angle positioning optimization method and device, program product and medical device to solve the problem of inaccurate dynamic cardiophrenic angle positioning in the present invention, so as to improve the accuracy of dynamic cardiophrenic angle positioning.

[0037] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. 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

[0038] 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.

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

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

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

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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.

[0046] 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.

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

[0048] Figure 1 shows a flowchart of the dynamic cardiophrenic angle localization optimization method according to an embodiment of the present disclosure. As shown in Figure 1, the dynamic cardiophrenic angle 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 X-ray two-dimensional chest images during respiration; Step S102: using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize 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; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize 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. This method aims to solve the problem of inaccurate dynamic cardiophrenic angle localization in existing methods and improve the accuracy of dynamic cardiophrenic angle localization.

[0049] 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.

[0050] 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.

[0051] 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 (initial) diaphragm sequence of (initial) dynamic right lung diaphragm sequence and (initial) 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 (initial) dynamic right lung diaphragm sequence based on a first length sequence corresponding to the (initial) dynamic right lung diaphragm sequence; or, determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the (initial) dynamic left lung diaphragm sequence based on a second length sequence corresponding to the (initial) dynamic left lung diaphragm sequence.

[0052] In embodiments of this disclosure, before acquiring at least one (initial) diaphragm sequence of the (initial) dynamic right lung diaphragm sequence and the (initial) dynamic left lung diaphragm sequence corresponding to the (initial) multiple 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 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 dynamic right lung apex based on the dynamic multiple X-ray two-dimensional chest images. 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 images (initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence); 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 each of the dynamic multi-X-ray two-dimensional chest images (initial dynamic left lung diaphragm sequence, dynamic left lung diaphragm sequence).

[0053] 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 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 cardiodiaphragm angle; and configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiodiaphragm angle and the right costophrenic angle as the corresponding right lung diaphragm.

[0054] 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 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.

[0055] 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 to obtain 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 to obtain 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 to obtain 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.

[0056] 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.

[0057] 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 two-dimensional X-ray 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 two-dimensional X-ray 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 septal 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.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] 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.

[0062] 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.

[0063] 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.

[0064] 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.

[0065] 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.

[0066] 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) in rows / columns 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.

[0067] 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.

[0068] 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 a residual structure.

[0069] 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.

[0070] 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.

[0071] 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.

[0072] 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) registration algorithms or models, SURF (Speeded UpRobust Features) registration algorithms or models, 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.

[0073] 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.

[0074] In embodiments of this disclosure, a method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: summing the number of first pixel values ​​corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; and 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. 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: 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.

[0075] In embodiments of this disclosure, a method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: summing the number of second pixel values ​​corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence; and 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. 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: 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.

[0076] 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).

[0077] 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.

[0078] 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.

[0079] 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.

[0080] In embodiments of this disclosure, before acquiring at least one diaphragm sequence corresponding to a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence from multiple dynamic two-dimensional chest X-ray 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 two-dimensional chest X-ray images during respiration includes: acquiring at least one masked edge image sequence corresponding to a right lung masked edge image sequence (right lung masked edge image) and a left lung masked edge image sequence (left lung masked edge image) from multiple dynamic two-dimensional chest X-ray images (dynamic two-dimensional chest X-ray 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 corresponding to each left lung mask edge image in the right lung mask edge image sequence and / or the left costophrenic angle 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, 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.

[0081] In an embodiment of this disclosure, 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.

[0082] In an embodiment of this disclosure, 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.

[0083] In an embodiment of this disclosure, the method for determining the right costophrenic angle point 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.

[0084] In embodiments of this disclosure, 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.

[0085] 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.

[0086] 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.

[0087] 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.

[0088] 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 B1 Determine the first coefficient a1, the second coefficient b1, and the third coefficient c1 corresponding to the first straight line Line1; determine the first straight line Line1 based on the first coefficient a1, the second coefficient b1, and the third coefficient c1.

[0089] Line 1: a1x+b1y+c1=0.

[0090] 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.

[0091] 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.

[0092] 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.

[0093]

[0094] in, This represents the plurality of first pixel points p r1 ,p r2 ,p r3 ,...,p rn Multiple first distances (d) to the first straight line Line1 r1 (p r1 ),d r2 (p r2 ),d r3 (p r3 ),...,d rn (p rn )); r represents the right lung; n ≥ 1 and is a positive integer; max() represents taking the maximum function; (x r1 ,y r1 ),(x r2 ,y r2 ),(x r3 ,y r3 ),...,(x rn ,y rn ) represent multiple first pixel points p r1 ,p r2 ,p r3 ,...,p rn Corresponding coordinates; d r1 ,d r2 ,d r3 ,...,d rn Each represents a first pixel point p. r1 ,pr2 ,p r3 ,...,p rn The corresponding Euclidean distance.

[0095] 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 pixel points 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 point 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.

[0096] 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.

[0097] 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.

[0098] 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 C1 The intersection of the + / -Δy) line 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.

[0099] 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 y-coordinate 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 corresponding to the auxiliary point C2'(x,y) is given, namely C'2(x,y)=C1(x,y-Δy).

[0100] 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.

[0101] Line 2: a²x + b²y + c² = 0.

[0102] Furthermore, before calculating the 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.

[0103] 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 cardiac 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.

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

[0105]

[0106] in, This represents the plurality of second pixel points p l1 ,p l2 ,p l3 ,...,p ln Multiple first distances d to the second straight line Line2 l1 (p l1 ),d l2 (p l2 ),d l3 (p l3 ),...,d ln (p ln ); l represents the right lung; n ≥ 1 and is a positive integer; max() represents taking the maximum function; (x l1 ,y l1 ),(x l2 ,y l2 ),(x l3 ,y l3 ),...,(x ln ,y ln ) represent multiple first pixel points p l1 ,p l2 ,p l3 ,...,p ln Corresponding coordinates; d l1 ,d l2 ,d l3 ,...,d ln Each represents a first pixel point p. l1 ,pl2 ,p l3 ,...,p ln The corresponding Euclidean distance.

[0107] In embodiments of this disclosure and other possible embodiments, the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence is determined as the right lung baseline diaphragm length; based on the right lung baseline diaphragm length, the difference between the first length in the first length sequence excluding the right lung baseline diaphragm length and the first preset length, the other right lung diaphragms are respectively determined as normal right diaphragms or abnormal right diaphragms; and / or, the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence is determined as the left lung baseline diaphragm length; based on the left lung baseline diaphragm length, the difference between the second length in the second length sequence excluding the left lung baseline diaphragm length and the second preset length, the other left lung diaphragms are respectively determined as normal left diaphragms or abnormal left diaphragms.

[0108] In embodiments of this disclosure, 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, 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.

[0109] In embodiments of this disclosure, 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.

[0110] In embodiments of this disclosure, 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, 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 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.

[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] Step S102: Optimize 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 by using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence; and / or, optimize 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 by using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence.

[0115] In the embodiments of this disclosure and other possible embodiments, before the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm in the same first X-ray two-dimensional chest image is optimized by 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 the normal right diaphragm.

[0116] In the embodiments of this disclosure and other possible embodiments, before 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 is optimized by utilizing 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 the normal left diaphragm.

[0117] In embodiments of this disclosure, the method for optimizing the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence within 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, includes: determining 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; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence within the same first X-ray two-dimensional chest image; calculating a first distance in the y-direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; adjusting the initialized left cardiophrenic angle using the first distance in the y-direction to obtain an adjusted left cardiophrenic angle; and optimizing the localization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.

[0118] In embodiments of this disclosure, 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; wherein, the method of 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 includes: if the first distance in the y-direction is greater than or equal to 0, then the y-direction coordinate point of the initial 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.

[0119] In embodiments of this disclosure, the method for optimizing the localization 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; wherein, the method for 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 two-dimensional chest X-ray 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; 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 two-dimensional chest X-ray image as the optimized left cardiophrenic angle.

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

[0121] In an embodiment of this disclosure, the method for 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 includes: determining 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; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image; calculating a second distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; adjusting the initial right cardiophrenic angle using the second distance in the y-direction to obtain an adjusted right cardiophrenic angle; and 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.

[0122] In embodiments of this disclosure, 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; wherein, the method of 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 includes: if the second distance in the y-direction is greater than or equal to 0, then adding the second distance in the y-direction to the initial right diaphragm angle to obtain the adjusted right diaphragm angle; wherein, the x-direction coordinate point corresponding to the adjusted right diaphragm angle remains unchanged.

[0123] In embodiments of this disclosure, 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 two-dimensional chest X-ray 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 two-dimensional chest X-ray image as the localized optimized right cardiophrenic angle; wherein, the method for configuring the focal 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 as the localized 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; 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 two-dimensional chest X-ray image as the localized optimized right cardiophrenic angle.

[0124] In an embodiment of this disclosure, the method for determining the standard two-dimensional chest images corresponding to the normal left diaphragm and the 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 the 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.

[0125] The dynamic cardiophrenic angle 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 cardiophrenic angle localization optimization method can be implemented by a processor calling computer-readable instructions stored in memory.

[0126] Those skilled in the art will understand that in the above-described dynamic cardiophrenic angle 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.

[0127] This disclosure also proposes a dynamic cardiophrenic angle localization optimization device, comprising: an acquisition unit for acquiring normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during respiration; a cardiophrenic angle localization optimization unit for using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize 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; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize 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.

[0128] 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.

[0129] In embodiments of this disclosure and other possible embodiments, the dynamic cardiophrenic angle positioning optimization device further includes: a determining unit, configured to determine, 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, 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, including: acquiring at least one (initial) diaphragm sequence of (initial) dynamic right lung diaphragm sequence and (initial) dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; determining the normal right diaphragm sequence and abnormal right diaphragm sequence corresponding to the (initial) dynamic right lung diaphragm sequence based on a first length sequence corresponding to the (initial) dynamic right lung diaphragm sequence; or, determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the (initial) dynamic left lung diaphragm sequence based on a second length sequence corresponding to the (initial) dynamic left lung diaphragm sequence.

[0130] Further, in the embodiments of this disclosure and other possible embodiments, before acquiring at least one (initial) diaphragm sequence corresponding to the (initial) dynamic right lung diaphragm sequence and the (initial) dynamic left lung diaphragm sequence of the dynamic multiple X-ray two-dimensional chest images during the breathing process, 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 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 dynamic multiple X-ray two-dimensional chest images based on the dynamic multiple X-ray two-dimensional chest images. 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 two-dimensional chest images (initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence); 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 each of the dynamic multi-image two-dimensional chest X-ray images (initial dynamic left lung diaphragm sequence, dynamic left lung diaphragm sequence).

[0131] Further, in the embodiments of this disclosure and other possible embodiments, the step of locating the right lung diaphragm based on the right lung apex, the right costophrenic angle, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: determining the corresponding first straight line based on the right lung apex and the 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.

[0132] Further, in the embodiments of this disclosure and other possible embodiments, the step of 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 the corresponding auxiliary point of the lung mask edge image based on the coordinate point of the right cardiophrenic angle and the set increment in the y-direction of each of the dynamic multi-dimensional chest X-ray images; determining the 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 of the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle as the corresponding left diaphragm.

[0133] Further, in the embodiments and other possible embodiments of this disclosure, the step of 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. Simultaneously, the method of 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. Simultaneously, the step of determining the right costophrenic angle point corresponding to the right lung mask edge image sequence includes: detecting the right lung lowest point corresponding to each right lung mask edge image in the right lung mask edge image sequence, and configuring the right lung lowest point as the right costophrenic angle point corresponding to the right lung mask edge image sequence. Meanwhile, 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.

[0134] In embodiments of this disclosure and other possible embodiments, the cardiophrenic angle localization optimization unit includes at least one localization optimization unit: a left cardiophrenic angle localization optimization unit and a right cardiophrenic angle localization optimization unit; the left cardiophrenic angle localization optimization unit is used to optimize 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 using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal left diaphragm sequence; the right cardiophrenic angle localization optimization unit is used to optimize 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 using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence.

[0135] Further, in the embodiments of this disclosure and other possible embodiments, the left cardiophrenic angle localization optimization unit includes: a first determining unit, a first configuring unit, a first calculating unit, an adjusting unit, and a first localization optimization; wherein, the first determining unit is used to determine 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; the first configuring unit is used to configure the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; the first calculating unit is used to calculate the first distance in the y-direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; the adjusting unit is used to adjust the initial left cardiophrenic angle using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle; the first localization optimization is used to complete the localization optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.

[0136] Furthermore, in the 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 method of adjusting the 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 method of adjusting the left diaphragm angle.

[0137] Furthermore, in the embodiments of this disclosure and other possible embodiments, the step 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.

[0138] Furthermore, 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.

[0139] Furthermore, in the embodiments of this disclosure and other possible embodiments, configuring the focus of the first straight line parallel to the x-direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the 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.

[0140] Furthermore, in the 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.

[0141] Further, in the embodiments of this disclosure and other possible embodiments, the left cardiophrenic angle localization optimization unit includes: a second determining unit, a second configuring unit, a second calculating unit, an adjusting unit, and a second localization optimization; wherein, the second determining unit is used to determine 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; the second configuring unit is used to configure the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image; the second calculating unit is used to calculate the second distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; the adjusting unit is used to adjust the initial right cardiophrenic angle using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; the second localization optimization is used to complete the localization optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image.

[0142] Furthermore, in the embodiments of this disclosure and other possible embodiments, 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.

[0143] Furthermore, in the embodiments of this disclosure and other possible embodiments, the step 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.

[0144] Furthermore, in the embodiments of this disclosure and other possible embodiments, the step of 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.

[0145] Furthermore, in the embodiments of this disclosure and other possible embodiments, 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.

[0146] Furthermore, in the embodiments of this disclosure and other possible embodiments, determining the standard 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 includes: acquiring the second moment corresponding to the second 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 second moment as the standard two-dimensional chest image.

[0147] This disclosure also proposes a dynamic cardiophrenic angle localization 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 cardiophrenic angle localization optimization method. The dynamic cardiophrenic angle localization optimization method includes at least: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first two-dimensional chest X-ray image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image.

[0148] This disclosure also proposes a dynamic cardiophrenic angle 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 cardiophrenic angle localization optimization method. The dynamic cardiophrenic angle localization optimization method includes at least: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first two-dimensional chest X-ray image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image.

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

[0150] This disclosure also proposes a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the aforementioned dynamic cardiophrenic angle localization optimization method. The dynamic cardiophrenic angle 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; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first two-dimensional chest X-ray image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image. Furthermore, the computer-readable storage medium can be a non-volatile computer-readable storage medium.

[0151] 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 cardiophrenic angle localization optimization method. The electronic device may be provided as a terminal, a server, or other type of device. The dynamic cardiophrenic angle localization optimization method includes at least: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during respiration; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first two-dimensional chest X-ray image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image.

[0152] This disclosure also proposes a computer program product, including a computer program / instruction, which, when executed by a processor, implements the aforementioned dynamic cardiophrenic angle localization optimization method. The dynamic cardiophrenic angle 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; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first two-dimensional chest X-ray image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image.

[0153] This disclosure also proposes a dynamic cardiophrenic angle localization optimization system or medical device, applying the dynamic cardiophrenic angle localization optimization method described above and / or including the dynamic cardiophrenic angle localization optimization device described above and / or including the computer program product described above. The dynamic cardiophrenic angle localization optimization method includes at least: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during respiration; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize 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; and / or using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize 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.

[0154] 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.

[0155] Referring to FIG2, the electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.

[0156] 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.

[0157] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this 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.

[0158] 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.

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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.

[0165] 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.

[0166] 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.

[0167] 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.

[0168] 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.

[0169] 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.

[0170] 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.

[0171] 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.

[0172] 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.

[0173] 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.

[0174] 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.

[0175] 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 cardiophrenic angle localization 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 cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence, 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 is located and optimized, including: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images. The normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard two-dimensional chest X-ray image is configured to the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the sequence of abnormal left diaphragms in the same first two-dimensional chest X-ray 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 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 y-direction coordinate point of 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.

2. The dynamic cardiophrenic angle positioning optimization method according to claim 1, characterized in that, The step 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.

3. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 1 or 2, characterized in that, The step 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.

4. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 1 or 2, characterized in that, The step of 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 the 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.

5. The dynamic cardiophrenic angle positioning optimization method according to claim 3, characterized in that, The step of 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 the 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.

6. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 1, 2, or 5, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

7. The dynamic cardiophrenic angle 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

8. The dynamic cardiophrenic angle positioning optimization method according to claim 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

9. The dynamic cardiophrenic angle positioning optimization method according to claim 6, characterized in that, 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 respiratory process, the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence are determined based on the dynamic multiple X-ray two-dimensional chest images during the respiratory process, including: 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 diaphragm sequence 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 multiple X-ray two-dimensional chest images; and / or, the left lung apex corresponding to the left lung mask edge image sequence is determined respectively; 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 respectively; 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 multiple X-ray two-dimensional chest images.

10. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 7 or 8, characterized in that, 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 respiratory process, the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence are determined based on the dynamic multiple X-ray two-dimensional chest images during the respiratory process, including: 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 diaphragm sequence 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 multiple X-ray two-dimensional chest images; and / or, the left lung apex corresponding to the left lung mask edge image sequence is determined respectively; 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 respectively; 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 multiple X-ray two-dimensional chest images.

11. The dynamic cardiophrenic angle positioning optimization method according to claim 9, characterized in that, Locating the right diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining the corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multi-dimensional chest X-ray 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 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 diaphragm.

12. The dynamic cardiophrenic angle positioning optimization method according to claim 10, characterized in that, Locating the right diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining the corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multi-dimensional chest X-ray 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 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 diaphragm.

13. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 9, 11, or 12, characterized in that, Locating the left diaphragm based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining auxiliary points 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 corresponding second straight lines based on the left lung apex and 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.

14. The dynamic cardiophrenic angle positioning optimization method according to claim 10, characterized in that, Locating the left diaphragm based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining auxiliary points 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 corresponding second straight lines based on the left lung apex and 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.

15. A dynamic cardiophrenic angle localization 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; A method for 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 using the normal left cardiophrenic angle corresponding to the normal left cardiophrenic angle in the normal left cardiophrenic sequence, including: determining the standard X-ray two-dimensional chest images corresponding to the normal left cardiophrenic and normal right cardiophrenic angle in the dynamic multi-X-ray two-dimensional chest images. The normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest X-ray image is configured to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image; the second distance in the y-direction 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 is calculated; the y-direction coordinate point of 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.

16. The dynamic cardiophrenic angle positioning optimization method according to claim 15, characterized in that, The step 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.

17. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 15 or 16, characterized in that, The step 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 image corresponding to the second X-ray two-dimensional chest image as the optimized right cardiophrenic angle.

18. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 15 or 16, characterized in that, The step of determining the standard two-dimensional chest images corresponding to the normal left and right diaphragms 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 and left diaphragms in the dynamic multi-image two-dimensional chest X-ray images closest to the second time as the standard two-dimensional chest image.

19. The dynamic cardiophrenic angle positioning optimization method according to claim 17, characterized in that, The step of determining the standard two-dimensional chest images corresponding to the normal left and right diaphragms 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 and left diaphragms in the dynamic multi-image two-dimensional chest X-ray images closest to the second time as the standard two-dimensional chest image.

20. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 15, 16, or 19, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

21. The dynamic cardiophrenic angle positioning optimization method according to claim 17, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

22. The dynamic cardiophrenic angle positioning optimization method according to claim 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

23. The dynamic cardiophrenic angle positioning optimization method according to claim 20, characterized in that, 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 respiratory process, the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence are determined based on the dynamic multiple X-ray two-dimensional chest images during the respiratory process, including: 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 dynamic 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 multiple dynamic two-dimensional chest X-ray 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 each of the multiple dynamic two-dimensional chest X-ray images.

24. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 21 or 22, characterized in that, 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 respiratory process, the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence are determined based on the dynamic multiple X-ray two-dimensional chest images during the respiratory process, including: 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 dynamic 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 multiple dynamic two-dimensional chest X-ray 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 each of the multiple dynamic two-dimensional chest X-ray images.

25. The dynamic cardiophrenic angle positioning optimization method according to claim 23, characterized in that, Locating the right diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining the corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multi-dimensional chest X-ray 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 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 diaphragm.

26. The dynamic cardiophrenic angle positioning optimization method according to claim 24, characterized in that, Locating the right diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining the corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multi-dimensional chest X-ray 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 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 diaphragm.

27. The dynamic cardiophrenic angle positioning optimization method according to claim 23, 25, or 26, characterized in that, Locating the left diaphragm based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining auxiliary points 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 corresponding second straight lines based on the left lung apex and 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.

28. The dynamic cardiophrenic angle positioning optimization method according to claim 24, characterized in that, Locating the left diaphragm based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining auxiliary points 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 corresponding second straight lines based on the left lung apex and 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.

29. A dynamic cardiophrenic angle localization 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; The method optimizes the localization of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence within 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. 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 initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence within the same first X-ray two-dimensional chest image; calculating the first distance in the y-direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the first X-ray two-dimensional chest image; adjusting the y-direction coordinates of the initialized left cardiophrenic angle using the first distance in the y-direction to obtain the adjusted left cardiophrenic angle; and configuring the intersection 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. The method optimizes the localization of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence within 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. This includes: determining the standard X-ray 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 X-ray two-dimensional chest image to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the same second X-ray two-dimensional chest image; calculating the second distance in the y-direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the second X-ray two-dimensional chest image; adjusting the y-direction coordinates of the initial right cardiophrenic angle using the second distance in the y-direction to obtain the adjusted right cardiophrenic angle; and 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.

30. The dynamic cardiophrenic angle positioning optimization method according to claim 29, characterized in that, The step 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.

31. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 29 or 30, characterized in that, The step 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.

32. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 29 or 30, characterized in that, The step 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.

33. The dynamic cardiophrenic angle positioning optimization method according to claim 31, characterized in that, The step 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.

34. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 29, 30, or 33, characterized in that, The step 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 image corresponding to the second X-ray two-dimensional chest image as the optimized right cardiophrenic angle.

35. The dynamic cardiophrenic angle positioning optimization method according to claim 31, characterized in that, The step 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 image corresponding to the second X-ray two-dimensional chest image as the optimized right cardiophrenic angle.

36. The dynamic cardiophrenic angle positioning optimization method according to claim 32, characterized in that, The step 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 image corresponding to the second X-ray two-dimensional chest image as the optimized right cardiophrenic angle.

37. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 29, 30, 33, 35, or 36, characterized in that, The step of 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 the 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.

38. The dynamic cardiophrenic angle positioning optimization method according to claim 31, characterized in that, The step of 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 the 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.

39. The dynamic cardiophrenic angle positioning optimization method according to claim 32, characterized in that, The step of 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 the 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.

40. The dynamic cardiophrenic angle positioning optimization method according to claim 34, characterized in that, The step of 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 the 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.

41. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 29, 30, 33, 35, 36, 38-40, is 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

42. The dynamic cardiophrenic angle positioning optimization method according to claim 31, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

43. The dynamic cardiophrenic angle positioning optimization method according to claim 32, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

44. The dynamic cardiophrenic angle positioning optimization method according to claim 34, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

45. The dynamic cardiophrenic angle positioning optimization method according to claim 37, 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 at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to multiple dynamic two-dimensional chest X-ray images during the respiratory process; 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; 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.

46. ​​The dynamic cardiophrenic angle positioning optimization method according to claim 41, characterized in that, 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 respiratory process, the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence are determined based on the dynamic multiple X-ray two-dimensional chest images during the respiratory process, including: 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 diaphragm sequence 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 multiple X-ray two-dimensional chest images; and / or, the left lung apex corresponding to the left lung mask edge image sequence is determined respectively; 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 respectively; 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 multiple X-ray two-dimensional chest images.

47. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 42-45, characterized in that, 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 respiratory process, the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence are determined based on the dynamic multiple X-ray two-dimensional chest images during the respiratory process, including: 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 diaphragm sequence 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 multiple X-ray two-dimensional chest images; and / or, the left lung apex corresponding to the left lung mask edge image sequence is determined respectively; 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 respectively; 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 multiple X-ray two-dimensional chest images.

48. The dynamic cardiophrenic angle positioning optimization method according to claim 46, characterized in that, Locating the right diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining the corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multi-dimensional chest X-ray 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 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 diaphragm.

49. The dynamic cardiophrenic angle positioning optimization method according to claim 47, characterized in that, Locating the right diaphragm based on the right lung apex, right costophrenic angle, and right lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining the corresponding first straight line based on the right lung apex and right costophrenic angle corresponding to each of the dynamic multi-dimensional chest X-ray 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 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 diaphragm.

50. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 46, 48, or 49, characterized in that, Locating the left diaphragm based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining auxiliary points 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 corresponding second straight lines based on the left lung apex and 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.

51. The dynamic cardiophrenic angle positioning optimization method according to claim 47, characterized in that, Locating the left diaphragm based on the right cardiophrenic angle, left lung apex, left costophrenic angle, and left lung mask edge image corresponding to each of the dynamic multi-dimensional chest X-ray images includes: determining auxiliary points 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 corresponding second straight lines based on the left lung apex and 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.

52. A dynamic cardiophrenic angle 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 X-ray two-dimensional chest images during the breathing process; the cardiophrenic angle localization optimization unit is used to optimize 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 by using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence, including: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the multiple dynamic X-ray two-dimensional chest images; The normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard two-dimensional chest X-ray image is configured to the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the sequence of abnormal left diaphragms in the same first two-dimensional chest X-ray 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 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 y-direction coordinate point of 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.

53. A dynamic cardiophrenic angle 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 X-ray two-dimensional chest images during the respiratory process; the cardiophrenic angle localization optimization unit is used to optimize 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 by using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence, including: determining the standard X-ray two-dimensional chest images corresponding to the normal left diaphragm and normal right diaphragm in the multiple dynamic X-ray two-dimensional chest images; The normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard two-dimensional chest X-ray image is configured to the initial right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional chest X-ray image; the second distance in the y-direction 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 is calculated; the y-direction coordinate point of 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.

54. A dynamic cardiophrenic angle 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 X-ray two-dimensional chest images during respiration. The cardiophrenic angle localization optimization unit is used to optimize 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 diaphragm corresponding to the normal right diaphragm in the normal right diaphragm sequence, including: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the multiple dynamic X-ray two-dimensional chest images; and selecting the standard X-ray two-dimensional chest images... The normal left cardiophrenic angle corresponding to the normal left diaphragm is configured in the sequence of abnormal left diaphragms in the same 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 standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the first X-ray two-dimensional chest image is calculated; using the first distance in the y-direction, the y-direction coordinate point of the initialized left cardiophrenic angle is adjusted to obtain the adjusted left cardiophrenic angle; the first straight line parallel to the x-direction corresponding to the adjusted left cardiophrenic angle is aligned with the first X-ray two-dimensional chest image. The intersection point corresponding to the left lung mask edge image is configured as the optimized left cardiophrenic angle. The cardiophrenic angle positioning optimization unit is used to optimize the positioning 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 using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence. This 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 in the abnormal right diaphragm sequence. The second distance in the y-direction 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 is calculated. Using the second distance in the y-direction, the y-direction coordinates of the initial right cardiophrenic angle are adjusted 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.

55. A dynamic cardiophrenic angle 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 cardiophrenic angle localization optimization method according to any one of claims 1 to 51.

56. A dynamic cardiophrenic angle 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 cardiophrenic angle positioning optimization method according to any one of claims 1 to 51.

57. 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 cardiophrenic angle positioning optimization method according to any one of claims 1 to 51.

58. A medical device, characterized in that, The dynamic cardiophrenic angle positioning optimization method as described in any one of claims 1 to 51 is applied.

59. A medical device, characterized in that, Includes the dynamic cardiophrenic angle positioning optimization device as described in any one of claims 52 to 56.

60. A medical device, characterized in that, Includes the computer program product as described in claim 57.

Citation Information

Patent Citations

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

    CN113348485A

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

    CN118542689A