diff options
author | Michael Welter <michael@welter-4d.de> | 2021-09-09 21:32:21 +0200 |
---|---|---|
committer | Michael Welter <michael@welter-4d.de> | 2021-10-20 23:39:44 +0200 |
commit | ea391bae54bbcf61698eaedc09cbedc32a4a8c46 (patch) | |
tree | 6065bb3644ea4baf644284db323290c94b1f5404 | |
parent | b28ae59530475bb47dca1c12c5c93dfc293a4a78 (diff) |
tracker/nn: Remove unused function
-rw-r--r-- | tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp index 79796e92..8beb4119 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -67,18 +67,6 @@ cv::Rect_<T> squarize(const cv::Rect_<T> &r) } -int compute_padding(const cv::Rect &r, int w, int h) -{ - using std::max; - return max({ - max(-r.x, 0), - max(-r.y, 0), - max(r.x+r.width-w, 0), - max(r.y+r.height-h, 0) - }); -} - - cv::Rect2f unnormalize(const cv::Rect2f &r, int h, int w) { auto unnorm = [](float x) -> float { return 0.5*(x+1); }; |