Analysis of speckle patterns for deformation measurements by DIC