High-Temperature Materials Science Experiment Cabinet on the Chinese Space Station is mainly used to carry out experimental research related to high-temperature materials science in microgravity. It is equipped with an X-ray transmission imaging module, which is applied to realize transmission imaging of material samples under microgravity. However, the X-ray light source is far away from the experimental samples, and the images obtained by the module are blurred, so it is impossible to accurately observe the morphological changes during the melting and solidification processes of high-temperature materials. To address this issue, this paper proposed a contrast enhancement algorithm specifically designed for X-ray images obtained during the experiments of high-temperature materials. The algorithm is based on gradient three-interval equalization, and it is combined with a Gaussian function to expand the gradient histogram. Meanwhile, the local gray level information within each gradient interval is corrected by designing an improved adaptive contrast enhancement algorithm. By comparing with Adaptive Histogram Equalization (AHE) and Contrast Limited Adaptive Histogram Equalization (CLAHE) algorithms, EnlightenGAN, and Wavelet algorithms, the Contrast Enhancement based contrast-changed Image Quality measure (CEIQ) and Measure of Enhancement (EME) are improved by an average of 56.97%, 10.58%, and Measure of Entropy (MOE) are improved by an average of 7.74 times. The experimental results show that the algorithm makes the image details clearer on the basis of image contrast enhancement. The solid-liquid interface in the image can be clearly observed after contrast enhancement. The algorithm provides strong support for the study of interface dynamics during the experiment process of high-temperature materials.