Image-based deformation measurement