summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-04-29 09:44:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-04-29 09:44:40 +0200
commit4db6f6334d13ed5e8696dfa0208b42b3e9a2352a (patch)
tree408cd3540f62cac702f4ac59dbabcc8331d701d4 /tracker-pt
parent3a7011ff73cce39ecacb4c5651c1a2dbda8eb10e (diff)
tracker/pt: conversion to unsigned char clamps by itself
Remove redundant operation on the frame.
Diffstat (limited to 'tracker-pt')
-rwxr-xr-xtracker-pt/point_extractor.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp
index 19d8111f..25b825fd 100755
--- a/tracker-pt/point_extractor.cpp
+++ b/tracker-pt/point_extractor.cpp
@@ -70,8 +70,6 @@ void PointExtractor::gray_square_diff(const cv::Mat &frame, cv::Mat &frame_gray)
frame_gray_tmp -= float_absdiff_channel.mul(float_absdiff_channel, scale);
}
- frame_gray_tmp = cv::max(0., frame_gray_tmp);
-
frame_gray_tmp.convertTo(frame_gray, CV_8UC1);
#ifdef DEBUG_SUM_OF_SQUARES