function image = getLevel(pyramid, level)
% extract a level image from a pyramid

[row, col, levels] = size(pyramid);
if(level < levels)
   image = pyramid(:,:,level+1);
   image = image(1:col/2^level, 1:row/2^level);
end
