% ========================================================================= % Math 336 - Image Processing - Laboratory 6 % % Image Morphology (Part 1): % A function for computing the morphological operation of closing. % % Marty Kandes % Computational Science Research Center / Department of Physics % San Diego State University % Fall 2008 % ------------------------------------------------------------------------- function [G] = mclose(F,SE,AP,METHOD) G = mdilate(F,SE,AP,METHOD); % Dilate the image, then G = merode(G,SE,AP,METHOD); % erode the image. end % =========================================================================