bnl.ops.LevelStrategy

class bnl.ops.LevelStrategy[source]

Bases: Strategy

Abstract base class for boundary level quantizing strategies.

Public Methods:

Inherited from Strategy

register(name)

A class method to register strategies in a central registry.


abstractmethod __call__(bc)[source]

Quantize boundaries’ levels in a BoundaryContour.

Parameters:

bc (BoundaryContour)

Return type:

BoundaryHierarchy