1 // clang-format off
2 #include <stdlib.h>
3 #include "fast.h"
4
5
fast9_detect_nonmax(const byte * im,int xsize,int ysize,int stride,int b,int * ret_num_corners)6 xy* fast9_detect_nonmax(const byte* im, int xsize, int ysize, int stride, int b, int* ret_num_corners)
7 {
8 xy* corners;
9 int num_corners;
10 int* scores;
11 xy* nonmax;
12
13 corners = fast9_detect(im, xsize, ysize, stride, b, &num_corners);
14 scores = fast9_score(im, stride, corners, num_corners, b);
15 nonmax = nonmax_suppression(corners, scores, num_corners, ret_num_corners);
16
17 free(corners);
18 free(scores);
19
20 return nonmax;
21 }
22 // clang-format on
23