Program for image morpholog using Matlab
Program for image morphology Demonstrate boundary extraction, interior filling % demonstrate morphological boundary extraction %clear all, close all A0=imread(’myshap4.bmp’); imshow(A0); % a heart shape hand drawing title(’original image’); pause % A0 contains mostly 1s and the drawing contains 0s, uint8 A1=1-double(A0); % invert black and white B=ones(3); A2=imopen(imclose(A1,B),B); % fill 1 pixel [...]

