Method and system for adjusting light field of light bundling device and digital X-ray camera

By installing a camera on the beam lighter and using trigonometric function to calculate and adjust the light field size, the problems of time-consuming and laborious manual operation and inaccurate light field adjustment are solved, and timely and precise adjustment of the beam light field is achieved, improving the accuracy of diaphragm measurement.

CN120360581APending Publication Date: 2025-07-25SHENZHEN BLUE SHADOW MEDICAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510685378.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The light field adjustment of existing beam light devices relies on manual operation, which is time-consuming and labor-intensive, and the accuracy depends on the experience of the operator. The light field cannot be adjusted in time and accurately, resulting in lung field deformation and abnormal diaphragm measurement.

Method used

By installing a camera on the beam lighter, the size of the pixel points in the subject's image is determined, and the beam light field size is adjusted based on the trigonometric function, the border is set to accurately adjust the light field, and the diaphragm sequence optimization is performed in combination with multiple X-ray images during breathing.

Benefits of technology

It improves the timeliness and accuracy of beam light field adjustment, reduces diaphragm positioning errors caused by lung field deformation, and improves the accuracy of diaphragm measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120360581A_ABST
    Figure CN120360581A_ABST
Patent Text Reader

Abstract

The invention relates to a method and a system for adjusting a light field of a light bundling device, and a digital X-ray camera, and relates to the technical field. The method for adjusting the light field of the light bundling device comprises the following steps of: determining a first size of a pixel point in a subject image in the horizontal direction and a second size of the pixel point in the vertical direction, wherein the first size and the second size of the pixel point in the subject image are obtained when a camera mounted on the light bundling device shoots a subject under the condition that the light field size of the light bundling device is set; setting a set frame in the subject image, and determining a boundary pixel position corresponding to the set frame according to a first width and a first height of the subject image, the first size, the second size, and a second width and a second height corresponding to the set frame; and based on the first size, the second size and the boundary pixel position, adjusting the set light field size of the light bundling device. According to the embodiment of the invention, the adjustment of the light field of the light bundling device can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of digital X-ray cameras, and particularly to a method and system for adjusting the light field of a collimator, and a digital X-ray camera. Background Art

[0002] The most important function of a collimator is to limit the radiation field of X-rays. During X-ray examinations, the range of the X-ray beam is precisely adjusted to cover a specific examination area, avoiding irradiation of unnecessary parts outside the specific examination area, so as to irradiate a specific examination area, reducing the radiation dose of the non-examination parts (non-specific examination areas) of the examinee, and at the same time reducing the influence of scattered rays on the quality of the image (X-ray image). For example, the range of the X-ray beam is precisely adjusted to cover the chest area, avoiding irradiation of unnecessary parts such as the neck and abdomen.

[0003] During the actual operation of the collimator, the operator can directly observe the specific examination area to be irradiated by the X-rays through the light indication on the collimator. However, this manual operation process is not only time-consuming and laborious, but also limited by the operator's level and experience, and cannot adjust the light field of the collimator in a timely and accurate manner.

[0004] In addition, due to the wide availability, low cost, fast imaging speed and easy acquisition of X-rays, X-rays have become the most widely used main imaging technology in conventional chest and skeletal radiography. In addition, chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images (DCR, dynamic chest radiography) include more time points during free breathing, and dynamic information of the diaphragm can be provided based on chest fluoroscopy X-ray images or multi-time series chest spot film X-ray images. Therefore, accurate diaphragm detection in the dynamic multiple X-ray two-dimensional chest images corresponding to DCR images during the breathing process is crucial for accurately evaluating the diaphragm motor function. However, due to the deformation of the lung field in DCR resulting in abnormal lung field morphology, existing diaphragm measurement methods often lead to abnormal diaphragm measurement corresponding to the lung field. Therefore, it is necessary to propose an optimization algorithm to ensure the accuracy of diaphragm measurement on dynamic chest X-ray (dynamic multiple X-ray two-dimensional chest images) images for subsequent quantitative analysis. Summary of the Invention

[0005] The present disclosure proposes a technical solution for a method and system for adjusting the light field of a collimator, and a digital X-ray camera.

[0006] According to one aspect of the present disclosure, a method for adjusting the light field of a collimator is provided, including:

[0007] Determine the first dimension of the pixel points in the horizontal direction and the second dimension of the pixel points in the vertical direction in the subject image captured by the camera installed on the collimator for the subject under the set collimator light field size.

[0008] Set a set border within the subject image, and determine the boundary pixel positions corresponding to the set border according to the first width and the first height of the subject image, the first dimension, the second dimension, the second width and the second height corresponding to the set border.

[0009] Adjust the set collimator light field size based on the first dimension, the second dimension and the boundary pixel positions.

[0010] Preferably, the determining the first dimension of the pixel points in the horizontal direction and the second dimension of the pixel points in the vertical direction in the subject image captured by the camera installed on the collimator for the subject under the set collimator light field size includes: obtaining the first viewing angle in the horizontal direction, the second viewing angle in the vertical direction, the distance from the camera to the subject, and the first width and the first height corresponding to the subject image captured by the camera for the subject; determining the first dimension of the pixel points in the horizontal direction and the second dimension of the pixel points in the vertical direction in the subject image according to the first viewing angle, the second viewing angle, the first width and the first height, and the distance from the camera to the subject.

[0011] Preferably, the determining the first dimension of the pixel points in the horizontal direction and the second dimension of the pixel points in the vertical direction in the subject image according to the first viewing angle, the second viewing angle, the first width and the first height, and the distance from the camera to the subject includes: determining the first dimension of the pixel points in the horizontal direction in the subject image according to the first viewing angle, the first width and the distance from the camera to the subject; determining the second dimension of the pixel points in the vertical direction in the subject image according to the second viewing angle, the first height and the distance from the camera to the subject.

[0012] Preferably, the determining the first dimension of the pixel points in the horizontal direction in the subject image according to the first viewing angle, the first width and the distance from the camera to the subject includes: calculating the first angle corresponding to the first viewing angle in the horizontal direction; determining the first dimension of the pixel points in the horizontal direction in the subject image based on the trigonometric calculation rule, using the first angle, the first width and the distance from the camera to the subject.

[0013] Preferably, the method for calculating the first angle corresponding to the first field of view angle in the horizontal direction includes: obtaining a first ratio p1 corresponding to the light field window of the beam shaper and the camera in the horizontal direction; calculating the first angle corresponding to the first field of view angle at the first ratio p1 (first field of view angle × first ratio p1).

[0014] Preferably, determining the first ratio p1 corresponding to the light field window of the beam shaper and the camera in the horizontal direction includes: calculating a first length corresponding to the light field window of the beam shaper in the horizontal direction, using the position of the camera in the horizontal direction to divide the first length into a first sub-length and a second sub-length, and configuring the ratio of the first sub-length or the second sub-length to the first length as the first ratio p1.

[0015] Preferably, if the camera is installed on the inner side / outer side of a side housing close to the center position of the light field window of the beam shaper, the method for calculating the first angle corresponding to the first field of view angle in the horizontal direction includes: calculating the first angle corresponding to the first half field of view angle (first field of view angle / 2) in the horizontal direction; wherein, if the camera is installed on the inner side / outer side of a side housing close to the center position of the light field window of the beam shaper, the first ratio p1 is configured as 1 / 2.

[0016] Preferably, based on the trigonometric calculation rule, using the first angle, the first width, and the distance from the camera to the subject, determining the first size of the pixel point in the horizontal direction in the subject image includes: calculating a first proportional width corresponding to the first width at the first ratio p1 (first width × first ratio p1); based on the trigonometric calculation rule, using the first angle, the first proportional width, and the distance from the camera to the subject, determining the first size of the pixel point in the horizontal direction in the subject image.

[0017] Preferably, if the camera is installed on the inner side / outer side of a side housing close to the center position of the light field window of the beam shaper, the method for determining the first size of the pixel point in the horizontal direction in the subject image based on the trigonometric calculation rule, using the first angle, the first width, and the distance from the camera to the subject includes: calculating a first half width corresponding to the first width (first width / 2); based on the trigonometric calculation rule, using the first angle, the first half width, and the distance from the camera to the subject, determining the first size of the pixel point in the horizontal direction in the subject image; wherein, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0018] Preferably, determining the second size of the pixel point in the vertical direction in the image of the subject according to the second viewing angle, the first height, and the distance from the camera to the subject includes: calculating a second angle corresponding to the second viewing angle in the vertical direction; based on the trigonometric function calculation rule, using the second angle, the second width, and the distance from the camera to the subject to determine the second size of the pixel point in the vertical direction in the image of the subject.

[0019] Preferably, the method for calculating the second angle corresponding to the second viewing angle in the horizontal direction includes: obtaining a second ratio between the camera and the light field window of the beam expander in the vertical direction; calculating the second angle corresponding to the second viewing angle at the second ratio (second viewing angle × second ratio).

[0020] Preferably, determining the second ratio p1 between the camera and the light field window of the beam expander in the vertical direction includes: calculating a second length corresponding to the light field window of the beam expander in the vertical direction, using the position of the camera in the vertical direction to divide the second length into a third sub-length and a fourth sub-length, and configuring the ratio of the third sub-length or the fourth sub-length to the second length as the second ratio.

[0021] Preferably, if the camera is installed inside / outside the side housing close to the center position of the light field window of the beam expander, the method for calculating the second angle corresponding to the second viewing angle in the vertical direction includes: calculating the second angle corresponding to the second half viewing angle (second viewing angle / 2) corresponding to the second viewing angle in the vertical direction; wherein, if the camera is installed inside / outside the side housing close to the center position of the light field window of the beam expander, the first ratio p1 is configured as 1 / 2.

