The X-ray imaging apparatus (100) performs image processing for extracting each of the regions (R1 to R4) within a limited range (L1 to L4) for the length of the plurality of regions (R1 to R4) of the subject (T). When the boundary between the region (R3) and the region (R1 to R4) extracted by the image processing unit (3) is corrected by the user, the result of the boundary correction by the user is set to the limited range (L1 to L4). And a control unit (4) for reflecting the information.X線撮像装置(100)は、被写体(T)の複数の領域(R1~R4)の長さについての制限範囲(L1~L4)内において、領域(R1~R4)の各々を抽出する画像処理部(3)と、画像処理部(3)により抽出された領域(R1~R4)間の境界が、ユーザにより修正された場合に、ユーザによる境界の修正結果を制限範囲(L1~L4)に反映させる制御部(4)と、を備える。