I have a set of points [x,y]=meshgrid(1:N,1:M) defined on a regular 2D, N x M grid. I have another set of points [u,v] that are some defor
[x,y]=meshgrid(1:N,1:M)
N x M
[u,v]
Assuming x, y, u and v are of the same size (MxN 2D matrices) and the image/texture you wish to map is I of size MxNx3 (three color channels), then you might find scatter useful:
x
y
u
v
MxN
I
MxNx3
scatter
figure; scatter( u(:), v(:), 30, reshape( I, [], 3 ), 's', 'filled' );