imhessian function

Compute image hessian.