diff options
author | shamikam | 2017-01-16 02:56:17 +0530 |
---|---|---|
committer | shamikam | 2017-01-16 02:56:17 +0530 |
commit | a6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch) | |
tree | e806e966b06a53388fb300d89534354b222c2cad /macros/opticalFlowFarneback.sci | |
download | FOSSEE_Image_Processing_Toolbox-a6df67e8bcd5159cde27556f4f6a315f8dc2215f.tar.gz FOSSEE_Image_Processing_Toolbox-a6df67e8bcd5159cde27556f4f6a315f8dc2215f.tar.bz2 FOSSEE_Image_Processing_Toolbox-a6df67e8bcd5159cde27556f4f6a315f8dc2215f.zip |
Diffstat (limited to 'macros/opticalFlowFarneback.sci')
-rw-r--r-- | macros/opticalFlowFarneback.sci | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/opticalFlowFarneback.sci b/macros/opticalFlowFarneback.sci new file mode 100644 index 0000000..1bc2ccf --- /dev/null +++ b/macros/opticalFlowFarneback.sci @@ -0,0 +1,21 @@ +function opticalFlowFarneback(varargin) + [lhs rhs] = argn(0); + if(rhs>12) + error(msprintf("Too many input arguments")); + end + if(rhs==0) then + opencv_opticalFlowFarneback(); + elseif (rhs==2) then + opencv_opticalFlowFarneback(varargin(0),varargin(1)); + elseif(rhs==4) then + opencv_opticalFlowFarneback(varargin(0),varargin(1),varargin(2),varargin(3)); + elseif(rhs==6) then + opencv_opticalFlowFarneback(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5)); + elseif(rhs==8) then + opencv_opticalFlowFarneback(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7)); + elseif(rhs==10) then + opencv_opticalFlowFarneback(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7),varargin(8),varargin(9)); + elseif(rhs==12) then + opencv_opticalFlowFarneback(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7),varargin(8),varargin(9),varargin(10),varargin(11)); + end +endfunction |