Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dkeypoint_detector.cc49 Keypoint* const keypoint = candidate_keypoints + i; in ScoreKeypoints() local
51 const int x_pos = keypoint->pos_.x * 2; in ScoreKeypoints()
52 const int y_pos = keypoint->pos_.y * 2; in ScoreKeypoints()
55 keypoint->score_ = in ScoreKeypoints()
56 HarrisFilter(I_x, I_y, keypoint->pos_.x, keypoint->pos_.y) / in ScoreKeypoints()
62 Keypoint* const keypoint = candidate_keypoints + i; in ScoreKeypoints() local
63 keypoint->score_ = in ScoreKeypoints()
64 HarrisFilter(I_x, I_y, keypoint->pos_.x, keypoint->pos_.y); in ScoreKeypoints()
506 Keypoint* const keypoint = keypoints + num_keypoints; in FindFastKeypoints() local
507 keypoint->pos_ = Point2f( in FindFastKeypoints()
[all …]
Dkeypoint.h41 inline std::ostream& operator<<(std::ostream& stream, const Keypoint keypoint) {
42 return stream << "[" << keypoint.pos_ << ", "
43 << keypoint.score_ << ", " << keypoint.type_ << "]";
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/tracking/
DObjectTracker.java355 for (final PointChange keypoint : lastKeypoints.pointDeltas) { in drawKeypointsDebug()
356 if (keypoint.wasFound) { in drawKeypointsDebug()
358 floatToChar((keypoint.keypointA.score - minScore) / (maxScore - minScore)); in drawKeypointsDebug()
360 floatToChar(1.0f - (keypoint.keypointA.score - minScore) / (maxScore - minScore)); in drawKeypointsDebug()
365 final float[] screenPoints = {keypoint.keypointA.x, keypoint.keypointA.y, in drawKeypointsDebug()
366 keypoint.keypointB.x, keypoint.keypointB.y}; in drawKeypointsDebug()
377 canvas.drawText(keypoint.keypointA.type + ": " + keypoint.keypointA.score, in drawKeypointsDebug()
378 keypoint.keypointA.x, keypoint.keypointA.y, p); in drawKeypointsDebug()
382 final float[] screenPoint = {keypoint.keypointA.x, keypoint.keypointA.y}; in drawKeypointsDebug()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/
DObjectTracker.java355 for (final PointChange keypoint : lastKeypoints.pointDeltas) { in drawKeypointsDebug()
356 if (keypoint.wasFound) { in drawKeypointsDebug()
358 floatToChar((keypoint.keypointA.score - minScore) / (maxScore - minScore)); in drawKeypointsDebug()
360 floatToChar(1.0f - (keypoint.keypointA.score - minScore) / (maxScore - minScore)); in drawKeypointsDebug()
365 final float[] screenPoints = {keypoint.keypointA.x, keypoint.keypointA.y, in drawKeypointsDebug()
366 keypoint.keypointB.x, keypoint.keypointB.y}; in drawKeypointsDebug()
377 canvas.drawText(keypoint.keypointA.type + ": " + keypoint.keypointA.score, in drawKeypointsDebug()
378 keypoint.keypointA.x, keypoint.keypointA.y, p); in drawKeypointsDebug()
382 final float[] screenPoint = {keypoint.keypointA.x, keypoint.keypointA.y}; in drawKeypointsDebug()