Sub-pixel displacement measurement based on the combination of a gray wolf optimizer and gradient algorithm.