summaryrefslogtreecommitdiff
path: root/macros/extractHOGFeatures.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/extractHOGFeatures.sci')
-rw-r--r--macros/extractHOGFeatures.sci24
1 files changed, 24 insertions, 0 deletions
diff --git a/macros/extractHOGFeatures.sci b/macros/extractHOGFeatures.sci
new file mode 100644
index 0000000..cf7aca6
--- /dev/null
+++ b/macros/extractHOGFeatures.sci
@@ -0,0 +1,24 @@
+function [featureVector] = extractHOGFeatuers(I, varargin)
+ img = mattolist(I);
+ [lhs rhs] = argn(0);
+ if rhs<1 then
+ error(msprintf("Not enough input arguments"));
+ end
+ if rhs>9 then
+ error(msprintf("Too many input arguments"));
+ end
+ l = rhs-1;
+ if(l==0) then
+ featureVector = opencv_extractHOGFeatures(img);
+ elseif (l==2) then
+ featureVector = opencv_extractHOGFeatures(img,varargin(0),varargin(1));
+ elseif (l==4) then
+ featureVector = opencv_extractHOGFeatures(img,varargin(0),varargin(1),varargin(2),varargin(3));
+ elseif (l==6) then
+ featureVector = opencv_extractHOGFeatures(img,varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5));
+ else
+ featureVector = opencv_extractHOGFeatures(img,varargin(0),varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7));
+ end
+
+endfunction
+