Dynamic cardiac and diaphragm angle positioning optimization method and device, program product and medical equipment
By acquiring and analyzing X-ray two-dimensional chest images of normal and abnormal diaphragm sequences, the cardiodiaphragm angle of normal diaphragm is used to optimize the abnormal diaphragm, which solves the problem of lung field deformation caused by breathing and heartbeat, and improves the localization accuracy of dynamic cardiodiaphragm angle.
Patent Information
- Application Number
- CN202510534179.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-04-25
AI Technical Summary
In chest fluoroscopic X-ray images or chest dot X-ray images of multiple time series, due to the deformation of the lung field caused by respiratory process or heartbeat, the position of the cardiac diaphragm angle is abnormal, and it is difficult for the prior art to accurately locate the dynamic cardiac diaphragm angle.
By acquiring the normal and abnormal diaphragmatic sequences of dynamic multiple X-ray two-dimensional chest images during breathing, the abnormal diaphragmatic angle corresponding to the normal diaphragmatic muscle is optimized, including calculating coordinate distance adjustment and intersection configuration based on the lung mask edge image to optimize the positioning of abnormal diaphragmatic angles.
It improves the accuracy of the positioning of dynamic diaphragmatic angles and solves the problem of inaccurate positioning caused by lung field deformation caused by breathing and heartbeat.
Smart Images

