diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-04-29 09:44:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-04-29 09:44:40 +0200 |
commit | 4db6f6334d13ed5e8696dfa0208b42b3e9a2352a (patch) | |
tree | 408cd3540f62cac702f4ac59dbabcc8331d701d4 /tracker-pt/point_extractor.cpp | |
parent | 3a7011ff73cce39ecacb4c5651c1a2dbda8eb10e (diff) |
tracker/pt: conversion to unsigned char clamps by itself
Remove redundant operation on the frame.
Diffstat (limited to 'tracker-pt/point_extractor.cpp')
-rwxr-xr-x | tracker-pt/point_extractor.cpp | 2 |
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 |