sustaining_gazes/matlab_version/face_validation/DeepLearnToolbox/util/patches2im.m

11 lines
242 B
Mathematica
Raw Normal View History

2016-04-28 19:40:36 +00:00
function im = patches2im(patches,n,m)
k=1;
im = zeros(n,m);
for i=1:10:800
for u=1:10:1140
patch = patches(:,k);
im(u:u+9,i:i+9) = reshape(patch,10,10);
k = k+1;
end
end
end