The technology of optical interferometry1,2 can measure plenty of physical parameters which are proportional to the phase of light. Among them, digital speckle pattern interferometry (DSPI)3–5 and digital speckle shearing pattern interferometry (DSSPI, shearography)6,7 have been widely concerned and applied to the measurement of parameters such as object deformation and its first derivative due to their characteristics of full-field, non-contact, high sensitivity, and high precision.8,9 In the practical applications of DSPI and DSSPI, it is often necessary to measure the deformation or detect defects of some specimens placed in boxes such as temperature control box and pressure control box. The observation windows of these boxes are mostly made of quartz glass. When the DSPI or DSSPI is used to measure the object inside, the laser irradiates the surface of the object through the observation window. Meanwhile, part of the laser is reflected on the surface of the observation window glass, which makes the local area of the field of view overexposed during the imaging, resulting in the failure to measure the area normally.