OOF2: The Manual
Name
OOF.SegmentSelection.Select_by_Homogeneity — Select segments with homogeneity less than the given threshold.
Synopsis
OOF.SegmentSelection.Select_by_Homogeneity(skeleton, threshold)
Details
- Parent Menu: OOF.SegmentSelection
-
Callback: function
modifyin moduleooflib.engine.skeletonselectionmod -
Parameters:
skeleton- Type: The path to an existing
Skeletonobject. threshold- The threshold homogeneity. Type: A real number in the range [0, 1].
Description
Select Skeleton Segments that are heterogeneous. Any Segment whose
homogeneity is less than the given threshold will
be selected.
Figure 6.55. Selecting Heterogeneous Segments

(a) A Skeleton containing some heterogeneous Segments. The
pixels have been grouped by color, so
Segments straddling two colors are inhomogeneous.
(b) After selecting with threshold=0.9, Segments
that are less than 90% homogeneous have been selected and are
marked by heavy green lines.
(c) The same, but with threshold=0.5. Only one
segment is selected. (Unless a segment crosses three or more
pixel categories, it is impossible for its homogeneity to be
less than 0.5.)



