18 NORMALIZED_CROSS_CORRELATION,
19 SUM_OF_SQUARED_DIFFERENCES,
20 SUM_OF_ABSOLUTE_DIFFERENCES,
29 std::map<std::string, MatchingMetric> map = {
30 {
"NCC", MatchingMetric::NORMALIZED_CROSS_CORRELATION},
31 {
"SAD", MatchingMetric::SUM_OF_ABSOLUTE_DIFFERENCES},
32 {
"SSD", MatchingMetric::SUM_OF_SQUARED_DIFFERENCES},
41 void setMatchingMetric(MatchingMetric type);
46 void setBlockSize(
int size);
51 void setSearchSize(
int size);
56 void setIntensityThreshold(
float value);
61 void setTimeLag(
int timeLag);
66 void setForwardBackwardTracking(
bool forwardBackward);
72 void setRegionOfInterest(Vector2i offset, Vector2i size);
73 void loadAttributes()
override;
76 void execute()
override;
78 MatchingMetric m_type = MatchingMetric::SUM_OF_ABSOLUTE_DIFFERENCES;
79 int m_blockSizeHalf = 5;
80 int m_searchSizeHalf = 5;
83 bool m_forwardBackward =
false;
84 Vector2i m_offsetROI = Vector2i::Zero();
85 Vector2i m_sizeROI = Vector2i::Zero();
86 std::deque<std::shared_ptr<Image>> m_frameBuffer;