image



hi

i'm trying to change each pixel in 2048*1536 RGB truecolor image
(succesfuly) and it takes about 15 min. to complete
is there more efficient way to do that, because the same code in c++ do the
same thing in few seconds

my code

for c = 1:s(2),
for k = 1:s(1),
tmp = imgLOld(k,c,1:3);
pix = TL * [k c 1]';
u = round(pix(1) / pix(3));
v = round(pix(2)/ pix(3) );
if (u > 0) & (u<s(2)) & (v>0) & (v<s(1))
imgL(u,v,1:3) = tmp;
end;
end;
end;



.