PROBLEM TO BE SOLVED: To provide an X-ray machine capable of automatically selecting one X-ray image with the best focus in a prescribed region.SOLUTION: An X-ray machine includes: an X-ray irradiation part which irradiates a subject with an X-ray an X-ray detection part which detects the X-ray transmitted the subject and an image processing part which generates the X-ray image on the basis of the detection result of the X-ray detection part. The image processing part generates the plurality of X-ray images including specific portion of the subject in an imaging region, calculates a first-order differential image by differentiating a prescribed region including at least a part of the region where the specific portion is imaged with respect to each of the X-ray images including the specific portion of the subject in the imaging region, calculates a second-order differential image by differentiating the first-order differential image, and selects one X-ray image with the maximum average of pixel values of the second-order differential image among all the X-ray images including the specific portion of the subject in the imaging region.COPYRIGHT: (C)2015,JPO&INPIT【課題】所定領域におけるフォーカスが最良なX線画像を一つ自動的に選択することができるX線撮影装置を提供する。【解決手段】本発明に係るX線撮影装置は、被写体に対してX線を照射するX線照射部と、前記被写体を透過したX線を検出するX線検出部と、前記X線検出部の検出結果に基づくX線画像を生成する画像処理部と、を備える。前記画像処理部は、撮影領域に前記被写体の特定の部位が含まれる前記X線画像を複数生成し、撮影領域に前記被写体の特定の部位が含まれる前記X線画像それぞれに対して、前記特定の部位を撮影した領域の少なくとも一部を含んでいる所定領域を微分して1階微分画像を計算し、さらに前記1階微分画像を微分して2階微分画像を計算し、撮影領域に前記被写体の特定の部位が含まれる前記X線画像全ての中から、前記2階微分画像の画素値の平均が最大になる前記X線画像を一つ選択する。【選択図】図6