summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tracker-neuralnet/ftnoir_tracker_neuralnet.cpp12
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); };