%
% ShowByteImage.m
%
%   Display a grayscale byte-per-pixel image.
%
%   NOTE: does NOT automatically do a full-scale stretch.
%
%   Usage:
%   >> FigNum = ShowByteImage(x,FigNum);
%   >> ShowByteImage(x,FigNum);
%
%   Input parameters:
%     x          double array holding the byte image to be displayed
%     FigNum     number of the figure in which to display the image
%
%   Output parameters:
%     FigNum     the value of FigNum is incremented prior to return.
%                this makes an optional but convenient way to generate
%                consecutively numbered figures with iterated calls to
%                this function.
%
% 4/3/03 jph
% 

function [NewFigNum] = ShowByteImage(x,FigNum)

figure(FigNum);
colormap(gray(256));
image(x);
axis('image');

NewFigNum = FigNum + 1;
