function gray2 = image_decimate_gray ( gray )

%*****************************************************************************80
%
%% image_decimate_gray() decimates a gray scale image by half in both dimensions.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 April 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    uint8 GRAY(:,:), the original MxN grayscale image.
%
%  Output:
%
%    uint8 GRAY_2(:,:), the M/2xN/2 decimated image.
%
  [ m, n ] = size ( gray );
  gray2 = gray(1:2:m,1:2:n);

  return
end
