bnl.ops.LevelByMeanShift

class bnl.ops.LevelByMeanShift(bw=0.05)[source]

Bases: LevelStrategy

Use mean shift clustering to find peaks in the salience values and clusters them into levels.

Public Methods:

Inherited from Strategy

register(name)

A class method to register strategies in a central registry.


Parameters:

bw (float)

__call__(bc)[source]

Quantize boundaries’ levels in a BoundaryContour.

Parameters:

bc (BoundaryContour)

Return type:

BoundaryHierarchy