I am trying to extract HOG features from an image in MATLAB R2013a.
This is the code I copied from MATLAB documentation website:
input='1.png';
Z=imread(input);
%Z=rgb2gray(Z);
[featureVector, hogVisualization] = extractHOGFeatures(Z);
The error I get is:
Undefined function
'extractHOGFeatures'for input arguments of type 'uint8'.Error in
hogfeatureextractor(line 6)[featureVector, hogVisualization] = extractHOGFeatures(Z);
I think this is due to the computer vision toolbox not installed properly or it might be some other reason that I am not aware of. I have installed MATLAB under Ubuntu 14.04.
I have also used ver to determine if I have the computer vision toolbox installed and I do:
MATLAB Version: 8.1.0.604 (R2013a)
MATLAB License Number: 724504
Operating System: Linux 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------------------------
MATLAB Version 8.1 (R2013a)
Simulink Version 8.1 (R2013a)
Aerospace Blockset Version 3.11 (R2013a)
Aerospace Toolbox Version 2.11 (R2013a)
Bioinformatics Toolbox Version 4.3 (R2013a)
Communications System Toolbox Version 5.4 (R2013a)
Computer Vision System Toolbox Version 5.2 (R2013a)
As such, I'm not sure why I'm experiencing this error. Can someone help me out?