Curvature-dependent energies minimizers and visual curve completion