function frame = deintMedian(frame)
% temporal median filter deinterlacing, adapted from the description:
%   http://www.mathworks.com/access/helpdesk/help/toolbox/vipblks/index.html?/access/helpdesk/help/toolbox/vipblks/ref/deinterlacing.html
for odd=2:2:size(frame,1)-1
  frame(odd,:,:) = median(frame(odd-1:odd+1,:,:), 1);
end
