Noncontact infrared detection is an effective way to diagnose substation equipment defects, but inclement weather conditions like haze and rainstorms produce low-quality infrared images, making it challenging to recognize equipment. To overcome this problem, a global and local contrast adaptive enhancement method is suggested. The global approach consists of the gray-level stretching Retinex (GLS Retinex) and the weighted truncated Gaussian histogram equalization (WTGHE). The GLS Retinex comprises gray-level stretching, fast-guide filtering, and parameter self-adjustment Retinex, which can be ...