| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
Iab = mmendpoints( OPTION ) OPTION: String. 'LOOP' or 'HOMOTOPIC' Default: "LOOP".Iab: Interval. mmendpoints creates an interval that is useful to detect end-points of curves (i.e., one pixel thick connected components) in binary images. It can be used to prune skeletons and to mark objects transforming them in a single pixel or closed loops if they have holes. There are two options available: LOOP, deletes all points but preserves loops if used in mmthin; HOMOTOPIC, deletes all points but preserves the last single point or loops.mmintershow(mmendpoints) ans = . . . 0 1 0 0 0 0 |
mmintershow(mmendpoints('HOMOTOPIC')) ans = . 1 . 0 1 0 0 0 0 |
f = imread('pcbholes.tif');
mmshow(f);
f1 = mmthin(f);
mmshow(f1);
f2 = mmthin(f1,mmendpoints,20);
mmshow(f2);
|
fn = mmthin(f1,mmendpoints('HOMOTOPIC')); mmshow(mmdil(fn));
|

| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||