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/extractHOGFeatures.sci | |
download | FOSSEE_Image_Processing_Toolbox-master.tar.gz FOSSEE_Image_Processing_Toolbox-master.tar.bz2 FOSSEE_Image_Processing_Toolbox-master.zip |
Diffstat (limited to 'macros/extractHOGFeatures.sci')
-rw-r--r-- | macros/extractHOGFeatures.sci | 24 |
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 + |