alpha-inpaint: adjust cohesion part of metric

instead of wanting the smallest possible distance to the average neighborhood
we now consider the situation optimal when we are on average 1px away from
the sources of the neighbors, hoping to encourage texture synthesis.
parent 81210225
Pipeline #95243 passed with stages
in 14 minutes and 42 seconds