bnl.ops.SalByDepth
- class bnl.ops.SalByDepth[source]
Bases:
SalienceStrategySalience based on the coarsest layer of appearance.
Public Methods:
Inherited from
Strategyregister(name)A class method to register strategies in a central registry.
- __call__(ms)[source]
Iterate from finest (last) to coarsest (first) layer. The salience is the layer’s rank, starting from 1 for the finest layer. This ensures that if a boundary time exists in multiple layers, the one from the coarsest layer (with highest salience) is kept.
- Parameters:
ms (MultiSegment)
- Return type: