summaryrefslogtreecommitdiff
path: root/macros/KalmanFilter.sci
diff options
context:
space:
mode:
authorshamikam2017-01-16 02:56:17 +0530
committershamikam2017-01-16 02:56:17 +0530
commita6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch)
treee806e966b06a53388fb300d89534354b222c2cad /macros/KalmanFilter.sci
downloadFOSSEE_Image_Processing_Toolbox-master.tar.gz
FOSSEE_Image_Processing_Toolbox-master.tar.bz2
FOSSEE_Image_Processing_Toolbox-master.zip
First CommitHEADmaster
Diffstat (limited to 'macros/KalmanFilter.sci')
-rw-r--r--macros/KalmanFilter.sci25
1 files changed, 25 insertions, 0 deletions
diff --git a/macros/KalmanFilter.sci b/macros/KalmanFilter.sci
new file mode 100644
index 0000000..0275099
--- /dev/null
+++ b/macros/KalmanFilter.sci
@@ -0,0 +1,25 @@
+function [output] = KalmanFilter(varargin)
+ [lhs,rhs] = argn(0)
+ if rhs>10
+ error(msprintf(" Too many input arguments"));
+ end
+ select rhs
+ case 0 then
+ a = opencv_KalmanFilter();
+ case 2 then
+ a = opencv_KalmanFilter(varargin(0),varargin(1));
+ case 4 then
+ a = opencv_KalmanFilter(varargin(0),varargin(1),varargin(2),varargin(3));
+ case 6 then
+ a = opencv_KalmanFilter(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5));
+ case 8 then
+ a = opencv_KalmanFilter(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7));
+ case 10 then
+ a = opencv_KalmanFilter(varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7),varargin(8),varargin(9));
+ end
+
+ d = size(a);
+ for i = 1:d
+ output(:,:,i) = a(i);
+ end
+endfunction