A control software named as gated imaging lab (GIL) for 2D/3D underwater or atmospheric range-gated imaging has been introduced. First, a detailed analysis of the functional requirements of imaging system is made. Based on its operating principle and hardware components, functional modules of GIL are determined. It mainly includes zooming and focusing lens, setting gated intensified charge-coupled device (ICCD), changing laser divergence angle, controlling synchronization timing control unit and reconstructing three dimensional (3D) scenes based on captured images. MFC framework simplifies the method of software design and improves the degree of reuse and development efficiency of GIL. Experiments demonstrate that GIL system is stable, real-time and can meet the application demands.