summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/point_extractor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-08-03 06:15:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-08-03 06:15:48 +0200
commit28b4f283f20d0ecf370ac33ed25501e1c2b927a9 (patch)
treef3d7c396e3588a253b0a88e34b7d56d47d835389 /tracker-pt/module/point_extractor.cpp
parentbad2a3e97a92b32c163510e7a0764034c1f87d80 (diff)
tracker/pt: extract green channel only as user option
Issue: #808 Requested-by: @DanTDBV
Diffstat (limited to 'tracker-pt/module/point_extractor.cpp')
-rw-r--r--tracker-pt/module/point_extractor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp
index 00248029..cd6cea7c 100644
--- a/tracker-pt/module/point_extractor.cpp
+++ b/tracker-pt/module/point_extractor.cpp
@@ -128,6 +128,11 @@ void PointExtractor::color_to_grayscale(const cv::Mat& frame, cv::Mat1b& output)
{
switch (s.blob_color)
{
+ case pt_color_green_only:
+ {
+ extract_single_channel(frame, 1, output);
+ break;
+ }
case pt_color_blue_only:
{
extract_single_channel(frame, 0, output);