• 大小: 2.49MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-14
  • 语言: Matlab
  • 标签: 光流  

资源简介

光流算法的matlab实现,并且有使用demo和方法介绍

资源截图

代码片段和文件信息

function uvo = estimate_flow_demo(method iSeq seqName varargin)
%ESTIMATE_FLOW_DEMO   Optical flow estimation demo program
%
% output UV is an M*N*2 matrix. UV(::1) is the horizontal flow and
%   UV(::2) is the vertical flow.
%
% Example
% -------
% uv = estimate_flow_demo; or estimate_flow_demo;
% reads the color RubberWhale sequence and uses default parameters and
% default method “Classic+NL-Fast“ 

% same as
% uv = estimate_flow_demo(‘classic+nl-fast‘);
%
% uv = estimate_flow_demo(‘classic+nl-fast‘ 4 ‘middle-other‘);
%
% uv = estimate_flow_demo(‘classic+nl-fast‘ 4 ‘middle-other‘ ‘lambda‘ 3 ‘pyramid_levels‘ 5);
% takes user-defined parameters 
%
% Method can be
%   ‘classic+nl-fast‘ (default)  ‘classic+nl‘ ‘classic+nl-full‘
%   ‘classic++‘  ‘classic-c‘  ‘classic-l‘/‘ba‘ ‘hs‘
%
% iSeq can ben 1 to 12: selects the sequence in the following cell arrays to process
% % training data
% SeqName = ‘middle-other‘ 
%           {‘Venus‘ ‘Dimetrodon‘   ‘Hydrangea‘    ‘RubberWhale‘...
%            ‘Grove2‘ ‘Grove3‘ ‘Urban2‘ ‘Urban3‘ ...
%            ‘Walking‘ ‘Beanbags‘     ‘DogDance‘     ‘MiniCooper‘};
% % test data
% SeqName = ‘middle-eval‘ 
%           {‘Army‘  ‘Mequon‘ ‘Schefflera‘ ‘Wooden‘  ‘Grove‘ ‘Urban‘ ...
%            ‘Yosemite‘  ‘Teddy‘ ‘Basketball‘  ‘Evergreen‘  ‘Backyard‘  ‘Dumptruck‘};

% ‘lambda‘                trade-off (regularization) parameter; larger produces smoother flow fields 
% ‘sigma_d‘               parameter of the robust penalty function for the spatial term
% ‘sigma_s‘               parameter of the robust penalty function for the data term
% ‘pyramid_levels‘        pyramid levels for the quadratic formulation; default is automatic 
% ‘pyramid_spacing‘       downsampling ratio up each pyramid level for the quadratic formulation; default is 2
% ‘gnc_pyramid_levels‘    pyramid levels for the non-quadratic formulation; default is 2
% ‘gnc_pyramid_spacing‘   downsampling ratio up each pyramid level for the non-quadratic formulation; default is 1.25
%
%
% References:
% -----------
% Sun D.; Roth S. & Black M. J. “Secrets of Optical Flow Estimation and
%   Their Principles“ IEEE Int. Conf. on Comp. Vision & Pattern Recognition 2010  

% Sun D.; Roth S. & Black M. J. “A Quantitative Analysis of Current
%   Practices in Optical Flow Estimation and The Principles Behind Them“ 
%   Technical Report Brown-CS-10-03 2010   
%
% Authors: Deqing Sun Department of Computer Science Brown University
% Contact: dqsun@cs.brown.edu
% $Date: $
% $Revision: $
%
% Copyright 2007-2010 Brown University Providence RI. USA

%                          All Rights Reserved

% All commercial use of this software whether direct or indirect is
% strictly prohibited including without limitation incorporation into in
% a commercial product use in a commercial service or production of other
% artifacts for commercial purposes.     
%
% Permission to use copy modify and distribute this software a

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-06-11 21:24  flow_code\
     目录           0  2010-06-11 20:39  flow_code\@alt_ba_optical_flow\
     目录           0  2010-06-11 01:47  flow_code\@alt_ba_optical_flow\private\
     文件        3082  2010-06-11 20:38  flow_code\@alt_ba_optical_flow\parse_input_parameter.m
     文件        2456  2010-06-11 20:36  flow_code\@alt_ba_optical_flow\display.m
     文件        2762  2010-06-11 20:38  flow_code\@alt_ba_optical_flow\subsasgn.m
     文件        2689  2010-06-11 20:38  flow_code\@alt_ba_optical_flow\subsref.m
     文件        4915  2010-06-11 20:37  flow_code\@alt_ba_optical_flow\flow_operator.m
     文件        7089  2010-06-11 20:36  flow_code\@alt_ba_optical_flow\compute_flow.m
     文件        6539  2010-06-11 20:36  flow_code\@alt_ba_optical_flow\compute_flow_base.m
     文件        3101  2010-06-11 20:37  flow_code\@alt_ba_optical_flow\evaluate_log_posterior.m
     文件        3023  2010-06-11 20:37  flow_code\@alt_ba_optical_flow\evalaute_new_log_posterior.m
     文件        5129  2010-06-11 21:16  flow_code\@alt_ba_optical_flow\alt_ba_optical_flow.m
     目录           0  2010-06-11 01:25  flow_code\@ba_optical_flow\
     目录           0  2010-06-11 01:26  flow_code\@ba_optical_flow\private\
     文件        3082  2010-06-11 20:31  flow_code\@ba_optical_flow\parse_input_parameter.m
     文件        2442  2010-06-11 20:28  flow_code\@ba_optical_flow\display.m
     文件        2766  2010-06-11 20:32  flow_code\@ba_optical_flow\subsasgn.m
     文件        2685  2010-06-11 20:34  flow_code\@ba_optical_flow\subsref.m
     文件        4770  2010-06-11 20:31  flow_code\@ba_optical_flow\flow_operator.m
     文件        6648  2010-06-11 20:27  flow_code\@ba_optical_flow\compute_flow.m
     文件        5727  2010-06-11 20:28  flow_code\@ba_optical_flow\compute_flow_base.m
     文件        3117  2010-06-11 20:29  flow_code\@ba_optical_flow\evaluate_log_posterior.m
     文件        3052  2010-06-11 20:31  flow_code\@ba_optical_flow\flow_operator_test.m
     文件        4904  2010-06-11 20:20  flow_code\@ba_optical_flow\ba_optical_flow.m
     文件        3494  2010-06-11 20:29  flow_code\@ba_optical_flow\evaluate_log_posterior_grad.m
     文件        2911  2010-06-11 20:30  flow_code\@ba_optical_flow\evaluate_log_posterior_grad_test.m
     文件        2265  2010-06-11 20:29  flow_code\@ba_optical_flow\estimate_flow_gradient_ascent.m
     目录           0  2010-06-11 01:39  flow_code\@classic_nl_optical_flow\
     目录           0  2010-06-11 01:37  flow_code\@classic_nl_optical_flow\private\
     文件        2459  2010-06-11 20:20  flow_code\@classic_nl_optical_flow\display.m
............此处省略115个文件信息

评论

共有 条评论