From 4db6f6334d13ed5e8696dfa0208b42b3e9a2352a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 29 Apr 2016 09:44:40 +0200 Subject: tracker/pt: conversion to unsigned char clamps by itself Remove redundant operation on the frame. --- tracker-pt/point_extractor.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'tracker-pt/point_extractor.cpp') 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 -- cgit v1.2.3