Hi I am trying to execute HOG features from an image..
Ältere Kommentare anzeigen
When i try to run the program.. mygradient requires more input arguments..!!! I tried to add.. I=imread('121.jpg'); before function statement..It says you cannot add nested functions here.. How to input the image for my function?? please help.
function [Fx,Fy]=mygradient(I) %correctig gradient on edges I=imadjust(I); [hcol,hrow]=size(I); temp= ones(hcol+2,hrow+2); temp(2:1+hcol,2:1+hrow)=I(:,:);
Fx=filter2([1;0;-1],temp); Fx=Fx(3:hcol,3:hrow); Fy=filter2([1;0;-1]',temp); Fy=Fy(3:hcol,3:hrow);
Akzeptierte Antwort
Weitere Antworten (1)
Dima Lisin
am 22 Feb. 2015
0 Stimmen
There is a built-in function for extracting hog features in the Computer Vision System Toolbox called extractHOGFeatures.
1 Kommentar
SRIVATHSA PRADHAN
am 23 Feb. 2015
Kategorien
Mehr zu Computer Vision Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!