Multires: Fix mask interpolation weights

Weights were in the different order from corners.

Doesn't fix propagation issues, but fixes an essential step towards
fully correct propagation.
This commit is contained in:
Sergey Sharybin 2020-05-13 09:58:19 +02:00
parent 099dd0690c
commit 2843af9357
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ static float interpolate_masks_grid(const MultiresReshapeSmoothContext *reshape_
const float u = x_f - x_i;
const float v = y_f - y_i;
const float weights[4] = {(1.0f - u) * (1.0f - v), u * (1.0f - v), (1.0f - u) * v, u * v};
const float weights[4] = {(1.0f - u) * (1.0f - v), u * (1.0f - v), u * v, (1.0f - u) * v};
return mask_elements[0] * weights[0] + mask_elements[1] * weights[1] +
mask_elements[2] * weights[2] + mask_elements[3] * weights[3];