summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/point-extractor.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-28 00:03:24 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-28 00:03:24 +0200
commit3e56f47a9cef709d4a099a0ac6ff43e361fe4a43 (patch)
treea8968cb73e7568902c83bb2275982ac23261a2f7 /tracker-easy/point-extractor.h
parent518becf76bb5313949c76e9fa02d1ada2c25242d (diff)
Easy Tracker: UI rework for custom model with three, four or five vertices.
More settings can be changed live without have to restart the tracker. Fixing a few deadlock issues.
Diffstat (limited to 'tracker-easy/point-extractor.h')
-rw-r--r--tracker-easy/point-extractor.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/tracker-easy/point-extractor.h b/tracker-easy/point-extractor.h
index b037eed6..f275769d 100644
--- a/tracker-easy/point-extractor.h
+++ b/tracker-easy/point-extractor.h
@@ -24,9 +24,11 @@ namespace EasyTracker
// extracts points from frame and draws some processing info into frame, if draw_output is set
// dt: time since last call in seconds
void ExtractPoints(const cv::Mat& aFrame, cv::Mat* aPreview, int aNeededPointCount, std::vector<cv::Point>& aPoints);
-
+
+ void UpdateSettings();
+
// Settings
- Settings s;
+ Settings iSettings;
// Our frame with a channel size of 8 bits
cv::Mat iFrameChannelSizeOne;
// Our frame with a single 8 bits channel
@@ -34,6 +36,10 @@ namespace EasyTracker
//
std::vector<std::vector<cv::Point> > iContours;
+ // Take a copy of settings to avoid dead lock
+ int iMinPointSize;
+ int iMaxPointSize;
+
};
}