Deform a 2D mesh based on a contrast image

Hello
did you try this ?