method of calculating 3D orientation using X-ray images