/work/svt-av1/third_party/fastfeat/fast.c
Line | Count | Source |
1 | | // clang-format off |
2 | | #include <stdlib.h> |
3 | | #include "fast.h" |
4 | | |
5 | | |
6 | | xy* svt_aom_fast9_detect_nonmax(const byte* im, int xsize, int ysize, int stride, int b, int* ret_num_corners) |
7 | 0 | { |
8 | 0 | xy* corners; |
9 | 0 | int num_corners = 0; |
10 | 0 | int* scores; |
11 | 0 | xy* nonmax; |
12 | |
|
13 | 0 | corners = svt_aom_fast9_detect(im, xsize, ysize, stride, b, &num_corners); |
14 | 0 | scores = svt_aom_fast9_score(im, stride, corners, num_corners, b); |
15 | 0 | nonmax = svt_aom_nonmax_suppression(corners, scores, num_corners, ret_num_corners); |
16 | |
|
17 | 0 | free(corners); |
18 | 0 | free(scores); |
19 | |
|
20 | 0 | return nonmax; |
21 | 0 | } |
22 | | // clang-format on |