Alpha Expansion Library
C++ library for the Alpha-Expansion graph-cut algorithm with Python bindings
Loading...
Searching...
No Matches
ExpansionStrategy.hpp
Go to the documentation of this file.
1#pragma once
2
3template <typename T>
5
6template <typename T>
7class EnergyModel;
8
31template <typename T>
33public:
34 virtual ~ExpansionStrategy() = default;
35
40 virtual int execute(AlphaExpansion<T> &optimizer, EnergyModel<T> &model) const = 0;
41};
Performs alpha-expansion moves on an EnergyModel using a pluggable max-flow solver.
Definition AlphaExpansion.hpp:20
Stores the graph and energy costs for the Alpha-Expansion algorithm.
Definition EnergyModel.hpp:17
Abstract base class for alpha-expansion iteration strategies.
Definition ExpansionStrategy.hpp:32
virtual ~ExpansionStrategy()=default
virtual int execute(AlphaExpansion< T > &optimizer, EnergyModel< T > &model) const =0
Runs the expansion strategy to convergence (or up to a cycle limit).