function subplot_2(ori,output,direction)
figure
if ~exist('direction','var')
    direction = 'v';
end

switch lower(direction)
    case 'h'
        subplot(1,2,1),imagesc(ori),colormap(gray),axis image,axis off
        subplot(1,2,2),imagesc(output),colormap(gray),axis image,axis off
    case 'v'
        subplot(2,1,1),imagesc(ori),colormap(gray),axis image,axis off
        subplot(2,1,2),imagesc(output),colormap(gray),axis image ,axis off
    otherwise
        error('invalid display option')
end

