An X-ray imaging apparatus comprising: an X-ray generator (130, 230) configured to perform X-ray imaging of a target object in an imaging position by generating and irradiating X-rays; an image capturer (110, 210) configured to capture an image of the target object, said image being different from an X-ray image, said image capturer being installed in the apparatus to capture an image of the target object in the imaging position; an image display (150, 250) to display the image captured by the image capturer (110,210); an input part (160, 260) configured to allow inputting of a designation of a segmentation imaging region for which segmentation imaging is to be performed on the image displayed on the image display (150, 250); and a controller (120, 220) configured to control the X-ray generator (130, 230) to perform segmentation imaging with respect to the designated segmentation imaging region; wherein the input part (160, 260) is configured to allow inputting of a designation of a plurality of segmentation regions constituting the segmentation imaging region; wherein the X-ray generator (130, 230) is provided with positioning means for positioning the X-ray generator (130, 230), and wherein the controller (120,220) is configured to calculate, for each designated segmentation region, a location of the X-ray generator (130, 230) based on the image captured by the image capturer (110,210) and that segmentation region, and to control the positioning means to place the X-ray generator (130, 230) in the calculated location for obtaining an X-ray image of the designated segmentation region that corresponds to the calculated location. an X-ray generator (130, 230) configured to perform X-ray imaging of a target object in an imaging position by generating and irradiating X-rays; an image capturer (110, 210) configured to capture an image of the target object, said image being different from an X-ray image, said image capturer being installed in the apparatus to capture an image of the target object in the imaging position; an image display (150, 250) to display the image captured by the image capturer (110,210); an input part (160, 260) configured to allow inputting of a designation of a segmentation imaging region for which segmentation imaging is to be performed on the image displayed on the image display (150, 250); and a controller (120, 220) configured to control the X-ray generator (130, 230) to perform segmentation imaging with respect to the designated segmentation imaging region; wherein the input part (160, 260) is configured to allow inputting of a designation of a plurality of segmentation regions constituting the segmentation imaging region; wherein the X-ray generator (130, 230) is provided with positioning means for positioning the X-ray generator (130, 230), and wherein the controller (120,220) is configured to calculate, for each designated segmentation region, a location of the X-ray generator (130, 230) based on the image captured by the image capturer (110,210) and that segmentation region, and to control the positioning means to place the X-ray generator (130, 230) in the calculated location for obtaining an X-ray image of the designated segmentation region that corresponds to the calculated location.