I was reading DIP by Gonzalez et al, and came across the concept of getting output image pixel values by calculating nearest neighbour in input image by inverse mapping of output pixel coordinates $(x,y)$ to input coordinates $(v,w)$ and applying its value. Something like
$$ (v,w) = T^{-1} (x,y) $$ where $T$ is the image transform matrix.
But what if the matrix T is singular. How will we define the nearest neighbour pixels then? For eg. for
$$ T = \left [ \begin{array}{ccc} 1 &1 &0\\ 1 &1 &0\\ 0 &0 &1 \end{array} \right], $$ whose inverse doesn't exist.
(I am guessing that the transform matrix is changed by adding or subtracting some values)