Code covered by the BSD License  

Highlights from
3D Free Form Image Registration Toolbox (GUI)

image thumbnail
from 3D Free Form Image Registration Toolbox (GUI) by Daniel Markel
A toolbox for performing image registrations on 4D RTOG files or any other volumetric image.

refgrid(dgrid,M,N);
function dgrid2 = refgrid(dgrid,M,N);

sz = size(M);
dgrid2 = cell(sz(1),sz(2));
for m = 1:sz(1)
    for n = 1:sz(2)        
        dgrid2{m,n} = dgrid{M(m,n),N(m,n)};
    end
end

Contact us at files@mathworks.com