
This computes global motion parameters between 2 frames by matching corresponding points using FAST feature and then fitting a model using RANSAC. Change-Id: Ib6664df44090e8cfa4db9f2f9e0556931ccfe5c8
23 lines
500 B
C
23 lines
500 B
C
// clang-format off
|
|
#include <stdlib.h>
|
|
#include "fast.h"
|
|
|
|
|
|
xy* fast9_detect_nonmax(const byte* im, int xsize, int ysize, int stride, int b, int* ret_num_corners)
|
|
{
|
|
xy* corners;
|
|
int num_corners;
|
|
int* scores;
|
|
xy* nonmax;
|
|
|
|
corners = fast9_detect(im, xsize, ysize, stride, b, &num_corners);
|
|
scores = fast9_score(im, stride, corners, num_corners, b);
|
|
nonmax = nonmax_suppression(corners, scores, num_corners, ret_num_corners);
|
|
|
|
free(corners);
|
|
free(scores);
|
|
|
|
return nonmax;
|
|
}
|
|
// clang-format on
|