1. An X-ray imaging apparatus comprising: an X-ray tube which radiates X-rays toward a subject; an imaging unit which generates an image of the subject; and a position controller which recognizes a part to be subjected to X-ray imaging from the generated image of the subject and performs control such that the X-ray tube is moved to a position corresponding to the part to be subjected to X-ray imaging.