bnl.ops.CleanByAbsorb

class bnl.ops.CleanByAbsorb(window=1.0)[source]

Bases: CleanStrategy

Clean boundaries by absorbing less salient ones within a window.

Public Methods:

Inherited from Strategy

register(name)

A class method to register strategies in a central registry.


Parameters:

window (float)

__call__(bc)[source]

Cleans boundaries in a BoundaryContour.

Parameters:

bc (BoundaryContour)

Return type:

BoundaryContour