An X-ray image enhancement algorithm based on AH(adaptive histogram) and MSR( Multi-scale Retinex )algorithm is proposed in this paper for the industrial X-ray image, which contrast is low, and the detail features is poor. Firstly, the contrast limited adaptive histogram equalization and neighborhood algorithm is used for the image. Then the mapping is built between the image and the detail scales by the enhance function ratio rules, which is adjusted by the local contracting information. Finally, according the enhance function radios, the reconstructed image is rebuild. Compared with other image enhancement algorithms, experimental results show that our algorithm can improve the global image effectively, moreover it overcomes the visible artifacts of X-ray image. Therefore, the x-ray image becomes clearer, and a better perceptual image is acquired for the image feature recognizing and matching