[0022] Preferably, based on the trigonometric function calculation rule, using the second angle, the first height, and the distance from the camera to the subject to determine the second size of the pixel point in the vertical direction in the image of the subject includes: calculating a first proportional height corresponding to the first height at the second ratio (first height × second ratio); based on the trigonometric function calculation rule, using the second angle, the first proportional height, and the distance from the camera to the subject to determine the second size of the pixel point in the vertical direction in the image of the subject.

[0023] Preferably, if the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam shaper, the method for determining the second dimension of the pixel points in the vertical direction in the subject image based on the trigonometric calculation rule, using the second angle, the first height, and the distance from the camera to the subject, includes: calculating the first half-height corresponding to the first height (first height / 2); based on the trigonometric calculation rule, using the second angle, the first half-height, and the distance from the camera to the subject, determining the second dimension of the pixel points in the vertical direction in the subject image; wherein, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0024] Preferably, setting a set border in the subject image, and determining the boundary pixel positions corresponding to the set border according to the first width and first height of the subject image, the first dimension, the second dimension, the second width and second height corresponding to the set border, includes: respectively determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions according to the first width, the second width, and the first dimension; respectively determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel positions according to the first height, the second height, and the second dimension.

[0025] Preferably, respectively determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions according to the first width, the second width, and the first dimension, includes: determining the pixel width corresponding to the set border according to the second width and the first dimension; based on the first width and the pixel width, determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions.

[0026] Preferably, determining the pixel width corresponding to the set border according to the second width and the first dimension; based on the first width and the pixel width, determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions, includes: obtaining the first ratio and the third ratio corresponding to the light field window of the camera and the beam shaper in the horizontal direction; calculating the difference between the first width and the pixel width to obtain the width difference; calculating the width ratio difference corresponding to the width difference under the first ratio (width difference × first ratio) to obtain the left boundary pixel position; calculating the sum of the first width and the pixel width to obtain the width accumulation value; calculating the width ratio accumulation value corresponding to the width accumulation value under the third ratio (width accumulation value × third ratio) to obtain the left boundary pixel position.

[0027] Preferably, if the camera is installed on the inner / outer side of the housing near the center position of the light field window of the beam shaper, the determination of the left and right boundary pixel positions corresponding to the boundary pixel position based on the first width and the pixel width includes: subtracting the pixel width from the first width to obtain a width difference; calculating a half-width difference corresponding to the width difference (dividing the width difference by 2) to obtain the left boundary pixel position; adding the pixel width to the first width to obtain a width accumulation value; calculating a half-width accumulation value corresponding to the width accumulation value (dividing the width accumulation value by 2) to obtain the right boundary pixel position; wherein, the first ratio and the third ratio are respectively configured as 1 / 2.

[0028] Preferably, the determination of the upper and lower boundary pixel positions corresponding to the boundary pixel position based on the first height, the second height, and the second dimension includes: determining the pixel height corresponding to the set border based on the second height and the second dimension; determining the upper and lower boundary pixel positions corresponding to the boundary pixel position based on the first height and the pixel height.

[0029] Preferably, the determination of the pixel height corresponding to the set border based on the second height and the second dimension; and the determination of the upper and lower boundary pixel positions corresponding to the boundary pixel position based on the first height and the pixel height includes: obtaining a second ratio and a fourth ratio corresponding to the vertical direction between the camera and the light field window of the beam shaper; subtracting the pixel height from the first height to obtain a height difference; calculating a height difference corresponding to the height difference at the second ratio (the height difference × the second ratio) to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain a height accumulation value; calculating a height ratio accumulation value corresponding to the height accumulation value at the fourth ratio (the height accumulation value × the fourth ratio) to obtain the lower boundary pixel position.

[0030] Preferably, if the camera is installed on the inner / outer side of the housing near the center position of the light field window of the beam shaper, the determination of the upper and lower boundary pixel positions corresponding to the boundary pixel position based on the first height and the pixel height includes: subtracting the pixel height from the first height to obtain a height difference; calculating a half-height difference corresponding to the height difference (dividing the height difference by 2) to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain a height accumulation value; calculating a half-height accumulation value corresponding to the height accumulation value (dividing the height accumulation value by 2) to obtain the lower boundary pixel position; wherein, the third ratio and the fourth ratio are respectively configured as 1 / 2.

[0031] Preferably, adjusting the set collimator field size based on the first size, the second size, and the boundary pixel position includes: adjusting the size of the set collimator field size in the horizontal direction based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size; adjusting the size of the set collimator field size in the vertical direction based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size.

[0032] Preferably, adjusting the size of the set collimator field size in the horizontal direction based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size includes: calculating a first boundary pixel position difference between the left boundary pixel position and the right boundary pixel position; calculating a first configured size corresponding to the product of the first boundary pixel position difference and the first size, and adjusting the size of the set collimator field size in the horizontal direction to the first configured size.

[0033] Preferably, adjusting the size of the set collimator field size in the vertical direction based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size includes: calculating a second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating a second configured size corresponding to the product of the second boundary pixel position difference and the second size, and adjusting the size of the set collimator field size in the vertical direction to the second configured size.

[0034] Preferably, the collimator field adjustment method further 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 dynamic multiple X-ray two-dimensional chest images during the breathing process of the adjusted collimator field; using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.

[0035] Preferably, using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence includes: respectively using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image, to obtain an optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, performing positioning optimization on the corresponding right diaphragm.

[0036] Preferably, the positioning optimization of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, so as to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, positioning and optimizing the corresponding left diaphragm.

[0037] According to an aspect of the present disclosure, there is provided a collimator light field adjustment device or system, including: a first determination unit, configured to determine a first size of a pixel point in the horizontal direction and a second size of the pixel point in the vertical direction in an image of a subject captured by a camera mounted on a collimator under a set collimator light field size; a second determination unit, configured to set a set border in the subject image, and determine the boundary pixel positions corresponding to the set border according to the first width and the first height of the subject image, the first size, the second size, the second width and the second height corresponding to the set border; an adjustment unit, configured to adjust the set collimator light field size based on the first size, the second size and the boundary pixel positions.

[0038] According to an aspect of the present disclosure, there is provided a collimator light field adjustment device or system, including or further including: a chest image 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 X-ray two-dimensional chest images during the breathing process of an adjusted collimator light field; a diaphragm sequence optimization unit, configured to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence.

[0039] According to an aspect of the present disclosure, there is provided a collimator light field adjustment device or system, including: an electronic device, the electronic device being configured with 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 perform the above-mentioned collimator light field adjustment.

[0040] According to an aspect of the present disclosure, there is provided a collimator light field adjustment device or system, 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 perform the above-mentioned collimator light field adjustment method.

[0041] According to one aspect of the present disclosure, there is provided a collimator light field adjustment device or system, including: a computer-readable storage medium storing computer program instructions thereon, and when the computer program instructions are executed by a processor, the above-mentioned collimator light field adjustment method is implemented.

[0042] According to one aspect of the present disclosure, there is provided a collimator light field adjustment device or system, including: a computer program product including a computer program / instructions, and when the computer program / instructions are executed by a processor, the above-mentioned collimator light field adjustment method is implemented.

[0043] According to one aspect of the present disclosure, there is provided a digital X-ray camera, including: an electronic device, a processor, a memory for storing processor-executable instructions, a computer-readable storage medium, or a computer program product; wherein, the electronic device is configured to execute, the processor is configured to call the instructions stored in the memory to execute, the computer program instructions stored in the computer-readable storage medium are implemented when executed by the processor, and the computer program / instructions provided by the computer program product are executed by the processor: such as the above-mentioned collimator light field adjustment method.

[0044] According to one aspect of the present disclosure, there is provided a digital X-ray camera including or applying the above-mentioned collimator light field adjustment system.

[0045] Preferably, it further 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 of the adjusted collimator light field; and using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.

[0046] Preferably, the using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence includes: respectively using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image, to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; and based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, performing positioning optimization on the corresponding right diaphragm.

[0047] Preferably, the positioning optimization of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, positioning and optimizing the corresponding left diaphragm.

[0048] In the embodiments of the present disclosure, the technical solutions of a collimator light field adjustment method, a system, and a digital X-ray camera proposed by the present disclosure are used to solve at least one technical problem in the manual operation process that is not only time-consuming and laborious, but also limited by the level and experience of the operator, and cannot adjust the collimator light field in a timely and accurate manner, so as to improve the timeliness and accuracy of adjusting the collimator light field. At the same time, it further solves the problems such as the deformation of the lung field leading to abnormal lung field morphology and subsequent mispositioning of the diaphragm.

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

[0050] According to the following detailed description of the exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear. Brief Description of the Drawings

[0051] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to explain the technical solutions of the present disclosure.

[0052] Figure 1 The flowchart showing the collimator light field adjustment method according to the embodiments of the present disclosure. Detailed Embodiments

[0053] The following will detail various exemplary embodiments, features, and aspects of the present disclosure with reference to the accompanying drawings. The same reference numerals in the drawings denote elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings do not have to be drawn to scale unless otherwise specified.

[0054] The special term "exemplary" here means "serving as an example, an embodiment, or illustrative". Any embodiment described as "exemplary" here does not have to be construed as superior to or better than other embodiments.

[0055] As used herein, the term "and / or" is merely a description of the relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. Additionally, the term "at least one" as used herein means any one of a plurality or any combination of at least two of a plurality. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0056] In addition, to better illustrate 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 still be implemented without certain specific details. In some instances, methods, means, elements, and circuits well-known to those skilled in the art are not described in detail to highlight the gist of the present disclosure.

[0057] It can be understood that the above-described embodiments of the light beam shaper light field adjustment method according to 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.

[0058] In addition, the present disclosure also provides a light beam shaper light field adjustment device or system, an electronic device, a computer-readable storage medium, a program product, and a digital X-ray camera, all of which can be used to implement any one of the light beam shaper light field adjustment methods provided by the present disclosure. The corresponding technical solutions and descriptions can be referred to the corresponding records in the method section and will not be elaborated further.

