Current location - Education and Training Encyclopedia - Graduation thesis - Summary paper on skeleton extraction or axis extraction of two-dimensional shape (or image).
Summary paper on skeleton extraction or axis extraction of two-dimensional shape (or image).
20. Morphological skeleton extraction

Use MATLAB to realize the following functions:

I = im read(' xian . BMP ');

Subplots (2,2, 1), im show (i);

Title ("original");

axis();

Axis open;

I 1 = im2bw(I);

Subplots (2, 2, 2), im show (I1);

Title ("binary image");

axis();

Axis open;

I2=bwmorph(I 1,' skel ', 1);

Subplots (2, 2, 3), IM Show (I2);

Title ('1 skeleton extraction');

axis();

Axis open;

I3=bwmorph(I 1,' skel ',2);

Subplots (2, 2, 4), IM Show (i3);

Title ("Secondary Skeleton Extraction");

axis();

Axis open;