|
Alpha Expansion Library
C++ library for the Alpha-Expansion graph-cut algorithm with Python bindings
|
Expansion strategy that cycles through labels in fixed order 0, 1, …, K-1. More...
#include <SequentialStrategy.hpp>
Public Member Functions | |
| SequentialStrategy (int max_cycles=100) | |
| Constructs the strategy. | |
| int | execute (AlphaExpansion< T > &optimizer, EnergyModel< T > &model) const override |
Runs sequential alpha-expansion until convergence or max_cycles. | |
Public Member Functions inherited from ExpansionStrategy< T > | |
| virtual | ~ExpansionStrategy ()=default |
Expansion strategy that cycles through labels in fixed order 0, 1, …, K-1.
Each cycle tries one expansion move per label. The strategy converges when a full cycle produces no change in any label, or when max_cycles is reached. This is the standard strategy from the original Boykov–Veksler–Zabih paper.
| T | Numeric cost type. |
|
inline |
Constructs the strategy.
| max_cycles | Maximum number of full label cycles before stopping (default: 100). |
|
inlineoverridevirtual |
Runs sequential alpha-expansion until convergence or max_cycles.
Implements ExpansionStrategy< T >.