[0059] Figure 1 A flowchart showing a light beam shaper light field adjustment method according to an embodiment of the present disclosure. As Figure 1 shown, the light beam shaper light field adjustment method includes: Step S101: Determine a first size PointSizeX of a pixel point in the horizontal direction and a second size PointSizeY of the pixel point in the vertical direction in the subject image obtained by a camera mounted on the light beam shaper when photographing a subject under a set light beam shaper light field size; Step S102: Set a set border in the subject image, and determine the boundary pixel positions corresponding to the set border according to the first width Width and the first height Height of the subject image, the first size PointSizeX, the second size PointSizeY, the second width and the second height corresponding to the set border; Step S103: Adjust the set light beam shaper light field size based on the first size PointSizeX, the second size PointSizeY, and the boundary pixel positions. To solve at least one of the technical problems that the manual operation process is not only time-consuming and laborious, but also limited by the level and experience of the operator and cannot adjust the light beam shaper light field in a timely and accurate manner, so as to improve the timeliness and accuracy of adjusting the light beam shaper light field.

[0060] Step S101: Determine the first size PointSizeX of a pixel point in the horizontal direction and the second size PointSizeY of the pixel point in the vertical direction in the subject image captured by a camera installed on the collimator for the subject under the set collimator field size.

[0061] In the embodiments of the present disclosure and other possible embodiments, the camera can be configured as a network camera, and the network camera can be installed inside the collimator for monitoring the real-time state of the subject. The set collimator field size includes the size CollimatorViewX in the horizontal direction and the size CollimatorViewY in the vertical direction. Further, determine the first size PointSizeX of a pixel point in the horizontal direction and the second size PointSizeY of the pixel point in the vertical direction in the subject image captured by the camera installed on the collimator for the subject under the size CollimatorViewX in the horizontal direction and the size CollimatorViewY in the vertical direction corresponding to the set collimator field size. Wherein, the horizontal direction and the vertical direction are configured as two mutually perpendicular directions.

[0062] In the embodiments of the present disclosure and other possible embodiments, the camera can be configured as a network camera, and the network camera can be installed inside the collimator for monitoring the video surveillance screen corresponding to the real-time state of the subject. Further, a frame of image can be extracted from the video surveillance screen corresponding to the real-time state of the subject to obtain the subject image captured by the subject under the set collimator field size. The distance from the network camera to the subject is Distance, in unit of mm; the first field of view angle of the network camera in the horizontal direction is ViewAngleX, and the second field of view angle in the vertical direction is ViewAngleY, in unit of °; a frame of image from the surveillance video, denoted as subject image A, the width (first width) and height (first height) of the subject image A are Width and Height respectively; use the following formula to calculate the first size PointSizeX of each pixel point in the horizontal direction and the second size PointSizeY of the pixel point in the vertical direction in image A, PointSizeY, in unit of mm.

[0063] In the embodiments of the present disclosure and other possible embodiments, when determining the first size PointSizeX of a pixel point in the horizontal direction and the second size PointSizeY in the vertical direction in the subject image captured by the camera mounted on the collimator for the subject under the set collimator light field size; the set collimator light field size is not a limitation on the camera shooting conditions for the camera mounted on the collimator to capture the subject image, but during the process of using an X-ray camera to capture a set part of the subject, it is necessary to carry out under the set collimator light field size, so as to obtain the digital X-ray image of the set part of the subject corresponding to the set collimator light field size. For example, the set part of the subject can be configured as the chest, head, neck, arm, leg, stomach, hand, foot, hip and other possible parts.

[0064] In the embodiments of the present disclosure, the determination of the first size PointSizeX of a pixel point in the horizontal direction and the second size PointSizeY in the vertical direction in the subject image captured by the camera mounted on the collimator for the subject under the set collimator light field size includes: obtaining the first viewing angle ViewAngleX in the horizontal direction, the second viewing angle ViewAngleX in the vertical direction, the distance Distance from the camera to the subject, and the first width Width and the first height Height corresponding to the subject image captured by the camera for the subject; and determining the first size PointSizeX of the pixel point in the horizontal direction and the second size PointSizeY in the vertical direction in the subject image according to the first viewing angle ViewAngleX, the second viewing angle ViewAngleX, the first width Width, the first height Height, and the distance Distance from the camera to the subject.

[0065] In an embodiment of the present disclosure, determining the first size PointSizeX of a pixel point in the horizontal direction and the second size PointSizeY of the pixel point in the vertical direction in the subject image according to the first viewing angle ViewAngleX, the second viewing angle ViewAngleX, the first width Width, the first height Height, and the distance Distance from the camera to the subject includes: determining the first size PointSizeX of the pixel point in the horizontal direction in the subject image according to the first viewing angle ViewAngleX, the first width Width, and the distance Distance from the camera to the subject; and determining the second size PointSizeY of the pixel point in the vertical direction in the subject image according to the second viewing angle ViewAngleX, the first height Height, and the distance Distance from the camera to the subject.

[0066] In an embodiment of the present disclosure, determining the first size PointSizeX of a pixel point in the horizontal direction in the subject image according to the first viewing angle ViewAngleX, the first width Width, and the distance Distance from the camera to the subject includes: calculating a first angle corresponding to the first viewing angle ViewAngleX in the horizontal direction; and determining the first size PointSizeX of the pixel point in the horizontal direction in the subject image based on the trigonometric calculation rule, using the first angle, the first width Width, and the distance Distance from the camera to the subject.

[0067] In an embodiment of the present disclosure, the method for calculating the first angle corresponding to the first viewing angle ViewAngleX in the horizontal direction includes: obtaining a first ratio p1 corresponding to the light field window of the beam shaper and the camera in the horizontal direction; and calculating a first angle (π*ViewAngleX×p1) corresponding to the first viewing angle ViewAngleX at the first ratio p1 (first viewing angle ViewAngleX×first ratio p1).

[0068] In the embodiment of the present disclosure and other possible embodiments, determining the first ratio p1 corresponding to the light field window of the beam shaper and the camera in the horizontal direction includes: calculating a first length corresponding to the light field window of the beam shaper in the horizontal direction, dividing the first length into a first sub-length and a second sub-length by using the position of the camera in the horizontal direction, and configuring the ratio of the first sub-length or the second sub-length to the first length as the first ratio p1.

[0069] In an embodiment of the present disclosure, if the camera is installed inside / outside the inner side of the housing on one side close to the center position of the light field window of the beam shaper, the method for calculating the first angle corresponding to the first field of view angle ViewAngleX in the horizontal direction includes: calculating the first angle corresponding to the first half field of view angle (ViewAngleX / 2) corresponding to the first field of view angle ViewAngleX in the horizontal direction, which is (π*ViewAngleX / 2) / 180.

[0070] In the embodiment of the present disclosure and other possible embodiments, if the camera is installed inside / outside the inner side of the housing on one side close to the center position of the light field window of the beam shaper, the first ratio p1 is configured to be 1 / 2.

[0071] In the embodiment of the present disclosure, based on the trigonometric calculation rule, using the first angle, the first width Width, and the distance Distance from the camera to the subject, to determine the first size PointSizeX of the pixel point in the horizontal direction in the subject image, includes: calculating the first proportional width corresponding to the first width Width at the first ratio p1 (Width × p1); based on the trigonometric calculation rule, using the first angle, the first proportional width, and the distance Distance from the camera to the subject, to determine the first size PointSizeX of the pixel point in the horizontal direction in the subject image.

[0072] In the embodiment of the present disclosure and other possible embodiments, based on the trigonometric calculation rule, using the first angle (π*ViewAngleX×p1), the first proportional width, and the distance Distance from the camera to the subject, the mathematical expression for determining the first size PointSizeX of the pixel point in the horizontal direction in the subject image is configured as: PointSizeX = Distance × tan(π*(ViewAngleX×p1) / 180) / (Width×p1).

[0073] In an embodiment of the present disclosure, if the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam shaper, the method for determining the first size PointSizeX of the pixel points in the horizontal direction in the image of the subject by using the first angle, the first width Width, and the distance Distance from the camera to the subject based on the trigonometric calculation rule includes: calculating the first half-width corresponding to the first width Width (first width Width / 2); and determining the first size PointSizeX of the pixel points in the horizontal direction in the image of the subject by using the first angle, the first half-width, and the distance Distance from the camera to the subject based on the trigonometric calculation rule.

[0074] In an embodiment of the present disclosure and other possible embodiments, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0075] In an embodiment of the present disclosure and other possible embodiments, when the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam shaper, the mathematical expression for calculating the first half-width corresponding to the first width Width (first width Width / 2); and determining the first size PointSizeX of the pixel points in the horizontal direction in the image of the subject by using the first angle, the first half-width, and the distance Distance from the camera to the subject based on the trigonometric calculation rule is configured as: PointSizeX = (Distance * tan((π * ViewAngleX / 2) / 180)) / (Width / 2); where the symbol * and the symbol × both represent the multiplication operation in the present disclosure.

[0076] In an embodiment of the present disclosure, the method for determining the second size PointSizeY of the pixel points in the vertical direction in the image of the subject according to the second field of view angle ViewAngleX, the first height Height, and the distance Distance from the camera to the subject includes: calculating the second angle corresponding to the second field of view angle ViewAngleX in the vertical direction; and determining the second size PointSizeY of the pixel points in the vertical direction in the image of the subject by using the second angle, the second width, and the distance Distance from the camera to the subject based on the trigonometric calculation rule.

[0077] In an embodiment of the present disclosure, the method for calculating the second angle corresponding to the second viewing angle ViewAngleX in the horizontal direction includes: obtaining a second ratio p2 of the camera to the light field window of the beam shaper in the vertical direction; calculating the second angle (π * ViewAngleX * p2) corresponding to the second viewing angle ViewAngleX at the second ratio p2 (second viewing angle ViewAngleX × second ratio p2).

