function drawimage(D)
% drawimage(D)
%
% plots the data in the vector D as an image

h = 376;
w = 271;
% switch to the following if you use the renoir dataset
% h = 321
% w = 341
D = D-min(D);
D = D/max(D);
D = reshape(D,h,w,3);
image(D);
axis off;
axis image;