Figure CN120374589A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of X-ray two-dimensional chest image processing, and in particular, to a method and apparatus for optimizing dynamic cardiophrenic angle positioning, a program product, and a medical device. Background Art
[0002] The cardiophrenic angle refers to the angle between the right heart margin and the diaphragm, and its specific position is located inside the two lungs. The examination process of the cardiophrenic angle is as follows: the cardiophrenic angle of a normal human body is an acute angle. If a low-density pericardial fat pad shadow appears in the cardiophrenic angle during the examination, it indicates that the body may have obesity symptoms. In addition, the pericardium is inside the cardiophrenic angle and the diaphragm is at the lower part. Usually, examining the lymph nodes in the cardiophrenic angle area has clinical significance for the diagnosis of cardiophrenic angle lesions.
[0003] At the same time, due to the wide availability, low cost, fast imaging speed, and easy acquisition of X-rays, X-rays have become the most widely used main imaging technology in conventional chest and skeletal radiography. In addition, chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images (DCR, dynamic chest radiography) include more time points during free breathing, and dynamic information of the cardiophrenic angle can be provided based on chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images.
[0004] However, in chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images, due to the deformation of the lung field caused by the breathing process or heartbeat, the shape of the lung field will be abnormal, which will further cause the abnormal position of the cardiophrenic angle. Therefore, it is necessary to propose an optimization of dynamic cardiophrenic angle positioning to improve the accuracy of dynamic cardiophrenic angle positioning. Summary of the Invention
[0005] The present disclosure proposes a technical solution for a method and apparatus for optimizing dynamic cardiophrenic angle positioning, a program product, and a medical device.
[0006] According to one aspect of the present disclosure, there is provided a method for optimizing dynamic cardiophrenic angle positioning, including:
[0007] Obtaining a normal right diaphragm sequence (normal right lung diaphragm sequence), an abnormal right diaphragm sequence (abnormal right lung diaphragm sequence), a normal left diaphragm sequence (normal left lung diaphragm sequence), and an abnormal left diaphragm sequence (abnormal left lung diaphragm sequence) corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process;
[0008] Optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image by using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence; and / or, optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image by using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence.
[0009] Preferably, before optimizing the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image by using the normal right cardiophrenic angle 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.
[0010] Preferably, before optimizing the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image by using the normal left cardiophrenic angle 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.
[0011] Preferably, the method for optimizing the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image by using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence includes: determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the 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 by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; and completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.
[0012] Preferably, the method for adjusting the initial left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initial left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle.
[0013] Preferably, the method for adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: if the first distance in the y direction is greater than or equal to 0, adding the first distance in the y direction to the y-direction coordinate point of the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged.
[0014] Preferably, the method for completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.
[0015] Preferably, the method of configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization includes: making a first straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the left lung mask edge in the left lung mask edge image corresponding to the first straight line and the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.
[0016] Preferably, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the first moment as the standard X-ray two-dimensional chest image.
[0017] Preferably, the method for optimizing the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the second X-ray two-dimensional chest image of the same sheet by using the normal left cardiophrenic angle pair corresponding to the normal left diaphragm in the normal left diaphragm sequence includes: determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initialized right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the second X-ray two-dimensional chest image of the same sheet; 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; using the second distance in the y direction to adjust the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; and completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image.
[0018] Preferably, the method for adjusting the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle.
[0019] Preferably, the method for adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y direction is greater than or equal to 0, adding the second distance in the y direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged.
[0020] Preferably, the method for completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0021] Preferably, the method for configuring the focus of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: making a second straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; and configuring the intersection point with the largest x-direction coordinate among the intersection points of the second straight line and the right lung mask edge in the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0022] Preferably, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; and determining the X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest images.
[0023] Preferably, before obtaining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: obtaining at least one (initial) diaphragm sequence of the (initial) dynamic right lung diaphragm sequence and the (initial) dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process; determining the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the (initial) dynamic right lung diaphragm sequence based on the first length sequence corresponding to the (initial) dynamic right lung diaphragm sequence; or determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the (initial) dynamic left lung diaphragm sequence based on the second length sequence corresponding to the (initial) dynamic left lung diaphragm sequence.
[0024] Preferably, before obtaining 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 dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for respectively determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence according to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: respectively obtaining at least one mask edge image sequence of the right lung mask edge image sequence and the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung mask edge image sequence; respectively positioning the right lung diaphragm (initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence) based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images; and / or respectively determining the left lung apex corresponding to the left lung mask edge image sequence, and respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; respectively positioning the left lung diaphragm (left diaphragm, initial dynamic left lung diaphragm sequence, dynamic left lung diaphragm sequence) based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.
[0025] Preferably, the method for respectively positioning the right pulmonary diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the dynamic multiple X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right pulmonary diaphragm (right diaphragm, initial dynamic right pulmonary diaphragm sequence, dynamic right pulmonary diaphragm sequence).
[0026] Preferably, the method for respectively positioning the left pulmonary diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to the right pulmonary diaphragm corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining an auxiliary point corresponding to the lung mask edge image based on the coordinate points of the right cardiophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images and a set increment in the y direction; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel position points on the left edge line of the left lung mask edge image from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle, and configuring the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left pulmonary diaphragm (left diaphragm).
[0027] According to one aspect of the present disclosure, there is provided a dynamic cardiophrenic angle positioning optimization device, including:
[0028] An acquisition unit, configured to acquire 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;
[0029] A cardiophrenic angle positioning optimization unit, configured to perform positioning optimization on 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 perform positioning optimization on 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; or
[0030] Comprising: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to call the instructions stored in the memory to execute the above-mentioned dynamic cardiophrenic angle positioning optimization method; or,
[0031] Comprising: a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned dynamic cardiophrenic angle positioning optimization method is implemented.
[0032] According to one aspect of the present disclosure, there is provided a computer program product, comprising a computer program / instructions, characterized in that when the computer program / instructions are executed by a processor, the above-mentioned dynamic cardiophrenic angle positioning optimization method is implemented.
[0033] According to one aspect of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: execute the above-mentioned dynamic cardiophrenic angle positioning optimization method.
[0034] According to one aspect of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned dynamic cardiophrenic angle positioning optimization method is implemented.
[0035] According to one aspect of the present disclosure, there is provided a dynamic cardiophrenic angle positioning optimization system or medical device, applying the above-mentioned dynamic cardiophrenic angle positioning optimization method and / or comprising the above-mentioned dynamic cardiophrenic angle positioning optimization device and / or comprising the above-mentioned computer program product.
[0036] In the embodiments of the present disclosure, the present disclosure proposes a technical solution for a dynamic cardiophrenic angle positioning optimization method, device, program product and medical device to solve the problems such as inaccurate dynamic cardiophrenic angle positioning in the prior art, so as to improve the accuracy of dynamic cardiophrenic angle positioning.
[0037] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, which illustrate embodiments consistent with the present disclosure and, together with the specification, are used to explain the technical solutions of the present disclosure.
[0039] Figure 1 A flowchart showing a dynamic cardiophrenic angle positioning optimization method according to an embodiment of the present disclosure;
[0040] Figure 2is a block diagram of an electronic device 800 shown according to an exemplary embodiment;
[0041] Figure 3 is a block diagram of an electronic device 1900 shown according to an exemplary embodiment. Detailed implementation manners
[0042] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0043] The specific term "exemplary" herein means "serving as an example, embodiment, or illustration". Any embodiment described as "exemplary" herein is not necessarily to be construed as superior to or better than other embodiments.
[0044] The term "and / or" in this document merely describes an association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" in this document means any one of a plurality or any combination of at least two of a plurality. For example, including at least one of A, B, and C can represent any one or more elements selected from the set composed of A, B, and C.
[0045] In addition, for better illustration of the present disclosure, numerous specific details are given in the following detailed implementation manners. Those skilled in the art should understand that the present disclosure can be implemented without some specific details. In some instances, methods, means, elements, and circuits well-known to those skilled in the art are not described in detail so as to highlight the gist of the present disclosure.
[0046] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not elaborate further.
[0047] In addition, the present disclosure also provides a dynamic cardiophrenic angle positioning optimization device, an electronic device, a computer-readable storage medium, a program product, a system, and a medical device, all of which can be used to implement any dynamic cardiophrenic angle positioning optimization method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the part of the dynamic cardiophrenic angle positioning optimization method and will not be elaborated further.
[0048] Figure 1 shows a flowchart of a dynamic cardiophrenic angle positioning optimization method according to an embodiment of the present disclosure, as Figure 1As shown, the dynamic cardiophrenic angle positioning optimization method includes: Step S101: Obtain a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; Step S102: Use the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the same first X-ray two-dimensional chest image; and / or, use the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the same second X-ray two-dimensional chest image. To solve problems such as inaccurate positioning of the existing dynamic cardiophrenic angle and improve the accuracy of dynamic cardiophrenic angle positioning.
[0049] Among them, in the embodiments of the present disclosure and other possible embodiments, the X-ray two-dimensional chest image may be referred to as a chest (lung) X-ray two-dimensional image or a two-dimensional X-ray chest (lung) image or an X-ray two-dimensional lung image, etc. Any combination of two or more of X-ray / DR, two-dimensional, chest / lung, and image expresses the same meaning.
[0050] Step S101: Obtain a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process.
[0051] In the embodiment of the present disclosure, before obtaining the normal right diaphragm sequence, the abnormal right diaphragm sequence, the normal left diaphragm sequence, and the abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process, the method for determining the normal right diaphragm sequence, the abnormal right diaphragm sequence, the normal left diaphragm sequence, and the abnormal left diaphragm sequence corresponding to the multiple dynamic X-ray two-dimensional chest images during the breathing process includes: Obtain at least one (initial) diaphragm sequence of the (initial) dynamic right lung diaphragm sequence and the (initial) dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; Based on the first length sequence corresponding to the (initial) dynamic right lung diaphragm sequence, determine the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the (initial) dynamic right lung diaphragm sequence; or, based on the second length sequence corresponding to the (initial) dynamic left lung diaphragm sequence, determine the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the (initial) dynamic left lung diaphragm sequence.
[0052] In an embodiment of the present disclosure, before obtaining at least one (initial) diaphragm sequence of the (initial) dynamic right lung diaphragm sequence and the (initial) dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the respiration process, the method for respectively determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence based on the multiple dynamic X-ray two-dimensional chest images during the respiration process includes: respectively obtaining at least one mask edge image sequence of the right lung mask edge image sequence and the left lung mask edge image sequence corresponding to the multiple dynamic X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung mask edge image sequence; respectively positioning the right lung diaphragm (initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence) based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images; and / or, respectively determining the left lung apex corresponding to the left lung mask edge image sequence, and respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; respectively positioning the left lung diaphragm (initial dynamic left lung diaphragm sequence, dynamic left lung diaphragm sequence) based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images.
[0053] In an embodiment of the present disclosure, the method for respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the multiple dynamic X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right lung diaphragm.
[0054] In an embodiment of the present disclosure, the method for positioning the left pulmonary diaphragm respectively based on the right cardiophrenic angle corresponding to the right pulmonary diaphragm, the left pulmonary apex, the left costophrenic angle point, and the left pulmonary mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: respectively determining auxiliary points corresponding to the pulmonary mask edge image based on the coordinate points of the right cardiophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images and a set increment in the y direction; determining a corresponding second straight line based on the left pulmonary apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel position points on the left edge line of the left pulmonary mask edge image from the right pulmonary apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle, and configuring the mask edge line segment corresponding to the left pulmonary mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left pulmonary diaphragm.
[0055] In an embodiment of the present disclosure and other possible embodiments, a digital X-ray (DR) imaging device can provide high-resolution and real-time X-ray two-dimensional images. The DR imaging device can be used to image the chest to obtain corresponding X-ray two-dimensional chest images. For example, in an embodiment of the present disclosure and other possible embodiments, during free breathing or forced breathing, the digital X-ray imaging device can be used to photograph the chest containing the lungs to obtain multiple dynamic X-ray two-dimensional chest images (dynamic X-ray two-dimensional chest images to be positioned) corresponding to multiple consecutive time series; at the same time, in the breath-holding state, the digital X-ray imaging device can be used to photograph the chest containing the lungs to obtain multiple dynamic X-ray two-dimensional chest images (X-ray two-dimensional chest images to be positioned) corresponding to multiple consecutive time series in the breath-holding state. Specifically, the multiple dynamic X-ray two-dimensional chest images during the breathing process or the multiple dynamic X-ray two-dimensional chest images in the breath-holding state include at least 1 X-ray two-dimensional chest image.
[0056] In an embodiment of the present disclosure and other possible embodiments, the lung image to be segmented (the multiple dynamic X-ray two-dimensional chest images during the breathing process / dynamic X-ray two-dimensional chest images to be positioned) is segmented into a left chest image and a right chest image; the left lung and the right lung are segmented respectively based on the left chest image and the right chest image.
[0057] In embodiments of the present disclosure and other possible embodiments, the lung image to be segmented (the dynamic multi - X - ray two - dimensional chest images during the breathing process / the dynamic X - ray two - dimensional chest images to be located) is segmented into a left chest image and a right chest image; based on the left chest image and the right chest image respectively, the left lung and the right lung are segmented; or, a segmentation model of a preset convolutional neural network, a DR lung region label image for training the segmentation model, and multiple DR lung images to be segmented (lung images to be segmented / dynamic multi - X - ray two - dimensional chest images during the breathing process to be segmented / dynamic X - ray two - dimensional chest images to be located during the breathing process or in the breath - holding state) at multiple moments are obtained; wherein, the method for determining the DR lung region label image for training the segmentation model includes: detecting the costal margin boundary, the apex of the lung boundary, and the mediastinal and diaphragmatic margins of the left chest image and the right chest image of multiple DR lung region images respectively, to obtain the DR lung region label images corresponding to the multiple DR lung region images; using the DR lung region label image for training the segmentation model to train the segmentation model; based on the trained segmentation model, completing the segmentation of the left lung and / or the right lung of the multiple DR lung images to be segmented (i.e., X - ray two - dimensional chest images to be located / X - ray two - dimensional chest images), to obtain the right lung mask image and / or the left lung mask image. Among them, the lung field mask value corresponding to the right lung mask image can be configured as 1, and the lung field mask value corresponding to the left lung mask image can be configured as 2.
[0058] In embodiments of the present disclosure and other possible embodiments, the lung region (lung field) of multiple DR lung images to be segmented (lung images to be segmented / dynamic multi - X - ray two - dimensional chest images during the breathing process to be segmented / dynamic X - ray two - dimensional chest images to be located during the breathing process or in the breath - holding state) at multiple moments can be marked in a manual marking manner to obtain the DR lung region label image (X - ray two - dimensional lung region / lung field label image) for training the segmentation model; then, using the DR lung region label image (X - ray two - dimensional lung region / lung field label image) to train the segmentation model; finally, using the trained segmentation model (preset lung field segmentation model), performing lung field segmentation on the dynamic multi - X - ray two - dimensional chest images respectively, to obtain the right lung mask image sequence and / or the left lung mask image sequence.
[0059] In the embodiments of the present disclosure and other possible embodiments, before obtaining at least one mask edge image sequence of the right lung mask edge image sequence (right lung mask edge image) and the left lung mask edge image sequence (left lung mask edge image) corresponding to the dynamic multiple X-ray two-dimensional chest images (X-ray two-dimensional chest images to be located) respectively, the method for respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images includes: using an erosion template of a set size to respectively erode the right lung mask image sequence and / or the left lung mask image sequence to obtain the corresponding right lung mask eroded image sequence (right lung mask eroded image) and / or the left lung mask eroded image sequence (left lung mask eroded image); respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask eroded image sequence and / or based on the left lung mask image sequence and its corresponding left lung mask eroded image sequence.
[0060] Wherein, in the embodiments of the present disclosure and other possible embodiments, the set of left lung mask edge images corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes the left lung mask edge image sequence; similarly, the set of right lung mask edge images corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes the right lung mask edge image sequence.
[0061] Wherein, in the embodiments of the present disclosure and other possible embodiments, the set of right lung mask eroded images corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes the right lung mask eroded image sequence; similarly, the set of left lung mask eroded images corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes the left lung mask eroded image sequence.
[0062] In the embodiments of the present disclosure and other possible embodiments, the method for determining the right lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask eroded image sequence includes: subtracting the pixel value at each position in the right lung mask eroded image sequence from the pixel value at the corresponding position in the right lung mask image sequence to determine the right lung mask edge image sequence.
[0063] In the embodiments of the present disclosure and other possible embodiments, the method for determining the left lung mask edge image sequence based on the left lung mask image sequence and its corresponding left lung mask eroded image sequence includes: subtracting the pixel value at each position in the left lung mask eroded image sequence from the pixel value at the corresponding position in the left lung mask image sequence to determine the left lung mask edge image sequence.
[0064] In embodiments of the present disclosure and other possible embodiments, before respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images, the preset lung field segmentation model is used to respectively perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images to obtain the right lung mask image sequence and / or the left lung mask image sequence.
[0065] In embodiments of the present disclosure and other possible embodiments, the erosion template of the set size can be configured as an N×N erosion template with each pixel value being 1; using the N×N erosion template with each pixel value being 1, respectively perform erosion on the right lung mask image and / or the left lung mask image to obtain the corresponding right lung mask erosion image and / or left lung mask erosion image. Specifically, using the erosion template of the set size (N×N with each pixel value being 1), respectively traverse the right lung mask image and / or the left lung mask image row by row / column to obtain the corresponding right lung mask erosion image and / or left lung mask erosion image.
[0066] In embodiments of the present disclosure and other possible embodiments, the erosion template of the set size can be configured as a 3×3 erosion template with each pixel value being 1. Among them, the 3×3 erosion template with each pixel value being 1 traverses each lung field mask image (right lung mask image and / or left lung mask image) row by row / column with a step size of 1 pixel, for generating the corresponding right lung mask erosion image and / or left lung mask erosion image. More specifically, if the 9 values with pixel value 1 in the 3×3 pixel correction template are multiplied by the points of the traversed right lung mask image and / or left lung mask image, and the first and last of these 9 values are not 0, it is considered that the lung field corresponding to the right lung mask image and / or left lung mask image has been detected. When the lung field is detected, record the position information of the center of the 3×3 erosion template and its pixel value. Then, based on the recorded position information and its pixel value (1 or 2), generate the corresponding right lung mask erosion image and / or left lung mask erosion image. Then, the right lung mask image and / or the left lung mask image are respectively subtracted by the corresponding right lung mask erosion image and / or left lung mask erosion image to obtain the corresponding right lung mask edge image and / or left lung mask edge image. Among them, 1 can represent the right lung and 2 can represent the left lung.
[0067] In embodiments of the present disclosure and other possible embodiments, the method of using a preset lung field segmentation model to perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images respectively to obtain the right lung mask image sequence and / or the left lung mask image sequence includes: using the preset lung field segmentation model to perform lung field segmentation on the to-be-dynamic multiple X-ray two-dimensional chest images respectively to obtain a to-be-processed right lung mask image sequence (to-be-processed right lung mask images) and / or a to-be-processed left lung mask image sequence (to-be-processed left lung mask image sequence); using a connected component algorithm to process the to-be-processed right lung mask image sequence and / or the to-be-processed left lung mask image sequence respectively to remove over-segmented regions outside the lung field, thereby obtaining the right lung mask image sequence and / or the left lung mask image sequence.
[0068] In embodiments of the present disclosure and other possible embodiments, the preset convolutional neural network corresponding to the segmentation model (preset lung field segmentation model) can be configured as a Unet convolutional neural network or an nnUnet convolutional neural network or a convolutional neural network improved based on the Unet convolutional neural network or a convolutional neural network improved based on the nnUnet convolutional neural network. For example, the convolutional neural network improved based on the Unet convolutional neural network can be configured as a ResUnet convolutional neural network with a residual structure.
[0069] In embodiments of the present disclosure and other possible embodiments, the Unet convolutional neural network or the nnUnet convolutional neural network or the convolutional neural network improved based on the Unet convolutional neural network or the convolutional neural network improved based on the nnUnet convolutional neural network at least includes: a downsampling contracting path, an upsampling expanding path, and a final classification layer.
[0070] In embodiments of the present disclosure and other possible embodiments, before training the segmentation model using the DR lung region label images for training the segmentation model, perform data augmentation on the DR lung region label images to obtain enhanced DR lung region label images; and use the enhanced DR lung region label images to train the segmentation model.
[0071] In embodiments of the present disclosure and other possible embodiments, the method of performing data augmentation on the DR lung region label images to obtain enhanced DR lung region label images includes: performing spatial geometric transformation and / or flipping and / or rotation and / or cropping and / or scaling and / or image shifting and / or edge padding and / or random erasing and / or random occlusion operations on the DR lung region label images to obtain enhanced DR lung region label images.
[0072] In the embodiments of the present disclosure and other possible embodiments, the method for performing data augmentation on the DR lung region label image to obtain the enhanced DR lung region label image further includes: randomly extracting any two DR lung region label images from the DR lung region label image; performing a registration operation on the any two DR lung region label images to obtain the corresponding DR lung region label registration image; performing a fusion operation on the DR lung region label registration image to obtain the enhanced DR lung region label image. Among them, the registration operation on the any two DR lung region label images can adopt existing registration algorithms or models, such as one or several of the SIFT (Scale-invariant feature transform) registration algorithm or model, the SURF (Speeded Up Robust Features) registration algorithm or model, the ORB (Oriented FAST and Rotated BRIEF) registration algorithm or model, etc., or other registration algorithms or models based on convolutional neural networks. For example, the registration algorithm or model based on convolutional neural networks can be configured as a registration algorithm or model based on the VGG network.
[0073] In the embodiments of the present disclosure and other possible embodiments, the method for performing a fusion operation on the DR lung region label registration image to obtain the enhanced DR lung region label image includes: respectively performing a minimum value taking, maximum value taking, or mean value taking operation on the pixel values corresponding to the DR lung region label registration image to obtain the enhanced DR lung region label image.
[0074] In the embodiments of the present disclosure, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: respectively counting the sum of the numbers of the first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; respectively obtaining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the numbers of the first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel. Among them, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the numbers of the first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the numbers of the 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 an embodiment of the present disclosure, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: respectively counting the sum of the numbers of second pixel values corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence; respectively obtaining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the numbers of second pixel values corresponding to each left lung diaphragm and the area corresponding to each pixel. Among them, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the numbers of second pixel values corresponding to each left lung diaphragm and the area corresponding to each pixel respectively includes: respectively multiplying the sum of the numbers of second pixel values corresponding to each left lung diaphragm by the area corresponding to each pixel to obtain the second length sequence corresponding to the dynamic left lung diaphragm sequence.
[0076] In an embodiment of the present disclosure and other possible embodiments, the area corresponding to each pixel can be obtained by reading the DICOM (Digital Imaging and Communications in Medicine) file corresponding to multiple dynamic X-ray two-dimensional chest images during breathing; where DICOM, that is, Digital Imaging and Communications in Medicine, is an international standard (ISO 12052) for medical images and related information, and it defines a medical image format that can be used for data exchange and whose quality can meet clinical needs. In addition, the area corresponding to each pixel can also be input through an input device (such as a keyboard, etc.).
[0077] In an embodiment of the present disclosure and other possible embodiments, the unit of the first length sequence and / or the second length sequence is configured as a pixel value. Among them, the sum of the numbers of first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence is respectively counted to obtain the first length sequence; and / or, the sum of the numbers of second pixel values corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence is respectively counted to obtain the second length sequence.
[0078] Meanwhile, in an embodiment of the present disclosure and other possible embodiments, the first preset length difference and the value configured for the first preset length difference are the same or different. For example, the first value corresponding to the first preset length difference is configured as any value in 10 - 50 pixels; the second value corresponding to the second preset length difference is configured as any value in 10 - 50 pixels. Meanwhile, those skilled in the art can also configure other values for the first value corresponding to the first preset length difference and the second value corresponding to the second preset length difference according to actual needs.
[0079] For example, in an embodiment of the present disclosure and other possible embodiments, the first value corresponding to the first preset length difference and the second value corresponding to the second preset length difference can be respectively configured as any value in 10, 20, 30, 40, 50.
[0080] In an embodiment of the present disclosure, before obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to dynamic multiple X-ray two-dimensional chest images during the respiration process, a method for respectively determining a corresponding dynamic right lung diaphragm sequence and / or a dynamic left lung diaphragm sequence according to the dynamic multiple X-ray two-dimensional chest images during the respiration process includes: respectively obtaining at least one masked edge image sequence of 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) corresponding to the dynamic multiple X-ray two-dimensional chest images (dynamic X-ray two-dimensional chest images to be located during the respiration process / dynamic lung images during the respiration process); respectively determining the right lung apex corresponding to each right lung masked edge image in the right lung masked edge image sequence; respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each right lung masked edge image); and / or, respectively determining the left lung apex corresponding to each left lung masked edge image in the left lung masked edge image sequence, and respectively determining the right costophrenic angle point corresponding to each left lung masked edge image in the right lung masked edge image sequence and / or the left costophrenic angle point corresponding to the left lung masked edge image sequence; respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each left lung masked edge image). Wherein, the set of right lung diaphragms corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic right lung diaphragm sequence; similarly, the set of left lung diaphragms corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic left lung diaphragm sequence.
[0081] In an embodiment of the present disclosure, the method for respectively determining the right lung apex corresponding to the right lung masked edge image sequence includes: respectively detecting the right lung vertex corresponding to each right lung masked edge image in the right lung masked edge image sequence, and respectively configuring the right lung vertex as the right lung apex corresponding to the right lung masked edge image sequence.
[0082] In an embodiment of the present disclosure, the method for respectively determining the left lung apex corresponding to the left lung masked edge image sequence includes: respectively detecting the left lung vertex corresponding to each left lung masked edge image in the left lung masked edge image sequence, and respectively configuring the left lung vertex as the left lung apex corresponding to the left lung masked edge image sequence.
[0083] In an embodiment of the present disclosure, the method for respectively determining the right costophrenic angle points corresponding to the right lung mask edge image sequence includes: respectively detecting the lowest points of the right lung in each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the lowest points of the right lung as the right costophrenic angle points corresponding to the right lung mask edge image sequence.
[0084] In an embodiment of the present disclosure, the method for respectively determining the left costophrenic angle points corresponding to the left lung mask edge image sequence includes: respectively detecting the lowest points of the left lung in each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the lowest points of the left lung as the left costophrenic angle points corresponding to the left lung mask edge image sequence.
[0085] In an embodiment of the present disclosure, the method for respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle points, and the right lung mask edge images corresponding to the respective dynamic multiple X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle points corresponding to the respective dynamic multiple X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points (first pixel points) on the right edge line of the right lung mask edge image (the right heart edge line close to the heart side) from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right lung diaphragm.
[0086] In an embodiment of the present disclosure, the method for respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle points, and the left lung mask edge images corresponding to the respective dynamic multiple X-ray two-dimensional chest images includes: respectively determining an auxiliary point corresponding to the corresponding lung mask edge image based on the coordinate point of the right cardiophrenic angle corresponding to the respective dynamic multiple X-ray two-dimensional chest images and a set increment in the y direction; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle points; respectively calculating multiple second distances from multiple second pixel position points (second pixel points) on the left edge line of the left lung mask edge image (the left heart edge line close to the heart side) from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle (left cardiophrenic angle point), and configuring the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left lung diaphragm.
[0087] In the embodiments of the present disclosure and other possible embodiments, the right costophrenic angle point or the left costophrenic angle point corresponding to the left lung or the right lung is close to the origin of the xoy coordinate system; the ordinate of the right lung apex or the left lung apex corresponding to the left lung or the right lung is greater than the ordinate of the corresponding right costophrenic angle point or left costophrenic angle point. For example, the right costophrenic angle point corresponding to the right lung is close to the origin of the xoy coordinate system, the y-axis is configured in the direction from the right costophrenic angle point to the right lung apex, and the y-axis is configured in the direction from the right costophrenic angle point to the left costophrenic angle point.
[0088] For example, in the embodiments of the present 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 point B1 includes: based on the right lung apex A1(x A1 ,y A1 ) and the right costophrenic angle point B1(x B1 ,y B1 ) to determine the first coefficient a1, the second coefficient b1 and the third coefficient c1 corresponding to the first straight line Line1; based on the first coefficient a1, the second coefficient b1 and the third coefficient c1 to determine the first straight line Line1.
[0089] Line1: a1x + b1y + c1 = 0.
[0090] Furthermore, before calculating the multiple first distances from multiple first pixel points on the right edge line A1B1 (the right heart edge line close to the heart side) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle point B1 to the first straight line respectively, based on the right lung apex A1 to the right costophrenic angle point B1 to determine the right edge line A1B1 of the right lung mask edge image, the determination method includes: respectively taking the right lung apex A1 as the starting point, and respectively along the right lung mask edge line of the right lung mask edge image, calculating the length of the first edge line and the second edge line of the right lung apex to the right costophrenic angle point from the right lung apex A1 to the right costophrenic angle point B1 / calculating the length of the first edge line and the second edge line of the right lung apex to the right costophrenic angle point from the right costophrenic angle point B1 to the right lung apex A1; wherein, the first edge line and the second edge line are respectively distributed on both sides of the first straight line Line1, and the longest edge line among the length of the first edge line and the length of the second edge line is configured as the right edge line A1B1 of the right lung mask edge image.
[0091] For example, in the embodiments of the present disclosure and other possible embodiments, calculating the multiple first distances from multiple first pixel points on the right edge line A1B1 (the right heart edge line on the side close to the heart) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle point B1 respectively includes: taking the right lung apex A1 as the starting / ending point and the right costophrenic angle point B1 as the ending / starting point, and successively calculating the multiple first distances from the multiple first pixel points to the first straight line Line1 along the right edge line A1B1 of the right lung mask edge image. Further, the first pixel point corresponding to the maximum distance among the multiple first distances is configured as the right cardiophrenic angle C1, and the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle C1 and the right costophrenic angle point B1 is configured and positioned as the right lung diaphragm B1C1.
[0092] Specifically, in the embodiments of the present disclosure and other possible embodiments, a calculation formula corresponding to the right cardiophrenic angle C1(x, y) is given.
[0093]
[0094] Among them, represents the multiple first pixel points p r1 , p r2 , p r3 ,..., p rn to the multiple first distances (d r1 (p r1 ), d r2 (p r2 ), d r3 (p r3 ),..., d rn (p rn )) of the first straight line Line1; r represents the right lung; n≥1 and is a positive integer; max() represents the maximum function; (x r1 , y r1 ), (x r2 , y r2 ), (x r3 , y r3 ),...,(x rn , y rn ) respectively represent the coordinates corresponding to the multiple first pixel points p r1 , p r2 , p r3 ,..., p rn ; d r1 , d r2 , d r3 ,..., d rn respectively represent the multiple first pixel points p r1 , p r2 , pr3 ,..., p rn The corresponding Euclidean distance.
[0095] In an embodiment of the present disclosure, the method for locating the left pulmonary diaphragm based on the right cardiophrenic angle corresponding to the right pulmonary diaphragm, the left pulmonary apex, the left costophrenic angle point, and the left pulmonary mask edge image includes: determining an auxiliary point corresponding to the pulmonary 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 pulmonary apex and the left costophrenic angle point; respectively calculating a plurality of second distances from a plurality of second pixel points on the left edge line of the left pulmonary mask edge image (the left cardiac margin line close to the heart side) from the right pulmonary apex to the auxiliary point to the second straight line; configuring the second pixel point corresponding to the maximum distance among the plurality of second distances as the left cardiophrenic angle (left cardiophrenic angle point), and configuring and positioning the mask edge line segment corresponding to the left pulmonary mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the left pulmonary diaphragm.
[0096] In an embodiment of the present disclosure, the method for determining an auxiliary point corresponding to the pulmonary 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 a corresponding auxiliary line parallel to the x direction; determining the intersection point of the auxiliary line and the left pulmonary mask edge image as the auxiliary point corresponding to the pulmonary mask edge image.
[0097] In an embodiment of the present disclosure, the method for determining the intersection point of the auxiliary line and the left pulmonary mask edge image as the auxiliary point corresponding to the pulmonary mask edge image includes: the intersection points of the auxiliary line and the left pulmonary mask edge image include: a first group of intersection points and a second group of intersection points; determining the intersection point with the smaller / minimum abscissa among the first group of intersection points and the second group of intersection points as the auxiliary point corresponding to the pulmonary mask edge image.
[0098] For example, in an embodiment of the present disclosure and other possible embodiments, the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle C1 is added / subtracted by the set increment Δy in the y direction to obtain a corresponding auxiliary line parallel to the x direction (y C1 + / -Δy); the intersection point of the auxiliary line (y C1 + / -Δy) and the left pulmonary mask edge image is determined as the auxiliary point C2' corresponding to the pulmonary mask edge image. Specifically, the intersection points of the auxiliary line and the left pulmonary mask edge image include: a first group of intersection points and a second group of intersection points; determining the intersection point with the smaller / minimum abscissa among the first group of intersection points and the second group of intersection points as the auxiliary point C2' corresponding to the pulmonary mask edge image.
[0099] Specifically, when adding the set increment Δy in the y direction to the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle, the set increment Δy is configured as a negative value; or, when subtracting the set increment Δy in the y direction from the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle, the set increment Δy is configured as a positive value. A calculation formula corresponding to the auxiliary point C2’(x, y) is given, that is, C'2(x, y) = C1(x, y - Δy). C1 Specifically, when adding the set increment Δy in the y direction to the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle, the set increment Δy is configured as a negative value; or, when subtracting the set increment Δy in the y direction from the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle, the set increment Δy is configured as a positive value. A calculation formula corresponding to the auxiliary point C2’(x, y) is given, that is, C'2(x, y) = C1(x, y - Δy). C1 Specifically, when adding the set increment Δy in the y direction to the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle, the set increment Δy is configured as a negative value; or, when subtracting the set increment Δy in the y direction from the ordinate y of the coordinate point C1(x, y) of the right cardiophrenic angle, the set increment Δy is configured as a positive value. A calculation formula corresponding to the auxiliary point C2’(x, y) is given, that is, C'2(x, y) = C1(x, y - Δy).
[0100] Further, in the embodiments of the present disclosure and other possible embodiments, based on the left lung apex A2 and the left costophrenic angle point B2, a corresponding second straight line Line2 is determined; the method for determining the corresponding second straight line Line2 based on the left lung apex A2 and the left costophrenic angle point B2 includes: based on the left lung apex A2(x A2 , y A2 ) and the left costophrenic angle point B2(x B2 , y B2 ) to determine the fourth coefficient a2, the fifth coefficient b2, and the sixth coefficient c2 corresponding to the second straight line Line2; based on the fourth coefficient a2, the fifth coefficient b2, and the sixth coefficient c2; determine the second straight line Line2.
[0101] Line2: a2x + b2y + c2 = 0.
[0102] Furthermore, before calculating the multiple second distances from multiple second pixel points on the left edge line A2B2 of the left lung mask edge image (the left cardiac margin line on the side close to the heart) from the left lung apex A2 to the sitting costophrenic angle point B2 to the second straight line, based on the left lung apex A2 to the sitting costophrenic angle point B2 to determine the left edge line A2B2 of the left lung mask edge image, the determination method includes: respectively taking the left lung apex A2 as the starting point, respectively along the left lung mask edge line of the left lung mask image, calculating the third edge line length and the fourth edge line length from the left lung apex A2 to the sitting costophrenic angle point B2 of the left lung apex to the left costophrenic angle point / calculating the third edge line length and the fourth edge line length from the sitting costophrenic angle point B2 to the left lung apex A2 of the left lung apex to the left costophrenic angle point; wherein, the third edge line and the fourth edge line are respectively distributed on both sides of the second straight line Line2, and the longest edge line among the lengths of the first edge line and the second edge line is configured as the left edge line A2B2 of the right lung mask edge image.
[0103] For example, in the embodiments of the present disclosure and other possible embodiments, calculating the multiple second distances from multiple second pixel points on the left edge line A1B1 (the left cardiac margin line on the side close to the heart) of the right lung mask edge image from the left lung apex A2 to the right costophrenic angle point B2 includes: taking the left lung apex A2 as the starting / ending point and the right costophrenic angle point B2 as the ending / starting point, and successively calculating the multiple second distances from the multiple second pixel points to the second straight line Line2 along the left edge line A1B1 of the right lung mask edge image. Furthermore, the second pixel point corresponding to the maximum distance among the multiple second distances is configured as the right cardiophrenic angle C2, and the mask edge line segment corresponding to the right lung mask edge image between the left cardiophrenic angle C2 and the right costophrenic angle point B2 is configured and positioned as the left lung diaphragm B2C2.
[0104] Specifically, in the embodiments of the present disclosure and other possible embodiments, a calculation formula for the right cardiophrenic angle C2(x,y) is given.
[0105]
[0106] Among them, represents the multiple second pixel points p l1 , p l2 , p l3 ,..., p ln to the multiple first distances d l1 (p l1 ), d l2 (p l2 ), d l3 (p l3 ),..., d ln (p ln ) of the second straight line Line2; l represents the right lung; n≥1 and is a positive integer; max() represents the maximum function; (x l1 , y l1 ), (x l2 , y l2 ), (x l3 , y l3 ),...,(x ln , y ln ) respectively represent the coordinates corresponding to multiple first pixel points p l1 , p l2 , p l3 ,..., p ln ; d l1 , d l2 , d l3 ,..., d ln respectively represent the multiple first pixel points p l1 , p l2 , pl3 ,..., p ln The corresponding Euclidean distance.
[0107] In the embodiments of the present 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 reference diaphragm length; based on the right lung reference diaphragm length, the first length in the first length sequence other than the right lung reference diaphragm length, and the first preset length difference, 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 reference diaphragm length; based on the left lung reference diaphragm length, the second length in the second length sequence other than the left lung reference diaphragm length, and the second preset length difference, the other left lung diaphragms are respectively determined as normal left diaphragms or abnormal left diaphragms.
[0108] In the embodiments of the present disclosure, the method of determining the right lung reference diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and respectively determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung reference diaphragm length, the first length in the first length sequence other than the right lung reference diaphragm length, and the first preset length difference, includes: determining the right lung diaphragm with the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence as the right lung reference diaphragm; and respectively determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the first reference length corresponding to the right lung reference diaphragm, the first length corresponding to the other right lung diaphragms in the dynamic right lung diaphragm sequence other than the right lung reference diaphragm, and the first preset length difference.
[0109] In the embodiments of the present disclosure, the method of determining the left lung reference diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and respectively determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length in the second length sequence other than the left lung reference diaphragm length, and the second preset length difference, includes: determining the left lung diaphragm with the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence as the left lung reference diaphragm; and respectively determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms based on the second reference length corresponding to the left lung reference diaphragm, the second length corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence other than the left lung reference diaphragm, and the second preset length difference.
[0110] In an embodiment of the present disclosure, the method for respectively determining whether the other right lung diaphragms are normal right diaphragms or abnormal right diaphragms based on the right lung reference diaphragm length, the first length in the first length sequence except the right lung reference diaphragm length, and the first preset length difference includes: calculating a plurality of first differences between the first length except the right lung reference diaphragm length and the right lung reference diaphragm length; if a certain first difference among the plurality of differences is greater than or equal to the first preset length difference, determining the right diaphragm corresponding to the certain first difference as an abnormal right diaphragm; otherwise, determining it as a normal right diaphragm.
[0111] For example, in an embodiment of the present disclosure and other possible embodiments, the first preset length difference is configured to be 20 mm or 20 pixels. Calculate a plurality of first differences between the first length except the right lung reference diaphragm length and the right lung reference diaphragm length; if a certain first difference among the plurality of differences is greater than or equal to the first preset length difference of 20 mm or 20 pixels, determining the right diaphragm corresponding to the certain first difference as an abnormal right diaphragm; if a certain first difference among the plurality of differences is less than the first preset length difference of 20 mm or 20 pixels, determining the right diaphragm corresponding to the certain first difference as a normal right diaphragm.
[0112] In an embodiment of the present disclosure, the method for determining the left lung reference diaphragm length by determining the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and respectively determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length in the second length sequence except the left lung reference diaphragm length, and the second preset length difference includes: calculating a plurality of second differences between the second length except the left lung reference diaphragm length and the left lung reference diaphragm length; if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference, determining the left diaphragm corresponding to the certain second difference as an abnormal left diaphragm; otherwise, determining it as a normal left diaphragm.
[0113] For example, in an embodiment of the present disclosure and other possible embodiments, the first preset length difference is configured to be 20 mm or 20 pixels. Calculate a plurality of second differences between the second length except the left lung reference diaphragm length and the left lung reference diaphragm length; if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, determining the left diaphragm corresponding to the certain second difference as an abnormal left diaphragm; if a certain second difference among the plurality of second differences is less than the second preset length difference of 20 mm or 20 pixels, if a certain second difference among the plurality of second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, a normal left diaphragm.
[0114] Step S102: Use the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or, use the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.
[0115] In the embodiments of the present disclosure and other possible embodiments, before using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, the right diaphragm corresponding to the same first X-ray two-dimensional chest image is a normal right diaphragm.
[0116] In the embodiments of the present disclosure and other possible embodiments, before using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image, the left diaphragm corresponding to the same second X-ray two-dimensional chest image is a normal left diaphragm.
[0117] In the embodiments of the present disclosure, the method for using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image includes: determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; calculating the first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; using the first distance in the y direction to adjust the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; and completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.
[0118] In an embodiment of the present disclosure, the method for adjusting the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; wherein, the method for adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: if the first distance in the y direction is greater than or equal to 0, adding the first distance in the y direction to the y-direction coordinate point of the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged.
[0119] In an embodiment of the present disclosure, the method for completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization; wherein, the method for configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization includes: making a first straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the left lung mask edge in the left lung mask edge image corresponding to the first straight line and the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.
[0120] In an embodiment of the present disclosure, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the first moment as the standard X-ray two-dimensional chest image.
[0121] In an embodiment of the present disclosure, the method for optimizing the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the 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 image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initialized right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the second X-ray two-dimensional chest image on the same sheet; 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 initialized right cardiophrenic angle using the second distance in the y direction to obtain an adjusted right cardiophrenic angle; and completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image.
[0122] In an embodiment of the present disclosure, the method for adjusting the initialized right cardiophrenic angle using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized right cardiophrenic angle using the second distance in the y direction to obtain an adjusted right cardiophrenic angle; wherein, the method for adjusting the y-direction coordinate point of the initialized right cardiophrenic angle using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y direction is greater than or equal to 0, adding the second distance in the y direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged.
[0123] In an embodiment of the present disclosure, the method for completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization; wherein, the method for configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: making a second straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; and configuring the intersection point with the largest x-direction coordinate among the intersection points of the second straight line and the right lung mask edge in the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0124] In an embodiment of the present disclosure, the method for determining a standard X-ray two-dimensional chest image corresponding to a normal left diaphragm and a normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining a second moment corresponding to the second X-ray two-dimensional chest image; and determining, as the standard X-ray two-dimensional chest image, the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images that is closest to the second moment.
[0125] The execution subject of the dynamic cardiophrenic angle positioning optimization method may be an image processing device. For example, the dynamic cardiophrenic angle positioning optimization method may be executed by a terminal device, a server, or other processing devices. Among them, the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementation manners, the dynamic cardiophrenic angle positioning optimization method may be implemented by a processor calling computer-readable instructions stored in a memory.
[0126] Those skilled in the art can understand that in the above dynamic cardiophrenic angle positioning optimization method in the specific implementation manner, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.
[0127] The present disclosure embodiment also proposes a dynamic cardiophrenic angle positioning optimization device, including: an obtaining unit, configured to obtain a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to dynamic multiple X-ray two-dimensional chest images during a breathing process; a cardiophrenic angle positioning optimization unit, configured to perform positioning optimization on an abnormal left cardiophrenic angle corresponding to an abnormal left diaphragm in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image by using a normal right cardiophrenic angle corresponding to a normal right diaphragm in the normal right diaphragm sequence; and / or perform positioning optimization on an abnormal right cardiophrenic angle corresponding to an abnormal right diaphragm in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image by using a normal left cardiophrenic angle corresponding to a normal left diaphragm in the normal left diaphragm sequence.
[0128] In the embodiments of the present disclosure and other possible embodiments, before localizing and optimizing 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, the right diaphragm corresponding to the same first X-ray two-dimensional chest image is a normal right diaphragm. At the same time, before localizing and optimizing 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, the left diaphragm corresponding to the same second X-ray two-dimensional chest image is a normal left diaphragm.
[0129] In the embodiments of the present disclosure and other possible embodiments, the dynamic cardiophrenic angle localization and optimization device further includes: a determination unit configured to, before acquiring 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, determine the acquisition of 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, including: acquiring at least one (initial) diaphragm sequence of the (initial) dynamic right pulmonary diaphragm sequence and the (initial) dynamic left pulmonary diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during respiration; determining the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the (initial) dynamic right pulmonary diaphragm sequence based on the first length sequence corresponding to the (initial) dynamic right pulmonary diaphragm sequence; or determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the (initial) dynamic left pulmonary diaphragm sequence based on the second length sequence corresponding to the (initial) dynamic left pulmonary diaphragm sequence.
[0130] Further, in the embodiments of the present disclosure and other possible embodiments, before obtaining 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 dynamic multiple X-ray two-dimensional chest images during the respiration process, respectively 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 respiration process includes: respectively obtaining at least one mask edge image sequence of the right lung mask edge image sequence and the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung mask edge image sequence; respectively positioning the right lung diaphragm (initial dynamic right lung diaphragm sequence, dynamic right lung diaphragm sequence) based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images; and / or, respectively determining the left lung apex corresponding to the left lung mask edge image sequence, and respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; respectively positioning the left lung diaphragm (initial dynamic left lung diaphragm sequence, dynamic left lung diaphragm sequence) based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images.
[0131] Further, in the embodiments of the present disclosure and other possible embodiments, the positioning of the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images respectively includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the dynamic multiple X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right lung diaphragm.
[0132] Further, in the embodiments of the present disclosure and other possible embodiments, the positioning of the left lung diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to the right lung diaphragm in each of the dynamic multiple X-ray two-dimensional chest images respectively includes: determining the auxiliary points corresponding to the lung mask edge image based on the coordinate points of the right cardiophrenic angle and the set increment in the y direction in each of the dynamic multiple X-ray two-dimensional chest images respectively; determining the corresponding second straight line based on the left lung apex and the left costophrenic angle point; calculating the multiple second distances from the multiple second pixel position points on the left side edge line of the left lung mask edge image from the right lung apex to the auxiliary point to the second straight line respectively; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle, and configuring the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left lung diaphragm.
[0133] Further, in the embodiments of the present disclosure and other possible embodiments, the method for respectively determining the right lung apex corresponding to the right lung mask edge image sequence includes: detecting the right lung vertex corresponding to each right lung mask edge image in the right lung mask edge image sequence respectively, and configuring the right lung vertex as the right lung apex corresponding to the right lung mask edge image sequence respectively. At the same time, the method for respectively 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 respectively, and configuring the left lung vertex as the left lung apex corresponding to the left lung mask edge image sequence respectively. At the same time, the method for respectively 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 respectively, and configuring the right lung lowest point as the right costophrenic angle point corresponding to the right lung mask edge image sequence respectively. At the same time, the method for respectively determining the left costophrenic angle point corresponding to the left lung mask edge image sequence includes: detecting the left lung lowest point corresponding to each left lung mask edge image in the left lung mask edge image sequence respectively, and configuring the left lung lowest point as the left costophrenic angle point corresponding to the left lung mask edge image sequence respectively.
[0134] In the embodiments of the present disclosure and other possible embodiments, the cardiophrenic angle positioning optimization unit includes at least one positioning optimization unit of a left cardiophrenic angle positioning optimization unit and a right cardiophrenic angle positioning optimization unit; the left cardiophrenic angle positioning optimization unit is used to use the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to position and optimize 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; the right cardiophrenic angle positioning optimization unit is used to use the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to position and optimize 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.
[0135] Further, in the embodiments of the present disclosure and other possible embodiments, the left cardiophrenic angle positioning optimization unit includes: a first determination unit, a first configuration unit, a first calculation unit, an adjustment unit, and a first positioning optimization; wherein, the first determination unit is used to determine the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; the first configuration 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 initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; the first calculation 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 adjustment unit is used to adjust the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; the first positioning optimization is used to complete the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.
[0136] Furthermore, in the embodiments of the present disclosure and other possible embodiments, the method of adjusting the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle.
[0137] Furthermore, in the embodiments of the present disclosure and other possible embodiments, adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: if the first distance in the y direction is greater than or equal to 0, then adding the first distance in the y direction to the y-direction coordinate point of the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged.
[0138] Further, in the embodiments of the present disclosure and other possible embodiments, the method for optimizing the positioning of the abnormal left cardiophrenic angle by using the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the optimized left cardiophrenic angle after positioning.
[0139] Further, in the embodiments of the present disclosure and other possible embodiments, the step of configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the optimized left cardiophrenic angle after positioning includes: making a first straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the left lung mask edge 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 after positioning.
[0140] Further, in the embodiments of the present disclosure and other possible embodiments, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images that is closest to the first moment as the standard X-ray two-dimensional chest image.
[0141] Further, in the embodiments of the present disclosure and other possible embodiments, the left cardiophrenic angle positioning optimization unit includes: a second determination unit, a second configuration unit, a second calculation unit, an adjustment unit, and a second positioning optimization; wherein, the second determination unit is configured to determine the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images; the second configuration unit is configured to configure the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initialized 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 calculation unit is configured 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 adjustment unit is configured to adjust the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle; the second positioning optimization is configured to complete the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image.
[0142] Further, in the embodiments of the present disclosure and other possible embodiments, adjusting the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle.
[0143] Further, in the embodiments of the present disclosure and other possible embodiments, adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y direction is greater than or equal to 0, adding the second distance in the y direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged.
[0144] Further, in the embodiments of the present disclosure and other possible embodiments, optimizing the positioning of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.
[0145] Further, in the embodiments of the present disclosure and other possible embodiments, configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: making a second straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; configuring the intersection point with the largest x-direction coordinate among the intersection points of the right lung mask edge of the second straight line and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization
[0146] Further, in the embodiments of the present disclosure and other possible embodiments, determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest image.
[0147] The embodiments of the present disclosure also propose a dynamic cardiophrenic angle positioning optimization device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to call the instructions stored in the memory to execute the above-mentioned dynamic cardiophrenic angle positioning optimization method. Among them, the dynamic cardiophrenic angle positioning optimization method at least includes: obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.
[0148] The embodiments of the present disclosure also propose a dynamic cardiophrenic angle positioning optimization device, including: a computer-readable storage medium with computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement the above-mentioned dynamic cardiophrenic angle positioning optimization method. Among them, the dynamic cardiophrenic angle positioning optimization method at least includes: obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.
[0149] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the dynamic cardiophrenic angle positioning optimization method described in the above method embodiments, and its specific implementation can refer to the description of the above dynamic cardiophrenic angle positioning optimization method embodiments. For the sake of brevity, it will not be repeated here.
[0150] An embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above-mentioned dynamic cardiophrenic angle positioning optimization method is implemented. Among them, the dynamic cardiophrenic angle positioning optimization method at least includes: obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image. In addition, the computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0151] An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to implement the above-mentioned dynamic cardiophrenic angle positioning optimization method. Among them, the electronic device may be provided as a terminal, a server, or other forms of devices. Among them, the dynamic cardiophrenic angle positioning optimization method at least includes: obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.
[0152] An embodiment of the present disclosure also provides a computer program product, including computer programs / instructions, which implement the above-mentioned dynamic cardiophrenic angle positioning optimization method when executed by a processor. Among them, the dynamic cardiophrenic angle positioning optimization method at least includes: obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.
[0153] An embodiment of the present disclosure also provides a dynamic cardiophrenic angle positioning optimization system or medical device, 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. Among them, the dynamic cardiophrenic angle positioning optimization method at least includes: obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in 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 positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the same second X-ray two-dimensional chest image.
[0154] Figure 2 FIG. is a block diagram of an electronic device 800 shown according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
[0155] Referring to Figure 2 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0156] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0157] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 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 memory, flash memory, magnetic disk, or optical disk.
[0158] The power supply component 806 provides power to various components of the electronic device 800. The 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 for the electronic device 800.
[0159] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0160] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0161] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0162] The sensor assembly 814 includes one or more sensors for providing an assessment of various aspects of the status of the electronic device 800. For example, the sensor assembly 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0163] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can 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 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods.
[0165] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above-described methods.
[0166] Figure 3 is a block diagram of an electronic device 1900 shown in accordance with an exemplary embodiment. For example, the electronic device 1900 can be provided as a server. Referring to Figure 3, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0167] The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
[0168] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as the memory 1932 including computer program instructions, and the above computer program instructions can be executed by the processing component 1922 of the electronic device 1900 to complete the above method.
[0169] The present disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium having thereon computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0170] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine - related instructions, microcode, firmware instructions, state - setting data, or source code or object code written in any combination of one or more programming languages, including object - oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer - readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand - alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer - readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field - programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer - readable program instructions to implement various aspects of the present disclosure.
[0171] Aspects of the present 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 the 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 the instructions, when executed by the processor of the computer or other programmable data - processing apparatus, create a means for implementing the functions / acts specified in one or more blocks of the flowchart and / or block diagram. These computer - readable program instructions can also be stored in a computer - readable storage medium, which causes a computer, a programmable data - processing apparatus, and / or other devices to operate in a particular manner, so that the computer - readable medium storing the instructions comprises a manufacture, which includes instructions for implementing various aspects of the functions / acts 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 devices to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to produce a computer-implemented process such that the instructions executed on the computer, other programmable data processing apparatus, or other devices implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0174] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of code, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending 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, can be implemented by a dedicated hardware-based system that performs the specified functions or acts, or by a combination of dedicated hardware and computer instructions.
[0175] The embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, the practical application, or the technical improvement of the technology in the market, or to enable other ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A dynamic cardiophrenic angle positioning optimization method, characterized in that Including: Obtaining a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; Using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or, using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.
2. The dynamic cardiophrenic angle positioning optimization method according to claim 1, wherein The method of using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image includes: Determining a standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the multiple dynamic X-ray two-dimensional chest images; Configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initial left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; Calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; Adjusting the initial left cardiophrenic angle using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; Based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, completing the positioning optimization of the abnormal left cardiophrenic angle.
3. The dynamic cardiophrenic angle positioning optimization method according to claim 2, wherein The method of adjusting the initial left cardiophrenic angle using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initial left cardiophrenic angle using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; and / or, The method of adjusting the y-direction coordinate point of the initial left cardiophrenic angle using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: if the first distance in the y direction is greater than or equal to 0, adding the first distance in the y direction to the y-direction coordinate point of the initial left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged; and / or, The method of completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization; and / or, The method of configuring the focus corresponding to the adjusted left cardiophrenic angle on the first straight line parallel to the x-direction and corresponding to the left lung mask edge image of the first X-ray two-dimensional chest image as the positioned and optimized left cardiophrenic angle includes: making a first straight line parallel to the x-direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the first straight line and the left lung mask edge in the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the positioned and optimized left cardiophrenic angle; and / or, The method of determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the first moment as the standard X-ray two-dimensional chest image.
4. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 1-3, characterized in that, The method of using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the same second X-ray two-dimensional chest image includes: Determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images; Configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initialized 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 initialized right cardiophrenic angle using the second distance in the y-direction to obtain an adjusted right cardiophrenic angle; Based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image, complete the positioning optimization of the abnormal right cardiophrenic angle.
5. The dynamic cardiophrenic angle positioning optimization method according to claim 4, wherein The method of adjusting the initialized right cardiophrenic angle using the second distance in the y-direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized right cardiophrenic angle using the second distance in the y-direction to obtain an adjusted right cardiophrenic angle; and / or, The method of adjusting the y-direction coordinate point of the initialized right cardiophrenic angle using the second distance in the y-direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y-direction is greater than or equal to 0, adding the second distance in the y-direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged; and / or, The method for optimizing the positioning of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization; and / or, The method for configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: making a second straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle; configuring the intersection point with the largest x-direction coordinate among the intersection points of the right lung mask edge of the second straight line and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization; and / or, The method for determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; determining the X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest images.
6. The dynamic cardiophrenic angle positioning optimization method according to any one of claims 1-5, characterized in that Before obtaining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, the method for determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process includes: Obtaining at least one diaphragm sequence of the dynamic right lung diaphragm sequence and the dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process; Based on the first length sequence corresponding to the dynamic right lung diaphragm sequence, determining the normal right diaphragm sequence and the abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence; or, based on the second length sequence corresponding to the dynamic left lung diaphragm sequence, determining the normal left diaphragm sequence and the abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence.
7. The dynamic cardiophrenic angle positioning optimization method according to claim 6, wherein Before obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during the respiration process, the method for respectively determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence according to the multiple dynamic X-ray two-dimensional chest images during the respiration process includes: respectively obtaining at least one mask edge image sequence of a right lung mask edge image sequence and a left lung mask edge image sequence corresponding to the multiple dynamic X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung mask edge image sequence; respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images; and / or, respectively determining the left lung apex corresponding to the left lung mask edge image sequence, and respectively determining the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images; and / or, The method for respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images includes: respectively determining a corresponding first straight line based on the right lung apex and the right costophrenic angle point corresponding to each of the multiple dynamic X-ray two-dimensional chest images; respectively calculating multiple first distances from multiple first pixel position points on the right edge line of the right lung mask edge image from the right lung apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and respectively configuring the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right lung diaphragm; and / or, The method for respectively positioning the left lung diaphragm based on the right cardiophrenic angle corresponding to the right lung diaphragm, the left lung apex, the left costophrenic angle point, and the left lung mask edge image corresponding to each of the multiple dynamic X-ray two-dimensional chest images includes: respectively determining auxiliary points corresponding to the lung mask edge image based on the coordinate points of the right cardiophrenic angle corresponding to each of the multiple dynamic X-ray two-dimensional chest images and a set increment in the y direction; determining a corresponding second straight line based on the left lung apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel position points on the left edge line of the left lung mask edge image from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle, and configuring the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left lung diaphragm.
8. A dynamic cardiophrenic angle positioning optimization device, characterized in that Including: An acquisition unit, configured to acquire a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to a plurality of dynamic two-dimensional X-ray chest images during respiration; A cardiophrenic angle positioning optimization unit, configured to perform positioning optimization on an abnormal left cardiophrenic angle corresponding to an abnormal left diaphragm in the abnormal left diaphragm sequence of the same first two-dimensional X-ray chest image by using a normal right cardiophrenic angle pair corresponding to the normal right diaphragm in the normal right diaphragm sequence; and / or, perform positioning optimization on an abnormal right cardiophrenic angle corresponding to an abnormal right diaphragm in the abnormal right diaphragm sequence of the same second two-dimensional X-ray chest image by using a normal left cardiophrenic angle pair corresponding to the normal left diaphragm in the normal left diaphragm sequence; or, Comprising: a processor; and a memory for storing instructions executable by the processor; Wherein, the processor is configured to call the instructions stored in the memory to execute the dynamic cardiophrenic angle positioning optimization method according to any one of claims 1 to 7; or, Comprising: a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the dynamic cardiophrenic angle positioning optimization method according to any one of claims 1 to 7 is implemented.
9. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by a processor, the dynamic cardiophrenic angle positioning optimization method according to any one of claims 1 to 7 is implemented.
10. A medical device, characterized in that, Applying the dynamic cardiophrenic angle positioning optimization method according to any one of claims 1 to 7 and / or comprising the dynamic cardiophrenic angle positioning optimization device according to claim 8 and / or comprising the computer program product according to claim 9.
Citation Information
Patent Citations
Abnormality detection method, abnormality detection program, abnormality detection device, server device, and information processing method
CN113348485A
Diaphragm positioning method and device, program product and medical equipment
CN118469902A
Method and device for detecting heart marginal point, program product and medical equipment
CN118470053A
Diaphragm angle positioning method and device, program product, medical equipment and application
CN118542689A
Left and right lung recognition method and device, program product and medical equipment
CN118552474A