[0078] In an embodiment of the present disclosure and other possible embodiments, determining the second ratio of the camera to the light field window of the beam shaper in the vertical direction includes: calculating a second length of the light field window of the beam shaper in the vertical direction, using the position of the camera in the vertical direction to divide the second length into a third sub-length and a fourth sub-length, and configuring the ratio of the third sub-length or the fourth sub-length to the second length as the second ratio p2.

[0079] In an embodiment of the present disclosure, if the camera is installed on the inner side / outer side of one housing near the center position of the light field window of the beam shaper, the method for calculating the second angle corresponding to the second viewing angle ViewAngleX in the vertical direction includes: calculating the second angle (π * ViewAngleY / 2) / 180 corresponding to the second half viewing angle (second viewing angle ViewAngleX / 2) of the second viewing angle ViewAngleX in the vertical direction; wherein, if the camera is installed on the inner side / outer side of one housing near the center position of the light field window of the beam shaper, the first ratio is configured as 1 / 2.

[0080] In an embodiment of the present disclosure, based on the trigonometric calculation rule, using the second angle, the second width, and the distance Distance from the camera to the subject, determining the second size PointSizeY of the pixel point in the vertical direction in the subject image includes: calculating the second ratio width (second width × second ratio p2) corresponding to the second width at the second ratio p2; based on the trigonometric calculation rule, using the second angle, the second ratio width, and the distance Distance from the camera to the subject, determining the second size PointSizeY of the pixel point in the vertical direction in the subject image.

[0081] In the embodiments of the present disclosure and other possible embodiments, based on the trigonometric calculation rules, using the second angle (π*ViewAngleX×p2), the second proportional width, and the distance Distance from the camera to the subject, the mathematical expression for determining the second size PointSizeY of the pixel point in the vertical direction in the subject image is configured as: PointSizeY = Distance×tan(π*(ViewAngleY×p2) / 180) / (Width×p2).

[0082] In the embodiments of the present disclosure, if the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam limiter, the method for determining the second size PointSizeY of the pixel point in the vertical direction in the subject image based on the trigonometric calculation rules, using the second angle, the first height Height, and the distance Distance from the camera to the subject, includes: calculating the first half-height corresponding to the first height Height (first height Height / 2); based on the trigonometric calculation rules, using the second angle, the first half-height, and the distance Distance from the camera to the subject, determining the second size PointSizeY of the pixel point in the vertical direction in the subject image.

[0083] In the embodiments of the present disclosure and other possible embodiments, when the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam limiter, the calculation of the first half-height corresponding to the first height Height (first height Height / 2); based on the trigonometric calculation rules, using the second angle, the first half-height, and the distance Distance from the camera to the subject, the mathematical expression for determining the second size PointSizeY of the pixel point in the vertical direction in the subject image is configured as: PointSizeY = (Distance*tan((π*ViewAngleY / 2) / 180)) / (Heighth / 2); where the symbol * and the symbol × both represent the multiplication operation in the present disclosure.

[0084] In the embodiments of the present disclosure and other possible embodiments, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0085] More specifically, in the embodiments of the present disclosure and other possible embodiments, a frame of image is extracted from the monitoring video, denoted as the subject image A, and the width (the first width) and height (the first height) of the subject image A are Width and Height respectively; when the camera is installed inside / outside the side housing near the center position of the light field window of the beam shaper, the following formulas are used to calculate the first size PointSizeX of each pixel point in the horizontal direction and the second size PointSizeY in the vertical direction in the subject image A, with the unit of mm; PointSizeX = (Distance * tan((π * ViewAngleX / 2) / 180)) / (Width / 2);

[0086] PointSizeY = (Distance * tan((π * ViewAngleY / 2) / 180)) / (Height / 2).

[0087] Step S102: Set a preset border within the subject image, and determine the boundary pixel positions corresponding to the preset border according to the first width Width and the first height Height of the subject image, the first size PointSizeX, the second size PointSizeY, the second width and the second height corresponding to the preset border.

[0088] In the embodiments of the present disclosure and other possible embodiments, setting a preset border within the subject image includes: determining the center position of the subject image; setting a preset border within the subject image with the center position; wherein, the center positions of the subject image and the preset border are the same. Wherein, the preset border can be configured as a rectangle or a square.

[0089] In the embodiments of the present disclosure, determining the boundary pixel positions corresponding to the preset border according to the first width Width and the first height Height of the subject image, the first size PointSizeX, the second size PointSizeY, the second width and the second height corresponding to the preset border includes: respectively determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions according to the first width Width, the second width Width2 and the first size PointSizeX; respectively determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel positions according to the first height Height, the second height Height2 and the second size PointSizeY.

[0090] In an embodiment of the present disclosure, determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position according to the first width Width, the second width, and the first size PointSizeX respectively includes: determining the pixel width corresponding to the set border according to the second width and the first size PointSizeX; and determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position based on the first width Width and the pixel width.

[0091] In an embodiment of the present disclosure, determining the pixel width corresponding to the set border according to the second width and the first size, and determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position based on the first width and the pixel width includes: obtaining a first ratio and a third ratio corresponding to the horizontal direction of the light field window of the camera and the beam expander; calculating the width difference by subtracting the pixel width from the first width; calculating the width ratio difference corresponding to the width difference at the first ratio (the width difference × the first ratio) to obtain the left boundary pixel position; calculating the width accumulation value by adding the pixel width to the first width; and calculating the width ratio accumulation value corresponding to the width accumulation value at the third ratio (the width accumulation value × the third ratio) to obtain the left boundary pixel position. Wherein, the sum of the first ratio and the third ratio is configured to be 1.

[0092] In an embodiment of the present disclosure, if the camera is installed inside / outside one side housing close to the center position of the light field window of the beam expander, determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position based on the first width Width and the pixel width includes: subtracting the pixel width from the first width Width to obtain a width difference; calculating the half-width difference corresponding to the width difference (dividing the width difference by 2) to obtain the left boundary pixel position; adding the pixel width to the first width Width to obtain a width accumulation value; calculating the half-width accumulation value corresponding to the width accumulation value (dividing the width accumulation value by 2) to obtain the right boundary pixel position; wherein, the first ratio and the third ratio are respectively configured to be 1 / 2.

[0093] In an embodiment of the present disclosure, determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position according to the first height Height, the second height, and the second size PointSizeY respectively includes: determining the pixel height corresponding to the set border according to the second height and the second size PointSizeY; and determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height Height and the pixel height.

[0094] In an embodiment of the present disclosure, determining the pixel height corresponding to the set border according to the second height and the second size, and determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height includes: obtaining a second ratio and a fourth ratio corresponding to the light field window of the camera and the beam shaper in the vertical direction; subtracting the pixel height from the first height to obtain a height difference; calculating a height difference of the height difference at the second ratio (the height difference × the second ratio) to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain a height accumulation value; calculating a height ratio accumulation value corresponding to the height accumulation value at the fourth ratio (the height accumulation value × the fourth ratio) to obtain the lower boundary pixel position. Wherein, the sum of the second ratio and the fourth ratio is configured to be 1.

[0095] In an embodiment of the present disclosure, if the camera is installed inside / outside the side housing near the center position of the light field window of the beam shaper, determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height Height and the pixel height includes: subtracting the pixel height from the first height Height to obtain a height difference; calculating a half height difference corresponding to the height difference (dividing the height difference by 2) to obtain the upper boundary pixel position; adding the pixel height to the first height Height to obtain a height accumulation value; calculating a half height accumulation value corresponding to the height accumulation value (dividing the height accumulation value by 2) to obtain the lower boundary pixel position; wherein, the third ratio and the fourth ratio are respectively configured to be 1 / 2.

[0096] In the embodiments of the present disclosure and other possible embodiments, if the camera is installed inside / outside one side housing close to the center position of the light field window of the beam shaper, the first ratio and the third ratio are respectively configured as 1 / 2; the third ratio and the fourth ratio are respectively configured as 1 / 2. Further, the upper boundary pixel position (Top), the lower boundary pixel position (Bottom), the left boundary pixel position (Left), and the right boundary pixel position (Right) are respectively calculated using the following formulas: Top = (Height - Height2 / PointSizeY) / 2; Bottom = (Height2 + Height2 / PointSizeY) / 2; Left = (Width - Width2 / PointSizeX) / 2;

[0097] Right = (Width + Width2 / PointSizeX) / 2. Wherein, Width2 represents the second width, and Height2 represents the second height.

[0098] Step S103: Adjust the set beam shaper light field size based on the first size PointSizeX, the second size PointSizeY, and the boundary pixel positions.

[0099] In the embodiments of the present disclosure, the adjusting the set beam shaper light field size based on the first size PointSizeX, the second size PointSizeY, and the boundary pixel positions includes: adjusting the size of the set beam shaper light field in the horizontal direction based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions and the first size PointSizeX; adjusting the size of the set beam shaper light field in the vertical direction based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel positions and the second size PointSizeY.

[0100] In the embodiments of the present disclosure, the adjusting the size of the set beam shaper light field in the horizontal direction based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions and the first size PointSizeX includes: calculating a first boundary pixel position difference between the left boundary pixel position and the right boundary pixel position; calculating a first configured size CollimatorViewX1 corresponding to the product of the first boundary pixel position difference and the first size PointSizeX, and adjusting the size of the set beam shaper light field in the horizontal direction CollimatorViewX to the first configured size CollimatorViewX1.

[0101] In an embodiment of the present disclosure, adjusting the size of the set collimator light field in the vertical direction based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size PointSizeY includes: calculating a second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating a second configured size CollimatorViewY1 corresponding to the product of the second boundary pixel position difference and the second size PointSizeY, and adjusting the size CollimatorViewY of the set collimator light field in the vertical direction to the second configured size CollimatorViewY1.

