• 大小: 3.24MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-07
  • 语言: 其他
  • 标签: 光流文章  代码  

资源简介

孙德清文章 Secrets of Optical Flow Estimation and Their Principles 文章及其代码,更深的了解optical flow 原理及严谨的代码,对于光流的学习有很大帮助

资源截图

代码片段和文件信息

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      804746  2014-01-27 09:37  cvpr_2010_flow.pdf
     目录           0  2010-06-11 21:24  flow_code\
     目录           0  2010-06-11 20:39  flow_code\@alt_ba_optical_flow\
     文件        5129  2010-06-11 21:16  flow_code\@alt_ba_optical_flow\alt_ba_optical_flow.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
     文件        2456  2010-06-11 20:36  flow_code\@alt_ba_optical_flow\display.m
     文件        3023  2010-06-11 20:37  flow_code\@alt_ba_optical_flow\evalaute_new_log_posterior.m
     文件        3101  2010-06-11 20:37  flow_code\@alt_ba_optical_flow\evaluate_log_posterior.m
     文件        4915  2010-06-11 20:37  flow_code\@alt_ba_optical_flow\flow_operator.m
     文件        3082  2010-06-11 20:38  flow_code\@alt_ba_optical_flow\parse_input_parameter.m
     目录           0  2010-06-11 01:47  flow_code\@alt_ba_optical_flow\private\
     文件        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
     目录           0  2010-06-11 01:25  flow_code\@ba_optical_flow\
     文件        4904  2010-06-11 20:20  flow_code\@ba_optical_flow\ba_optical_flow.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
     文件        2442  2010-06-11 20:28  flow_code\@ba_optical_flow\display.m
     文件        2265  2010-06-11 20:29  flow_code\@ba_optical_flow\estimate_flow_gradient_ascent.m
     文件        3117  2010-06-11 20:29  flow_code\@ba_optical_flow\evaluate_log_posterior.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
     文件        4770  2010-06-11 20:31  flow_code\@ba_optical_flow\flow_operator.m
     文件        3052  2010-06-11 20:31  flow_code\@ba_optical_flow\flow_operator_test.m
     文件        3082  2010-06-11 20:31  flow_code\@ba_optical_flow\parse_input_parameter.m
     目录           0  2010-06-11 01:26  flow_code\@ba_optical_flow\private\
     文件        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
     目录           0  2010-06-11 01:39  flow_code\@classic_nl_optical_flow\
     文件        5848  2010-06-11 21:16  flow_code\@classic_nl_optical_flow\classic_nl_optical_flow.m
............此处省略116个文件信息

评论

共有 条评论