diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-13 10:35:31 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-13 10:35:31 +0100 |
commit | 2bbafef8e1b19e129f4d387532e016cf2c46215b (patch) | |
tree | 92ebe4241760d23eb044f014e342d6ca006a2389 /tracker-pt/module | |
parent | 3c8d20737dd8af2de29dd160309ba1538172346f (diff) |
tracker/pt: add __restrict at right place
Diffstat (limited to 'tracker-pt/module')
-rw-r--r-- | tracker-pt/module/point_extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index e6da2071..75f2da1a 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -57,7 +57,7 @@ static vec2 MeanShiftIteration(const cv::Mat1b &frame_gray, const vec2 ¤t_ vec2 com { 0, 0 }; for (int i = 0; i < frame_gray.rows; i++) { - auto frame_ptr = (uint8_t const* __restrict)frame_gray.ptr(i); + uint8_t const* const __restrict frame_ptr = frame_gray.ptr(i); for (int j = 0; j < frame_gray.cols; j++) { f val = frame_ptr[j]; |