diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-12 13:25:58 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-13 10:29:53 +0100 |
commit | 3c8d20737dd8af2de29dd160309ba1538172346f (patch) | |
tree | 7f1d2ddf4648deda646b45e307684da48410853b | |
parent | dd9dcb28a342ec44028e1b03bd6c9345de96c8d7 (diff) |
tracker/pt: reindent
-rw-r--r-- | tracker-pt/module/point_extractor.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index 01ddcca8..e6da2071 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -62,12 +62,10 @@ static vec2 MeanShiftIteration(const cv::Mat1b &frame_gray, const vec2 ¤t_ { f val = frame_ptr[j]; val = val * val; // taking the square weighs brighter parts of the image stronger. - { - f dx = (j - current_center[0])*s; - f dy = (i - current_center[1])*s; - f max = std::fmax(f(0), 1 - dx*dx - dy*dy); - val *= max; - } + f dx = (j - current_center[0])*s; + f dy = (i - current_center[1])*s; + f max = std::fmax(f(0), 1 - dx*dx - dy*dy); + val *= max; m += val; com[0] += j * val; com[1] += i * val; |