Code covered by the BSD License
-
Affine Optic Flow Demonstrati...
-
affine_flowdisplay(flow, im, ...
AFFINE_FLOWDISPLAY Display affine flow field.
-
affine_flowedgedisplay(flow, ...
AFFINE_FLOWEDGEDISPLAY displays image match under affine flow
-
exindex(arr, varargin)
EXINDEX extended array indexing
-
gradients_xyt(image1, image2,...
GRADIENTS_XYT Estimate spatial and temporal grey-level gradients
-
gsmooth2(im, sigmas, varargin...
GSMOOTH2 Gaussian image smoothing
-
imtransform_same(im, t, inter...
IMTRANSFORM_SAME transforms an image into the original coordinates
-
logsampback(logarr, rmin, rma...
LOGSAMPBACK Compute reverse of log-polar transform of image
-
logsample(arr, rmin, rmax, xc...
LOGSAMPLE Compute log-polar transform of image
-
logtform(rmin, rmax, nr, nw)
LOGTFORM makes a log-polar transform structure for imtransform
-
setProps(obj, varargin)
setProps sets object properties
-
affine_flow
-
Contents.m
-
View all files
Affine optic flow
by David Young
26 Mar 2010
(Updated 09 Dec 2011)
Estimates the parameters of an affine (first-order) optic flow model from two images.
|
Watch this File
|
| File Information |
| Description |
An affine (or first-order) optic flow model has 6 parameters, describing image translation, dilation, rotation and shear. The class affine_flow provides methods to estimates these parameters for two frames of an image sequence.
The class implements a least-squares fit of the parameters to estimates of the spatial and temporal grey-level gradients. This is an extension of the well-known Lucas-Kanade method. The images are either sampled conventionally, on a rectilinear grid, or on a log-polar grid. In the latter case, the class may iteratively refine its estimates by moving the sampling grid to track the motion. Options to specify a region of interest and smoothing and sampling parameters are provided.
The file includes a demonstration of the class, and test images for this. The functions for smoothing images and estimating gradients may be useful independently, and log-polar sampling functions are included (and are available separately in submission 27023). |
| Required Products |
Image Processing Toolbox
|
| MATLAB release |
MATLAB 7.10 (2010a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 30 Mar 2010 |
Fixed bug in use of ROI, allowed ROI in conjunction with log-polar sampling, simplified gradient computation by using exindex, minor changes to demo. |
| 09 May 2010 |
Changed from a function to a class, for more efficient application to image sequences. (Argument checking etc. can be moved outside a loop, and some intermediate computations can be saved for later use.) |
| 09 Dec 2011 |
Fixed bug which caused error when sample step was greater than 1.
Minor corrections to comments.
Changed order of arguments in gsmooth2 and gradients_xyt. |
|
Contact us at files@mathworks.com