Home
last modified time | relevance | path

Searched refs:original_box (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dgeom.h303 inline BoundingSquare GetCenteredSquare(const BoundingBox& original_box, in GetCenteredSquare() argument
305 const float width_diff = (original_box.GetWidth() - size) / 2.0f; in GetCenteredSquare()
306 const float height_diff = (original_box.GetHeight() - size) / 2.0f; in GetCenteredSquare()
307 return BoundingSquare(original_box.left_ + width_diff, in GetCenteredSquare()
308 original_box.top_ + height_diff, in GetCenteredSquare()
312 inline BoundingSquare GetCenteredSquare(const BoundingBox& original_box) { in GetCenteredSquare() argument
314 original_box, MIN(original_box.GetWidth(), original_box.GetHeight())); in GetCenteredSquare()