File: fast.c

package info (click to toggle)
aom 1.0.0.errata1-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,460 kB
  • sloc: ansic: 209,308; cpp: 91,831; asm: 11,682; python: 3,376; perl: 1,816; sh: 1,335; makefile: 38; javascript: 32
file content (22 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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