[0102] In an embodiment of the present disclosure and other possible embodiments, calculating a first boundary pixel position difference Right-Left between the left boundary pixel position and the right boundary pixel position; calculating a first configured size CollimatorViewX1 corresponding to the product of the first boundary pixel position difference Right-Left and the first size PointSizeX, and adjusting the size CollimatorViewX of the set collimator light field in the horizontal direction to the first configured size CollimatorViewX1. Further, the corresponding mathematical expression can be configured as: CollimatorViewX1 = (Right-Left + 1) * PointSizeX.

[0103] In an embodiment of the present disclosure and other possible embodiments, calculating a second boundary pixel position difference Bottom-Top between the upper boundary pixel position and the lower boundary pixel position; calculating a second configured size CollimatorViewY1 corresponding to the product of the second boundary pixel position difference Bottom-Top and the second size PointSizeY, and adjusting the size CollimatorViewY of the set collimator light field in the vertical direction to the second configured size CollimatorViewY1. Further, the corresponding mathematical expression can be configured as: ollimatorViewY1 = (Bottom-Top + 1) * PointSizeY.

[0104] In embodiments of the present disclosure and other possible embodiments, the set border set in the subject image can be adjusted in real time, so as to obtain the upper border adjustment pixel position Top1 corresponding to the upper border pixel position Top, the lower border adjustment pixel position Bottom1 corresponding to the lower border pixel position Bottom, the left border adjustment pixel position Left1 corresponding to the left border pixel position Left, and the right border adjustment pixel position Right1 corresponding to the right border pixel position Right. Further, the corresponding mathematical expressions can be configured as: ollimatorViewX1 = (Right1 - Left1 + 1) * PointSizeX; CollimatorViewY1 = (Bottom1 - Top1 + 1) * PointSizeY.

[0105] In an embodiment of the present disclosure, it further includes: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence, and an abnormal left diaphragm sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process of the adjusted collimator light field; using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence. Further solve the problems of abnormal lung field morphology caused by lung field deformation and subsequent diaphragm positioning errors.

[0106] In an embodiment of the present disclosure, the using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence includes: respectively using the normal left cardiophrenic angle 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 abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image, so as to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, perform positioning optimization on the corresponding right diaphragm.

[0107] In an embodiment of the present disclosure, the using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence includes: respectively using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, so as to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, perform positioning optimization on the corresponding left diaphragm. To solve the problems of abnormal lung field morphology caused by lung field deformation and subsequent diaphragm positioning errors.

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

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

[0110] In embodiments of the present disclosure and other possible embodiments, a digital X-ray (DR) imaging device can provide high-resolution and real-time two-dimensional X-ray images. The DR imaging device can be used to image the chest to obtain corresponding two-dimensional X-ray chest images. For example, in embodiments 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 two-dimensional X-ray chest images (dynamic two-dimensional X-ray chest images to be located) corresponding to multiple consecutive time series; at the same time, in the breath-holding state, the digital X-ray imaging device can also be used to photograph the chest containing the lungs to obtain multiple dynamic two-dimensional X-ray chest images (two-dimensional X-ray chest images to be located) corresponding to multiple consecutive time series in the breath-holding state. Specifically, the multiple dynamic two-dimensional X-ray chest images during the breathing process or the multiple dynamic two-dimensional X-ray chest images in the breath-holding state include at least one two-dimensional X-ray chest image.

[0111] In embodiments of the present disclosure and other possible embodiments, the lung image to be segmented (the multiple dynamic two-dimensional X-ray chest images / dynamic two-dimensional X-ray chest images to be located during the breathing process) 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.

