The invention relates to an X-ray machine having a tape measure or measuring tape (5) attached to or incorporated in the X-ray emission unit comprising an X-ray tube (3) and a collimator (4), said tape measure being located on the tube itself, on the collimator or on any supporting means associated with the system. The tape measure is linked to a transducer for determining elongation (6), which measures the extension of the tape measure (5), in order to measure the distance (d2) between the focal spot and the upper part of the region of the body to be treated with X-rays, thereby determining the anatomical thickness (d3), said thickness being the distance (d1) between the focal spot (9) and the table top (1), minus the distance (d2).Máquina de rayos-x que tiene anexa o incorporada en el conjunto de emisión de rayos-x, formado por un tubo de rayos-x (3) y un colimador (4), bien sobre el propio tubo, sobre el colimador o sobre cualquier soporte asociado a dicho conjunto, un flexómetro o cinta métrica (5), que tiene asociado un transductor de la elongación (6) que mide el despliegue realizado por el flexómetro (5), para la medición de la distancia (d2) que va desde el foco hasta la parte superior de la zona del cuerpo a radiar, obteniendo el espesor anatómico (d3), como diferencia entre la distancia (d1) que va desde el foco (9) al tablero (1) menos la distancia (d2).Linvention concerne une machine à rayons X qui possède à proximité de lensemble démission de rayons X ou à lintérieur de celui-ci, formé dun tube de rayons X (3) et dun collimateur (4), bien sur le même tube, sur le collimateur ou sur nimporte quel support associé à cet ensemble, un flexomètre ou une bande métrique (5), qui est associée à un transducteur dallongement (6) qui mesure le déploiement réalisé par le flexomètre (5) pour mesurer la distance (d2) qui va du foyer jusquà la partie supérieure de la zone du corps à rayonner, ce qui permet dobtenir lépaisseur anatomique (d3), comme différence entre la