# optFlowHorn

## PURPOSE

Calculate optical flow using Horn & Schunck.

## SYNOPSIS

function [Vx,Vy] = optFlowHorn( I1, I2, sigma, show )

## DESCRIPTION

     Calculate optical flow using Horn & Schunck.

     USAGE
      [Vx,Vy] = optFlowHorn( I1, I2, [sigma], [show] )

     INPUTS
      I1, I2      - input images to calculate flow between
      sigma       - [1] amount to smooth by (may be 0)
      show        - [0] figure to use for display (no display if == 0)

     OUTPUTS
      Vx, Vy      - x,y components of flow  [Vx>0->right, Vy>0->down]

     EXAMPLE

     See also OPTFLOWCORR, OPTFLOWLK

     Piotr's Image&Video Toolbox      Version 2.0
     Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- gaussSmooth Applies Gaussian smoothing to a (multidimensional) image.
- im Function for displaying grayscale images.

This function is called by: