Determination of geometrical properties of surfaces with grids virtually applied to digital images