Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dgeom.h32 class Point2f {
34 Point2f() : x(0.0f), y(0.0f) {} in Point2f() function
35 Point2f(const float x, const float y) : x(x), y(y) {} in Point2f() function
37 inline Point2f operator- (const Point2f& that) const {
38 return Point2f(this->x - that.x, this->y - that.y);
41 inline Point2f operator+ (const Point2f& that) const {
42 return Point2f(this->x + that.x, this->y + that.y);
45 inline Point2f& operator+= (const Point2f& that) {
51 inline Point2f& operator-= (const Point2f& that) {
57 inline Point2f operator- (const Point2f& that) {
[all …]
Dflow_cache.h39 displacements_[i] = new Image<Point2f>(curr_dims, curr_dims); in FlowCache()
71 const Point2f guess_from_cache = LookupGuess(u_x, u_y); in FindFlowAtPoint()
121 Point2f GetMedianFlow(const BoundingBox& bounding_box, in GetMedianFlow()
133 return Point2f(0, 0); in GetMedianFlow()
167 return Point2f(x_deltas[curr_offset / 2], y_deltas[curr_offset / 2]); in GetMedianFlow()
171 return Point2f(0, 0); in GetMedianFlow()
186 Point2f LookupGuessFromLevel( in LookupGuessFromLevel()
199 return Point2f(xnew - x, ynew - y); in LookupGuessFromLevel()
210 Point2f displacement; in LookupGuessFromLevel()
216 Point2f(0, 0) : LookupGuessFromLevel(cache_level + 1, x, y); in LookupGuessFromLevel()
[all …]
Dframe_pair.h50 Point2f GetWeightedMedian(const float* const weights,
51 const Point2f* const deltas) const;
54 const Point2f* const deltas) const;
62 void FillTranslations(Point2f* const translations) const;
69 int FillScales(const Point2f& old_center,
70 const Point2f& translation,
72 Point2f* const scales) const;
Dframe_pair.cc37 static Point2f deltas[kMaxKeypoints]; in AdjustBox()
45 const Point2f translation = GetWeightedMedian(weights, deltas); in AdjustBox()
50 const Point2f old_center = box.GetCenter(); in AdjustBox()
109 const Point2f initial = box.GetCenter(); in FillWeights()
137 void FramePair::FillTranslations(Point2f* const translations) const { in FillTranslations()
149 int FramePair::FillScales(const Point2f& old_center, in FillScales()
150 const Point2f& translation, in FillScales()
152 Point2f* const scales) const { in FillScales()
222 Point2f FramePair::GetWeightedMedian( in GetWeightedMedian()
223 const float* const weights, const Point2f* const deltas) const { in GetWeightedMedian()
[all …]
Dkeypoint.h36 Point2f pos_;
Dobject_tracker.cc243 const Point2f& point1 = change.frame1_keypoints_[i].pos_; in GetKeypointsPacked()
247 const Point2f& point2 = change.frame2_keypoints_[i].pos_; in GetKeypointsPacked()
297 tracked_box.Shift(Point2f(translation_x, translation_y)); in TrackBox()
448 const Point2f center = box.GetCenter(); in AddQuadrants()
Dkeypoint_detector.cc315 curr_keypoint.pos_ = Point2f( in AddExtraCandidatesForBoxes()
507 keypoint->pos_ = Point2f( in FindFastKeypoints()
/external/libxcam/modules/ocl/
Dcv_feature_match.h58 …ed_data (cv::InputArray image, cv::Ptr<cv::Feature2D> detector, std::vector<cv::Point2f> &corners);
59 void get_valid_offsets (std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1,
65 std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1,
Dcv_feature_match.cpp65 cv::InputArray image, cv::Ptr<cv::Feature2D> detector, std::vector<cv::Point2f> &corners) in add_detected_data()
78 std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1, in get_valid_offsets()
118 std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1, in calc_of_match()
188 std::vector<cv::Point2f> corner_left, corner_right; in detect_and_match()