vpx/vp9/encoder/vp9_corner_detect.h
Deb Mukherjee 1fc70e47cd Adds code for corner detection and ransac
This code is to start experiments with global motion models.

The corner detection can be either fast_9 or Harris.
Corner matching is currently based on normalized correlation.
Three flavors of ransac are used to estimate either a
homography (8-param), or an affine model (6-param) or a
rotation-zoom only affine model (4-param).

The highest level API for the library is in vp9_global_motion.h,
where there are two functions - one for computing a single model
and another for computing multiple models up to a maximum number
provided or until a desired inlier probability is achieved.

Change-Id: I3f9788ec2dc0635cbc65f5c66c6ea8853cfcf2dd
2015-02-10 00:48:56 -08:00

25 lines
859 B
C

/*
* Copyright (c) 2015 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 VP9_ENCODER_VP9_CORNER_DETECT_H
#define VP9_ENCODER_VP9_CORNER_DETECT_H
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
int HarrisCornerDetect(unsigned char *buf, int width, int height, int stride,
int *points, int max_points);
int FastCornerDetect(unsigned char *buf, int width, int height, int stride,
int *points, int max_points);
#endif // VP9_ENCODER_VP9_CORNER_DETECT_H