2016-08-10 03:40:53 +03:00
|
|
|
/*
|
2016-09-06 21:25:04 +03:00
|
|
|
* Copyright (c) 2016 The WebM project authors. All Rights Reserved.
|
2016-08-10 03:40:53 +03:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
*/
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#ifndef AV1_ENCODER_RANSAC_H_
|
|
|
|
#define AV1_ENCODER_RANSAC_H_
|
2016-08-10 03:40:53 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <memory.h>
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#include "av1/common/warped_motion.h"
|
2016-08-10 03:40:53 +03:00
|
|
|
|
2016-09-06 21:25:04 +03:00
|
|
|
typedef int (*RansacFunc)(double *matched_points, int npoints,
|
2016-08-10 03:40:53 +03:00
|
|
|
int *number_of_inliers, int *best_inlier_mask,
|
2016-09-06 21:25:04 +03:00
|
|
|
double *best_params);
|
2016-08-10 03:40:53 +03:00
|
|
|
|
|
|
|
/* Each of these functions fits a motion model from a set of
|
|
|
|
corresponding points in 2 frames using RANSAC.*/
|
2016-09-06 21:25:04 +03:00
|
|
|
int ransac_homography(double *matched_points, int npoints,
|
2016-08-10 03:40:53 +03:00
|
|
|
int *number_of_inliers, int *best_inlier_indices,
|
2016-09-06 21:25:04 +03:00
|
|
|
double *best_params);
|
|
|
|
int ransac_affine(double *matched_points, int npoints, int *number_of_inliers,
|
|
|
|
int *best_inlier_indices, double *best_params);
|
|
|
|
int ransac_rotzoom(double *matched_points, int npoints, int *number_of_inliers,
|
|
|
|
int *best_inlier_indices, double *best_params);
|
|
|
|
int ransac_translation(double *matched_points, int npoints,
|
|
|
|
int *number_of_inliers, int *best_inlier_indices,
|
|
|
|
double *best_params);
|
|
|
|
#endif // AV1_ENCODER_RANSAC_H_
|