A method of imaging a patient’s lung comprises the following steps: positioning the patient at a first orientation relative to an x-ray imaging apparatus and obtaining a volumetric measurement of the patient’s breathing. The method includes, while the patient is positioned at the first orientation relative to the x-ray imaging apparatus, and while obtaining the volumetric measurement of the patient’s breathing, determining, based on the volumetric measurement of the patient’s breathing, a breathing phase of the patient. The method includes, in accordance with a determination that the breathing phase of the patient matches a predefined breathing phase, gating the x-ray imaging apparatus to produce an x-ray projection of the patient’s lung.一種對患者肺進行成像的方法包括以下步驟:將所述患者定位在相對於x射線成像設備的第一方向,及取得所述患者呼吸的體積測量值。所述方法包含:當所述患者定位在相對於所述x射線成像設備的所述第一方向時,以及在取得所述患者呼吸的所述體積測量值時,基於所述患者呼吸的所述體積測量值確定所述患者的呼吸階段。所述方法包含,根據確定所述患者的所述呼吸階段匹配預定義呼吸階段,閘控所述x射線成像設備以産生所述患者肺的x射線投影。