[0112] In the embodiments of the present disclosure and other possible embodiments, the lung image to be segmented (the dynamic multiple X-ray two-dimensional chest images during the breathing process / the dynamic X-ray two-dimensional chest images to be 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 at multiple moments during the breathing process or in the breath-holding state (lung images to be segmented / the dynamic multiple X-ray two-dimensional chest images to be segmented during the breathing process / the dynamic X-ray two-dimensional chest images to be located to be segmented) are obtained; wherein, the method for determining the DR lung region label image for training the segmentation model includes: respectively detecting the rib margin boundary, the lung apex boundary, and the mediastinal and diaphragmatic edges of the left chest image and the right chest image of multiple DR lung region images to obtain the DR lung region label images corresponding to the multiple DR lung region images; using the DR lung region label image for training the segmentation model to train the segmentation model; based on the trained segmentation model, completing the segmentation of the left lung and / or the right lung of the multiple DR lung images to be segmented (i.e., the X-ray two-dimensional chest images to be located / the X-ray two-dimensional chest images), and obtaining 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 to be 1, and the lung field mask value corresponding to the left lung mask image can be configured to be 2.

[0113] In the embodiments of the present disclosure and other possible embodiments, the lung region (lung field) of multiple DR lung images to be segmented at multiple moments during the breathing process or in the breath-holding state (lung images to be segmented / the dynamic multiple X-ray two-dimensional chest images to be segmented during the breathing process / the dynamic X-ray two-dimensional chest images to be located to be segmented) can be marked in a manual marking manner to obtain the DR lung region label image (X-ray two-dimensional lung region / lung field label image) for training the segmentation model; then, the segmentation model is trained using the DR lung region label image (X-ray two-dimensional lung region / lung field label image); finally, using the trained segmentation model (preset lung field segmentation model), the lung field of the dynamic multiple X-ray two-dimensional chest images is segmented respectively to obtain the right lung mask image sequence and / or the left lung mask image sequence.

[0114] 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 a plurality of dynamic X-ray two-dimensional chest images (X-ray two-dimensional chest images to be positioned) respectively, the method for respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the plurality of dynamic X-ray two-dimensional chest images includes: using an erosion template of a set size to respectively erode the right lung mask image sequence and / or the left lung mask image sequence to obtain a corresponding right lung mask eroded image sequence (right lung mask eroded image) and / or a left lung mask eroded image sequence (left lung mask eroded image); respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask eroded image sequence and / or based on the left lung mask image sequence and its corresponding left lung mask eroded image sequence.

[0115] 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 plurality of dynamic X-ray two-dimensional chest images constitutes a left lung mask edge image sequence; similarly, the set of right lung mask edge images corresponding to each X-ray two-dimensional chest image in the plurality of dynamic X-ray two-dimensional chest images constitutes a right lung mask edge image sequence.

[0116] 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 plurality of dynamic X-ray two-dimensional chest images constitutes a right lung mask eroded image sequence; similarly, the set of left lung mask eroded images corresponding to each X-ray two-dimensional chest image in the plurality of dynamic X-ray two-dimensional chest images constitutes a left lung mask eroded image sequence.

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

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

[0119] In embodiments of the present disclosure and other possible embodiments, before respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images, a preset lung field segmentation model is used to respectively perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images to obtain the right lung mask image sequence and / or the left lung mask image sequence.

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

[0121] In embodiments of the present disclosure and other possible embodiments, the method of using a preset lung field segmentation model 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 includes: using a preset lung field segmentation model to respectively perform lung field segmentation on the to-be-dynamic multiple X-ray two-dimensional chest images to obtain a to-be-processed right lung mask image sequence (to-be-processed right lung mask image) and / or a to-be-processed left lung mask image sequence (to-be-processed left lung mask image sequence); using a connected component algorithm to respectively process the to-be-processed right lung mask image sequence and / or the to-be-processed left lung mask image sequence to remove over-segmented regions outside the lung field to obtain the right lung mask image sequence and / or the left lung mask image sequence.

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

[0123] In an embodiment of the present disclosure, before obtaining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process, the method for determining the normal right diaphragm sequence, abnormal right diaphragm sequence, normal left diaphragm sequence, and abnormal left diaphragm sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process includes: obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images during the breathing process; determining the normal right diaphragm sequence and abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on the first length sequence corresponding to the dynamic right lung diaphragm sequence; and / or determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on the second length sequence corresponding to the dynamic left lung diaphragm sequence.

[0124] In an embodiment of the present disclosure, the method for determining the normal right diaphragm sequence and abnormal right diaphragm sequence corresponding to the dynamic right lung diaphragm sequence based on the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: determining the right lung reference diaphragm length as the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms respectively based on the right lung reference diaphragm length, the first length other than the right lung reference diaphragm length in the first length sequence, and the first preset length difference.

[0125] In an embodiment of the present disclosure, the method for determining the normal left diaphragm sequence and abnormal left diaphragm sequence corresponding to the dynamic left lung diaphragm sequence based on the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms respectively based on the left lung reference diaphragm length, the second length other than the left lung reference diaphragm length in the second length sequence, and the second preset length difference.

[0126] In an embodiment of the present disclosure and other possible embodiments, the method for determining the right lung reference diaphragm length as the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms respectively based on the right lung reference diaphragm length, the first length other than the right lung reference diaphragm length in the first length sequence, and the first preset length difference includes: determining the right lung reference diaphragm as the right lung diaphragm with the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms respectively based on the first reference length corresponding to the right lung reference diaphragm, the first length corresponding to the other right lung diaphragms in the dynamic right lung diaphragm sequence except the right lung reference diaphragm, and the first preset length difference.

[0127] In the embodiments of the present disclosure and other possible embodiments, the method for determining the left lung reference diaphragm length as the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second lengths other than the left lung reference diaphragm length in the second length sequence, and a second preset length difference, includes: 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 determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms respectively based on the second reference length corresponding to the left lung reference diaphragm, the second lengths corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence except the left lung reference diaphragm, and the second preset length difference.

[0128] In the embodiments of the present disclosure and other possible embodiments, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: respectively counting the sum of the first pixel value numbers 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 first pixel value numbers corresponding to each right lung diaphragm and the area corresponding to each pixel; and / or, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the first pixel value numbers corresponding to each right lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the first pixel value numbers 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.

[0129] In the embodiments of the present disclosure and other possible embodiments, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence includes: respectively counting the sum of the second pixel value numbers 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 second pixel value numbers corresponding to each left lung diaphragm and the area corresponding to each pixel; and / or, the method for determining the second length sequence corresponding to the dynamic left lung diaphragm sequence based on the sum of the second pixel value numbers corresponding to each left lung diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the second pixel value numbers 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.

[0130] In the embodiments of the present disclosure and other possible embodiments, the area corresponding to each pixel can be obtained by reading DICOM (Digital Imaging and Communications in Medicine) files corresponding to multiple dynamic X-ray two-dimensional chest images during the breathing process; where DICOM, namely Digital Imaging and Communications in Medicine, is an international standard (ISO 12052) for medical images and related information, which defines a medical image format that can be used for data exchange and whose quality can meet clinical needs. Additionally, the area corresponding to each pixel can also be input through an input device (such as a keyboard, etc.).

[0131] In the embodiments of the present disclosure and other possible embodiments, the units of the first length sequence and / or the second length sequence are configured as pixel values. Among them, the sum of the first pixel value numbers 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 second pixel value numbers corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence is respectively counted to obtain the second length sequence.

[0132] Meanwhile, in the embodiments 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 the range of 10 - 50 pixels; the second value corresponding to the second preset length difference is configured as any value in the range of 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.

[0133] For example, in the embodiments of the present disclosure and other possible embodiments, the first value corresponding to the first preset length difference and the second value corresponding to the second preset length difference can be respectively configured as any value among 10, 20, 30, 40, 50.

[0134] In an embodiment of the present disclosure, before obtaining at least one diaphragmatic muscle sequence of a dynamic right lung diaphragmatic muscle sequence and a dynamic left lung diaphragmatic muscle sequence corresponding to dynamic multiple X-ray two-dimensional chest images during the respiration process, the method for respectively determining the corresponding dynamic right lung diaphragmatic muscle sequence and / or dynamic left lung diaphragmatic muscle 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 (the 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 diaphragmatic muscle based on the right lung apex, the right costophrenic angle point, and the right lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images (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 diaphragmatic muscle based on the right cardiophrenic angle corresponding to the right lung diaphragmatic muscle, the left lung apex, the left costophrenic angle point, and the left lung masked edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each left lung masked edge image). Wherein, the set of right lung diaphragmatic muscles corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic right lung diaphragmatic muscle sequence; similarly, the set of left lung diaphragmatic muscles corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic left lung diaphragmatic muscle sequence.

[0135] In an embodiment of the present disclosure and other possible embodiments, 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.

[0136] In an embodiment of the present disclosure and other possible embodiments, 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.

[0137] In the embodiments of the present disclosure and other possible embodiments, 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.

[0138] In the embodiments of the present disclosure and other possible embodiments, 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.

[0139] In the embodiments of the present disclosure and other possible embodiments, 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 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 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.

[0140] In the embodiments of the present disclosure and other possible embodiments, 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 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 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 points; 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.

[0141] In the embodiments of the present disclosure and other possible embodiments, the method for respectively determining whether the other right pulmonary diaphragms are normal right diaphragms or abnormal right diaphragms based on the right pulmonary reference diaphragm length, the first length in the first length sequence except the right pulmonary reference diaphragm length, and the first preset length difference includes: calculating a plurality of first differences between the first length except the right pulmonary reference diaphragm length and the right pulmonary 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.

[0142] For example, in the embodiments of the present disclosure and other possible embodiments, the first preset length difference is configured to be 20 mm or 20 pixels. Calculate a plurality of first differences between the first length except the right pulmonary reference diaphragm length and the right pulmonary 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.

[0143] In the embodiments of the present disclosure and other possible embodiments, the method for determining the left pulmonary reference diaphragm length by determining the shortest length in the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence; and respectively determining whether the other left pulmonary diaphragms are normal left diaphragms or abnormal left diaphragms based on the left pulmonary reference diaphragm length, the second length in the second length sequence except the left pulmonary reference diaphragm length, and the second preset length difference includes: calculating a plurality of second differences between the second length except the left pulmonary reference diaphragm length and the left pulmonary 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.

[0144] For example, in the embodiments of the present disclosure and other possible embodiments, the first preset length difference is configured to be 20 mm or 20 pixels. Calculate a plurality of second differences between the second length except the left pulmonary reference diaphragm length and the left pulmonary 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, normal left diaphragm.

[0145] In embodiments of the present disclosure and other possible embodiments, it further includes: obtaining at least one diaphragm sequence of a normal right diaphragm and an abnormal right diaphragm corresponding to a dynamic plurality of X-ray two-dimensional chest images during the breathing process, and a left diaphragm sequence of a normal left diaphragm and an abnormal left diaphragm; wherein, the diaphragm sequence includes: a right diaphragm sequence and / or a left diaphragm sequence; optimizing the positioning of the right cardiophrenic angle corresponding to the abnormal right diaphragm based on the right cardiophrenic angle corresponding to the normal right diaphragm; and / or, optimizing the positioning of the left cardiophrenic angle corresponding to the abnormal left diaphragm based on the left cardiophrenic angle corresponding to the normal left diaphragm.

[0146] In embodiments of the present disclosure and other possible embodiments, obtaining the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm; respectively optimizing the positioning of each abnormal diaphragm based on the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm, the right costophrenic angle point, and the right lung mask edge image; and / or, obtaining the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm; respectively optimizing the positioning of each abnormal diaphragm based on the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm, the left costophrenic angle point, and the left lung mask edge image.

[0147] Wherein, in embodiments of the present disclosure and other possible embodiments, the unit of the first length sequence and / or the second length sequence is configured as a pixel value; wherein, respectively counting the sum of the first pixel value numbers corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence to obtain the first length sequence; and / or, respectively counting the sum of the second pixel value numbers corresponding to each left lung diaphragm in the dynamic left lung diaphragm sequence to obtain the second length sequence; and / or, the first preset length difference and the value configured by the first preset length difference are the same or different; and / or, the first value corresponding to the first preset length difference is configured as any value in 10 - 50 pixels; the second value corresponding to the second preset length difference is configured as any value in 10 - 50 pixels.

[0148] In embodiments of the present disclosure and other possible embodiments, before obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to a dynamic plurality of 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 plurality of X-ray two-dimensional chest images during the breathing 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 dynamic plurality of X-ray two-dimensional chest images; respectively determining the right lung apex corresponding to the right lung mask edge image sequence; respectively positioning the right lung diaphragm based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic plurality of X-ray two-dimensional chest images.

[0149] In embodiments of the present disclosure and other possible embodiments, 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, the left lung apex corresponding to the left lung mask edge image sequence is determined respectively, and the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence are determined respectively; the left lung diaphragm is located respectively based on the right cardiophrenic angle corresponding to the right lung diaphragm corresponding to each of the dynamic multiple X-ray two-dimensional chest images, the left lung apex, the left costophrenic angle point, and the left lung mask edge image.

[0150] In an embodiment of the present disclosure, the method for locating the right lung diaphragm respectively based on the right lung apex, the right costophrenic angle point, and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: determining a corresponding first straight line respectively 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; calculating respectively 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 cardiac margin 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 configuring and locating 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.

[0151] In an embodiment of the present disclosure, the method for locating the left lung diaphragm respectively based on the right cardiophrenic angle corresponding to the right lung diaphragm corresponding to each of the dynamic multiple X-ray two-dimensional chest images, the left lung apex, the left costophrenic angle point, and the left lung mask edge image includes: determining respectively auxiliary points 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; calculating respectively 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 cardiac margin 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 and locating 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.

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

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

[0154] Line1: a1x + b1y + c1 = 0.

[0155] 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 from the right lung apex A1 to the right costophrenic angle point B1 and the length of the second edge line of the right lung apex to the right costophrenic angle point / calculating the length of the first edge line from the right costophrenic angle point B1 to the right lung apex A1 and the length of the second edge line of the right lung apex to the right costophrenic angle point; 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.

[0156] 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. Furthermore, configuring the first pixel point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle C1, and configuring and positioning the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle C1 and the right costophrenic angle point B1 as the right lung diaphragm B1C1.

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

[0158]

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

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

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

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

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

[0164] 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. The 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. The 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. The calculation formula corresponding to the auxiliary point C2’(x, y) is given, that is, C'2(x, y) = C1(x, y - Δy).

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

[0166] Line2: a2x + b2y + c2 = 0.

[0167] Furthermore, before respectively calculating the multiple second distances from multiple second pixel points on the left edge line A2B2 of the left lung mask edge image from the left lung apex A2 to the left costophrenic angle point B2 (the left heart edge line on the side close to the heart) to the second straight line, based on the left lung apex A2 to the left 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 left 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 left 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 length of the first edge line and the length of the second edge line is configured as the left edge line A2B2 of the right lung mask edge image.

[0168] 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. Further, the second pixel point corresponding to the maximum distance among the multiple second distances is configured as the right cardiophrenic angle C2, and the mask edge line segment corresponding to the right lung mask edge image between the left cardiophrenic angle C2 and the right costophrenic angle point B2 is configured and positioned as the left lung diaphragm B2C2.

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

[0170]

[0171] Wherein, represents the multiple first distances d l1 , d l2 , d l3 ,..., d ln from the multiple second pixel points p l1 (p l1 ), d l2 (p l2 ), d l3 (p l3 ),..., d ln (p ln ) to 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 the multiple first pixel points p l1 , p l2 , p l3 ,..., p ln ; d l1 , d l2 , d l3 ,..., d ln respectively represent the multiple first pixel points p l1 , p l2 , pl3 ,..., p ln The corresponding Euclidean distance.

[0172] In an embodiment of the present disclosure, the method for optimizing the positioning of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle pairs corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image, to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, optimizing the positioning of the corresponding right diaphragm (right lung diaphragm).

[0173] In an embodiment of the present disclosure, the method for optimizing the positioning of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle pairs corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, optimizing the positioning of the corresponding left diaphragm (left lung diaphragm).

[0174] In the embodiment of the present disclosure and other possible embodiments, before using the normal right cardiophrenic angle pairs corresponding to the normal right diaphragms in the normal right diaphragm sequence to optimize the positioning of the abnormal left cardiophrenic angle pairs corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence in the same first X-ray two-dimensional chest image, the right diaphragm corresponding to the same first X-ray two-dimensional chest image is a normal right diaphragm. At the same time, before using the normal left cardiophrenic angle pairs corresponding to the normal left diaphragms in the normal left diaphragm sequence to optimize the positioning of the abnormal right cardiophrenic angle pairs corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence in the same second X-ray two-dimensional chest image, the left diaphragm corresponding to the same second X-ray two-dimensional chest image is a normal left diaphragm.

[0175] In the embodiments of the present disclosure and other possible embodiments, the method for respectively using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform localization optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the first X-ray two-dimensional chest image of the same sheet to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image includes: determining the standard X-ray two-dimensional chest 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 first X-ray two-dimensional chest image of the same sheet; calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; using the first distance in the y direction to adjust the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; and based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, completing the localization optimization of the abnormal left cardiophrenic angle to obtain the optimized left cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.

[0176] In the embodiments of the present disclosure and other possible embodiments, the method for respectively using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform localization optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the first X-ray two-dimensional chest image of the same sheet to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image includes: determining the standard X-ray two-dimensional chest 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 first X-ray two-dimensional chest image of the same sheet; calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; using the first distance in the y direction to adjust the initialized left cardiophrenic angle to obtain an adjusted left cardiophrenic angle; and based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image, completing the localization optimization of the abnormal left cardiophrenic angle to obtain the optimized left cardiophrenic angle corresponding to the second X-ray two-dimensional chest image.

[0177] In the embodiments of the present disclosure and other possible embodiments, the method for adjusting the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle.

[0178] In the embodiments of the present disclosure and other possible embodiments, the method for adjusting the y-direction coordinate point of the initialized right cardiophrenic angle by using the second distance in the y direction to obtain an adjusted right cardiophrenic angle includes: if the second distance in the y direction is greater than or equal to 0, adding the second distance in the y direction to the y-direction coordinate point of the initialized right cardiophrenic angle to obtain an adjusted right cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted right cardiophrenic angle remains unchanged.

[0179] In the embodiments of the present disclosure and other possible embodiments, the method for completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection point of the second straight line parallel to the x direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization.

[0180] In the embodiments of the present disclosure and other possible embodiments, the method of 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 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.

[0181] In the embodiments of the present disclosure and other possible embodiments, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; determining the X-ray two-dimensional chest images corresponding to the normal right diaphragm and normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest images.

[0182] In the embodiments of the present disclosure and other possible embodiments, the method for adjusting the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle includes: adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain an adjusted left cardiophrenic angle.

[0183] In the embodiments of the present disclosure and other possible embodiments, the method of adjusting the y-direction coordinate point of the initialized left cardiophrenic angle by using the first distance in the y direction to obtain the 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 the adjusted left cardiophrenic angle; wherein, the x-direction coordinate point corresponding to the adjusted left cardiophrenic angle remains unchanged.

[0184] In the embodiments of the present disclosure and other possible embodiments, the method of completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection point of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.

[0185] In the embodiments of the present disclosure and other possible embodiments, the method of configuring the focus of the first straight line parallel to the x direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization includes: making a first straight line parallel to the x direction with the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle; configuring the intersection point with the smallest x-direction coordinate among the intersection points of the left lung mask edge in the left lung mask edge image corresponding to the first straight line and the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization.

[0186] In the embodiments of the present disclosure and other possible embodiments, the method of determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the first moment as the standard X-ray two-dimensional chest image.

[0187] In the embodiments of the present disclosure and other possible embodiments, the normal right diaphragm sequence and the normal left diaphragm sequence are used to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.

[0188] In the embodiments of the present disclosure, the method of positioning and optimizing the corresponding right diaphragm based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image includes: configuring the line segment of the right lung mask edge in the right lung mask edge image between the optimized right cardiophrenic angle and the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image as the right diaphragm after positioning optimization.

[0189] In an embodiment of the present disclosure, the method for positioning and optimizing the corresponding left diaphragm based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first two-dimensional X-ray chest image, and the left lung mask edge in the left lung mask edge image includes: configuring the line segment of the left lung mask edge in the lung mask edge image between the optimized left cardiophrenic angle and the left costophrenic angle point corresponding to the first two-dimensional X-ray chest image as the positioned and optimized left diaphragm.

[0190] In the embodiments of the present disclosure and other possible embodiments, the optimized right cardiophrenic angle corresponding to each abnormal right diaphragm is obtained; the positioning and optimization of each abnormal diaphragm are respectively performed based on the optimized right cardiophrenic angle, the right costophrenic angle point, and the right lung mask edge image corresponding to each abnormal right diaphragm; and / or, the optimized left cardiophrenic angle corresponding to each abnormal left diaphragm is obtained; the positioning and optimization of each abnormal diaphragm are respectively performed based on the optimized left cardiophrenic angle, the left costophrenic angle point, and the left lung mask edge image corresponding to each abnormal left diaphragm.

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

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

[0193] The execution subject of the method for adjusting the light field of the collimator can be a collimator light field adjustment device or system, a digital X-ray camera. For example, the method for adjusting the light field of the collimator can be executed by a terminal device, a server, or other processing devices. Among them, the terminal device can 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 method for adjusting the light field of the collimator can be implemented by a processor calling computer-readable instructions stored in a memory.

[0194] An embodiment of the present disclosure further provides a collimator light field adjustment device or system, including: a first determination unit, configured to determine a first size of a pixel point in the horizontal direction and a second size of the pixel point in the vertical direction in an image of a subject captured by a camera mounted on the collimator under a set collimator light field size; a second determination unit, configured to set a set border in the subject image, and determine boundary pixel positions corresponding to the set border according to a first width and a first height of the subject image, the first size, the second size, a second width and a second height corresponding to the set border; an adjustment unit, configured to adjust the set collimator light field size based on the first size, the second size and the boundary pixel positions.

[0195] An embodiment of the present disclosure further provides a collimator light field adjustment device or system, including or further including: a chest image 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 X-ray two-dimensional chest images during the breathing process of the adjusted collimator light field; a diaphragm sequence optimization unit, configured to use the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.

[0196] An embodiment of the present disclosure further provides a collimator light field adjustment device or system, including: an electronic device, where the electronic device is configured with 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 perform the above-mentioned collimator light field adjustment.

[0197] An embodiment of the present disclosure further provides a collimator light field adjustment device or system, 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 perform the above-mentioned method for adjusting the light field of the collimator.

[0198] Embodiments of the present disclosure also provide a collimator light field adjustment device or system, including: a computer-readable storage medium storing computer program instructions thereon, and when the computer program instructions are executed by a processor, the above-mentioned collimator light field adjustment method is implemented.

[0199] Embodiments of the present disclosure also provide a collimator light field adjustment device or system, including: a computer program product including computer programs / instructions, and when the computer programs / instructions are executed by a processor, the above-mentioned collimator light field adjustment method is implemented.

[0200] Embodiments of the present disclosure also provide a digital X-ray camera, including: an electronic device, a processor, a memory for storing instructions executable by the processor, a computer-readable storage medium, and a computer program product; wherein, the electronic device is configured to execute, the processor is configured to call the instructions stored in the memory to execute, the computer program instructions stored in the computer-readable storage medium are implemented when executed by the processor, and the computer programs / instructions provided by the computer program product are executed by the processor: such as the above-mentioned collimator light field adjustment method.

[0201] Embodiments of the present disclosure also provide a digital X-ray camera, characterized by including or applying the collimator light field adjustment system as described above.

[0202] In the embodiments of the present disclosure, it further includes: obtaining normal right diaphragm sequences, abnormal right diaphragm sequences, normal left diaphragm sequences, and abnormal left diaphragm sequences corresponding to dynamic multiple X-ray two-dimensional chest images during the breathing process of the adjusted collimator light field; using the normal right diaphragm sequences and the normal left diaphragm sequences to perform positioning optimization on the abnormal right diaphragm sequences and / or the abnormal left diaphragm sequences.

[0203] In the embodiments of the present disclosure, the using the normal right diaphragm sequences and the normal left diaphragm sequences to perform positioning optimization on the abnormal right diaphragm sequences includes: respectively using the normal left cardiophrenic angles corresponding to the normal left diaphragms in the normal left diaphragm sequences to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequences in the same second X-ray two-dimensional chest image, to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, perform positioning optimization on the corresponding right diaphragm.

[0204] In an embodiment of the present disclosure, the positioning optimization of the abnormal right diaphragm sequence by using the normal right diaphragm sequence and the normal left diaphragm sequence includes: respectively using the normal right cardiophrenic angle pair corresponding to the normal right diaphragm in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, position and optimize the corresponding left diaphragm.

[0205] Those skilled in the art can understand that in the above beam limiter light field adjustment method of the specific embodiment, the writing order of each step does not mean a strict execution order that constitutes any limitation to the implementation process, and the specific execution order of each step should be determined according to its function and possible internal logic.

[0206] In some embodiments, the functions or modules included in the device or system provided by the embodiments of the present disclosure can be used to execute the beam limiter light field adjustment method described in the above method embodiments, and its specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0207] In an exemplary embodiment, a non-volatile computer-readable storage medium is further provided, such as a 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.

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

[0209] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punched card or raised structures in grooves having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not construed as an instantaneous signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.

[0210] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0211] 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 the 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.

