Determination of in-plane and off-plane surface displacements with grids virtually applied to digital images