
Addressing comments, fixing style issues Change-Id: I91b72ab5cdf80d68476858f442616ab3af41e709
29 lines
1.3 KiB
C
29 lines
1.3 KiB
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.
|
|
*/
|
|
|
|
/*
|
|
Top level interface for computing optical flow. This function
|
|
takes in two images and returns the pixelwise motion field that
|
|
describes the motion between the two images. n_levels corresponds
|
|
to the number of levels of an image pyramid to use for coarse to fine
|
|
refinement. If no coarse to fine refinement is desired, this should be
|
|
set to 1.
|
|
|
|
Note that the warping needs to be done by SUBTRACTING the flow vectors
|
|
from the locations in the second image passed in (ref) in order to produce
|
|
a prediction for the first image passed in (frm).
|
|
|
|
To compute the motion vectors for a single pixel, see the function
|
|
optical_flow_per_pixel in vp9_opticalflow.c.
|
|
*/
|
|
void compute_flow(unsigned char *frm, unsigned char *ref,
|
|
double *u, double *v, double *confidence, int width,
|
|
int height, int frm_stride, int ref_stride, int n_levels);
|