[0212] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations 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 a program, or a part of an instruction, and the module, segment of a program, or part of an instruction contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and 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 diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

[0213] 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 are obvious to those of ordinary skill in the art in the technical field 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 improvement of technology in the market, or to enable other ordinary skilled persons in the technical field to understand the embodiments disclosed herein.

Claims

1. A method for adjusting the light field of a beam shaper, characterized in that, Including: Determining a first dimension of a pixel point in the horizontal direction and a second dimension of the pixel point in the vertical direction in a subject image obtained by a camera installed on a collimator while photographing a subject under a set collimator light field size; Setting a set border within the subject image, and determining boundary pixel positions corresponding to the set border according to a first width and a first height of the subject image, the first dimension, the second dimension, a second width and a second height corresponding to the set border; Adjusting the set collimator light field size based on the first dimension, the second dimension and the boundary pixel positions.

2. The method for adjusting the light field of a beam concentrator according to claim 1, wherein The determining a first dimension of a pixel point in the horizontal direction and a second dimension of the pixel point in the vertical direction in a subject image obtained by a camera installed on a collimator while photographing a subject under a set collimator light field size includes: obtaining a first field of view angle of the camera installed on the collimator in the horizontal direction, a second field of view angle in the vertical direction, a distance from the camera to the subject, and a first width and a first height corresponding to the subject image obtained by the camera while photographing the subject; and determining the first dimension of the pixel point in the horizontal direction and the second dimension of the pixel point in the vertical direction in the subject image according to the first field of view angle, the second field of view angle, the first width and the first height, and the distance from the camera to the subject; and / or, The determining the first dimension of the pixel point in the horizontal direction and the second dimension of the pixel point in the vertical direction in the subject image according to the first field of view angle, the second field of view angle, the first width and the first height, and the distance from the camera to the subject includes: determining the first dimension of the pixel point in the horizontal direction in the subject image according to the first field of view angle, the first width and the distance from the camera to the subject; and determining the second dimension of the pixel point in the vertical direction in the subject image according to the second field of view angle, the first height and the distance from the camera to the subject.

