This invention relates to medical X-ray imaging systems, specifically a method for measuring and calibrating a target in a DSA two-dimensional image when it deviates from its isocenter. The method is achieved through the following steps: 1. Under standard alignment or when the target is isocentered on the DSA machine, acquire and record relevant parameters of the target; 2. After the DSA machine rotates or the examination table moves, and the target deviates from its isocenter, acquire the corresponding parameters used when generating the two-dimensional image, including the machine's X-ray source rotation radius, rotation angle, examination table height and position, and the distance between the target and the table surface. Substitute these parameters into a calibration formula to calculate the calibrated X-ray source-target distance; 3. Calculate the estimated magnification using the calibrated X-ray source-target distance and the X-ray source-detector distance used when generating the two-dimensional image, thereby achieving pixel calibration of the two-dimensional image and ultimately achieving accurate measurement of the target.