This paper presents a method of correcting the effects caused by refraction phenomena in an optical measurement system. The correction algorithm proposed can be applied in many different photogrammetric applications affected by these effects. To validate this algorithm, a foot sole optical measurement system that uses several cameras to build a mesh of a foot sole has been used. This measurement system has six cameras that are protected by a safety glass that separates the cameras from the foot to be measured. The safety glass produces an air-glass-air interface that causes the refraction phenomena, producing deformations in the images. Due to the deformations it is impossible to obtain reliable metric information of the images captured using the measurement system. The developed correction algorithm is based on a grid layout and associated polynomials and makes it possible to correct the deformations and extract accurate metric information.