3. The method for adjusting the light field of the beam concentrator according to claim 2, characterized in that, The determining the first dimension of the pixel point in the horizontal direction in the subject image according to the first field of view angle, the first width and the distance from the camera to the subject includes: calculating a first angle corresponding to the first field of view angle in the horizontal direction; and determining the first dimension of the pixel point in the horizontal direction in the subject image based on trigonometric calculation rules, using the first angle, the first width and the distance from the camera to the subject; and / or, If the camera is installed inside / outside a side housing near the center position of the light field window of the collimator, the method for calculating the first angle corresponding to the first field of view angle in the horizontal direction includes: calculating the first angle corresponding to the first half field of view angle corresponding to the first field of view angle in the horizontal direction; and / or, If the camera is installed inside / outside the side housing near the center position of the light field window of the beam shaper, the method for determining the first size of the pixel points in the horizontal direction in the image of the subject based on the trigonometric calculation rule, using the first angle, the first width, and the distance from the camera to the subject, includes: calculating the first half-width corresponding to the first width; based on the trigonometric calculation rule, using the first angle, the first half-width, and the distance from the camera to the subject, determining the first size of the pixel points in the horizontal direction in the image of the subject.

4. The method for adjusting the light field of the beam concentrator according to claim 3, wherein The method for determining the second size of the pixel points in the vertical direction in the image of the subject according to the second field of view angle, the first height, and the distance from the camera to the subject includes: calculating the second angle corresponding to the second field of view angle in the vertical direction; based on the trigonometric calculation rule, using the second angle, the first height, and the distance from the camera to the subject, determining the second size of the pixel points in the vertical direction in the image of the subject; and / or, If the camera is installed inside / outside the side housing near the center position of the light field window of the beam shaper, the method for calculating the second angle corresponding to the second field of view angle in the vertical direction includes: calculating the second angle corresponding to the second half field of view angle corresponding to the second field of view angle in the vertical direction; and / or, If the camera is installed inside / outside the side housing near the center position of the light field window of the beam shaper, the method for determining the second size of the pixel points in the vertical direction in the image of the subject based on the trigonometric calculation rule, using the second angle, the first height, and the distance from the camera to the subject, includes: calculating the first half-height corresponding to the first height; based on the trigonometric calculation rule, using the second angle, the first half-height, and the distance from the camera to the subject, determining the second size of the pixel points in the vertical direction in the image of the subject.

5. The method for adjusting the light field of a beam shaper according to any one of claims 1-4, characterized in that The method of setting a set border in the image of the subject and determining the boundary pixel positions corresponding to the set border according to the first width and first height of the image of the subject, the first size, the second size, the second width and second height corresponding to the set border includes: respectively determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel positions according to the first width, the second width, and the first size; respectively determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel positions according to the first height, the second height, and the second size; and / or, If the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam shaper, determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position based on the first width and the pixel width includes: subtracting the pixel width from the first width to obtain a width difference; calculating a half-width difference corresponding to the width difference to obtain the left boundary pixel position; adding the pixel width to the first width to obtain a width accumulation value; calculating a half-width accumulation value corresponding to the width accumulation value to obtain the right boundary pixel position; and / or, If the camera is installed inside / outside the housing on one side close to the center position of the light field window of the beam shaper, determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height includes: subtracting the pixel height from the first height to obtain a height difference; calculating a half-height difference corresponding to the height difference to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain a height accumulation value; calculating a half-height accumulation value corresponding to the height accumulation value to obtain the lower boundary pixel position.

6. The beam shaper light field adjustment method according to any one of claims 1-5, characterized in that, Adjusting the set light field size of the beam shaper based on the first size, the second size, and the boundary pixel position includes: adjusting the size of the set light field size of the beam shaper in the horizontal direction based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size; adjusting the size of the set light field size of the beam shaper in the vertical direction based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size; and / or, Adjusting the size of the set light field size of the beam shaper in the horizontal direction based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size includes: calculating a first boundary pixel position difference between the left boundary pixel position and the right boundary pixel position; calculating a first configuration size corresponding to the product of the first boundary pixel position difference and the first size, and adjusting the size of the set light field size of the beam shaper in the horizontal direction to the first configuration size; and / or, Adjusting the size of the set light field size of the beam shaper in the vertical direction based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size includes: calculating a second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating a second configuration size corresponding to the product of the second boundary pixel position difference and the second size, and adjusting the size of the set light field size of the beam shaper in the vertical direction to the second configuration size.

7. The method for adjusting the light field of a beam shaper according to any one of claims 1-6, characterized in that, Further included is: 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 of the adjusted beam shaper light field; Using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence.

8. The method for adjusting the light field of the beam shaper according to claim 7, characterized in that Using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence, including: respectively using the normal left cardiophrenic angles corresponding to the normal left diaphragms in the normal left diaphragm sequence to perform positioning optimization on the abnormal right cardiophrenic angles corresponding to the abnormal right diaphragms in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image, to obtain the optimized right cardiophrenic angle corresponding to the second X-ray two-dimensional chest image; based on the optimized right cardiophrenic angle, the right costophrenic angle point corresponding to the second X-ray two-dimensional chest image, and the right lung mask edge in the right lung mask edge image, positioning and optimizing the corresponding right diaphragm; and / or, Using the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal left diaphragm sequence, including: respectively using the normal right cardiophrenic angles corresponding to the normal right diaphragms in the normal right diaphragm sequence to perform positioning optimization on the abnormal left cardiophrenic angles corresponding to the abnormal left diaphragms in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, to obtain the optimized left cardiophrenic angle corresponding to the first X-ray two-dimensional chest image; based on the optimized left cardiophrenic angle, the left costophrenic angle point corresponding to the first X-ray two-dimensional chest image, and the left lung mask edge in the left lung mask edge image, positioning and optimizing the corresponding left diaphragm.

9. A light field adjustment system for a beam shaper, characterized in that, Including: A first determination unit, configured to determine a first dimension of a pixel point in the horizontal direction and a second dimension of the pixel point in the vertical direction in the subject image obtained by the camera installed on the collimator shooting the subject under the set collimator light field size; a second determination unit, configured to set a set border in the subject image, and determine the boundary pixel positions corresponding to the set border according to the first width and the first height of the subject image, the first dimension, the second dimension, the second width and the second height corresponding to the set border; an adjustment unit, configured to adjust the set collimator light field size based on the first dimension, the second dimension and the boundary pixel positions; and / or, A chest image acquisition unit, configured to acquire 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 of the adjusted collimator light field; a diaphragm sequence optimization unit, configured to use the normal right diaphragm sequence and the normal left diaphragm sequence to perform positioning optimization on the abnormal right diaphragm sequence and / or the abnormal left diaphragm sequence; Or, Including: an electronic device, the electronic device is configured with 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 collimator light field adjustment method according to any one of claims 1 to 6; or, Including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to call the instructions stored in the memory to execute the collimator light field adjustment method according to any one of claims 1 to 8; or, Comprising: a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions, when executed by a processor, implementing the beam shaper light field adjustment method according to any one of claims 1 to 8; or, Comprising: a computer program product including a computer program / instructions, the computer program / instructions, when executed by a processor, implementing the beam shaper light field adjustment method according to any one of claims 1 to 6.

10. A digital X-ray camera, characterized in that, Comprising: One of an electronic device, a processor, a memory for storing processor-executable instructions, a computer-readable storage medium, and a computer program product; wherein, the electronic device executes, the processor is configured to call the instructions stored in the memory to execute, the computer program instructions stored in the computer-readable storage medium, when executed by the processor, implement, and the computer program / instructions provided by the computer program product, when executed by the processor: the beam shaper light field adjustment method according to any one of claims 1 to 8; or, Comprising: the beam shaper light field adjustment system according to claim 9.