function y = closure2( x, ntimes )
  
% FUNCTION Y = CLOSURE2( X, NTIMES )
  
  if nargin < 2
    error( [ mfilename ' needs 2 input arguments.' ] );
  end
  
  y = erosion2( dilation2( x, ntimes ), ntimes );
  