An X-ray apparatus includes a C-arm for adjusting a position of an X-ray source a table on which an object is positioned a data obtaining unit for obtaining position information of a target in the object and a control unit for moving at least one of the C-arm and the table to allow tracking of the target based on the position information when capturing an X-ray image.Linvention concerne un appareil à rayons X qui comprend un bras en C pour ajuster une position dune source de rayons X une table sur laquelle un objet est placé une unité dobtention de données pour obtenir des informations de position dune cible dans lobjet et une unité de commande pour déplacer au moins lun parmi le bras en C et la table pour permettre de suivre la cible daprès les informations de position lors de la capture dune image aux rayons X.