The invention provides an underground cable three-dimensional imaging method based on terahertz data and X-
ray data, and the method comprises the steps: solving
dielectric constant distribution and
material density distribution according to the terahertz data and the X-
ray data, building the incidence relation between the
dielectric constant distribution and the
material density distribution, and determining
projection reconstruction initial parameters; a
fitness function is constructed according to the projection data and the
projection reconstruction initial parameters,
dielectric constant distribution and
material density distribution are reconstructed through a
quantum genetic optimization
algorithm based on the
fitness function and the incidence relation, and an initial reconstruction result is obtained; performing cross iterative optimization on the dielectric constant distribution and the material
density distribution by using a regularization item constructed by an initial reconstruction result until convergence; and based on the converged dielectric constant distribution and material
density distribution, after an X-
ray reconstruction image and a terahertz reconstruction image are generated, data fusion and feature optimization are carried out, and a three-dimensional image of the underground cable is obtained. Therefore, a high-precision three-dimensional image of the underground cable is generated by fusing the optimized bimodal image data.