vpx/av1/encoder/ransac.h
Sarah Parker f9a961c5d0 Style fixes for global motion experiment
These are in response to a post-commit review in
Ib6664df44090e8cfa4db9f2f9e0556931ccfe5c8

Change-Id: I1e07ccab18558dfdd996547a72a396abe02ed23d
2016-09-16 16:22:24 -07:00

38 lines
1.5 KiB
C

/*
* Copyright (c) 2016 The WebM project authors. All Rights Reserved.
*
* 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.
*/
#ifndef AV1_ENCODER_RANSAC_H_
#define AV1_ENCODER_RANSAC_H_
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <memory.h>
#include "av1/common/warped_motion.h"
typedef int (*RansacFunc)(double *matched_points, int npoints,
int *number_of_inliers, int *best_inlier_mask,
double *best_params);
/* Each of these functions fits a motion model from a set of
corresponding points in 2 frames using RANSAC.*/
int ransac_homography(double *matched_points, int npoints,
int *number_of_inliers, int *best_inlier_indices,
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_