Is it possible for IDW algorithm to account for a bend in a matrix? What I mean by the bend, is that the left and the right side of the matrix would be connected ( neighbors )
Let's say we have this 4x4 matrix
\begin{bmatrix} 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{bmatrix}
And then the value at index [2,3] becomes 2
\begin{bmatrix} 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 2 \\ 0 & 0 & 0 & 0 \end{bmatrix}
We would interpolate to
\begin{bmatrix} 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 1 & 0 & 1 & 2 \\ 0 & 0 & 0 & 1 \end{bmatrix}