Fast Motion Detection(bugs fixed)
by Arash Jalalian
01 Aug 2007
(Updated 01 Aug 2007)
this script used a new fast block matching algorithm with dynamic search patterns to obtain motion v
|
Watch this File
|
| File Information |
| Description |
this script used a new fast block matching algorithm with dynamic search patterns to obtain motion vectors for each blocks.
[rep_motion motion_vector] = fastMV(im1, im2, w)
1. check with big diamond.
2. check with one of the hexagon subject to previous results.
3. check with small diamond.
'im1' is base frame of a video and 'im2' is the second frame. and 'w' is
the window size. 'rep_motion' is the representative motion vector and
'motion_vector' declare motion vectors for each block of image.
Example:
im1 = imread('frame001.jpg');
im2 = imread('frame002.jpg');
w = 16;
[rep_m m_vector] = fastMV(im1, im2, w);
files: fastMV.m, frame01.pgm, frame02.pgm |
| Required Products |
Image Processing Toolbox
|
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 17 Jun 2010 |
w w
|
|
|
| 08 Sep 2010 |
Abel roc
|
|
|
|
Contact us at files@mathworks.com