function [output] = imwarp(img,matrix) image = mattolist(img); a = imwarp(image,matrix) d = size(a) for i=1:d output(:,:,i) = a(i); end endfunction