The present invention relates to an X-ray image generation method, an X-ray image generation device, and a computer-readable recording medium. A method by which an X-ray image generation device comprising an X-ray imaging unit, a driving unit, a reference line marking unit, a camera image acquisition unit, and an X-ray image generation unit generates an X-ray image by photographing the head part of an examinee, of the present invention, can comprise steps in which: the camera image acquisition unit acquires a first camera image of the head part of the examinee, on which a reference line is marked by the reference line marking unit; the X-ray imaging unit acquires a first projection image by photographing a first region of the head part of the examinee; the driving unit changes relative positions of the head part of the examinee and the X-ray imaging unit after photographing the first region; the camera image acquisition unit acquires a second camera image of the head part of the examinee, on which a reference line is marked by the reference line marking unit, after changing the relative positions; the X-ray imaging unit acquires a second projection image by photographing a second region of the head part of the examinee, after changing the relative positions; and the X-ray image generation unit generates an X-ray image by stitching and reconstructing the first projection image and the second projection image on the basis of the acquired first camera image and the acquired second camera image.La présente invention concerne un procédé de génération d'image par rayons X, un dispositif de génération d'image par rayons X, et un milieu d'enregistrement pouvant être lu par ordinateur. Un procédé par lequel un dispositif de génération d'image par rayons X comprenant une unité d'imagerie par rayons X, une unité d'entraînement, une unité de marquage de ligne de référence, une unité d'acquisition d'image photographique, et une unité de génération d'image par rayons X génère une