function f = rowflip(a);
%
% rowflip - reverses order of rows
% On input:
%     a: 2D image
% On output:
%     f: row flipped image
% Call:
%     f = rowflip(a);
%

[m,n] = size(a);
f = a;
for r = 1:m
  for c = 1:n
    f(r,c) = a(m-r+1,c);
  end;
end;
