xref: /aosp_15_r20/external/libaom/aom_dsp/flow_estimation/ransac.h (revision 77c1e3ccc04c968bd2bc212e87364f250e820521)
1 /*
2  * Copyright (c) 2016, Alliance for Open Media. All rights reserved.
3  *
4  * This source code is subject to the terms of the BSD 2 Clause License and
5  * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6  * was not distributed with this source code in the LICENSE file, you can
7  * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8  * Media Patent License 1.0 was not distributed with this source code in the
9  * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10  */
11 
12 #ifndef AOM_AOM_DSP_FLOW_ESTIMATION_RANSAC_H_
13 #define AOM_AOM_DSP_FLOW_ESTIMATION_RANSAC_H_
14 
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <math.h>
18 #include <memory.h>
19 #include <stdbool.h>
20 
21 #include "aom_dsp/flow_estimation/flow_estimation.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 bool ransac(const Correspondence *matched_points, int npoints,
28             TransformationType type, MotionModel *motion_models,
29             int num_desired_motions, bool *mem_alloc_failed);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif  // AOM_AOM_DSP_FLOW_ESTIMATION_RANSAC_H_
36