OPAL
MultipointLabelEstimator.h
1 #pragma once
2 
3 #include <vector>
4 #include <utility>
5 
6 
7 template <class LabelType>
9 public:
10  using WeightType = double;
11 
12  // Candidate label and its weight (from 0 to 1).
13  using CandidateType = std::pair<LabelType, WeightType>;
14 
15  using CandidateContainer = std::vector<CandidateType>;
16 
17  // Estimate final label by candidate labels with their weights.
18  //
19  // For example, each pixel contributes to NxN patches in PM algorithm
20  // where N is patch side. Each of NxN patches votes for its own label.
21  virtual LabelType
22  EstimateLabel(const CandidateContainer &candidates) const = 0;
23 };
Definition: MultipointLabelEstimator.h:8