blob: 357a610e5e8ed57febf542d2bc0075cd065cd9cb [file] [log] [blame] [edit]
// clang-format off
#include <stdlib.h>
#include "fast.h"
xy* aom_fast9_detect_nonmax(const byte* im, int xsize, int ysize, int stride, int b,
int** ret_scores, int* ret_num_corners)
{
xy* corners;
int num_corners;
int* scores;
xy* nonmax;
corners = aom_fast9_detect(im, xsize, ysize, stride, b, &num_corners);
scores = aom_fast9_score(im, stride, corners, num_corners, b);
nonmax = aom_nonmax_suppression(corners, scores, num_corners, ret_scores, ret_num_corners);
free(corners);
free(scores);
return nonmax;
}
// clang-format on