Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Hog descriptor

Subject: Hog descriptor

From: amira ali

Date: 26 Apr, 2013 11:42:07

Message: 1 of 1

can anyone help me please,i use hog descriptor to descripe detected interest poins ,

hog descriptor steps:
1- take image and compute gradient of graysacle input image then descripe it.

 how can i update it to compute HOF (histogram of optical flow)??as the ouput of optical flow is gradient magnitudes from optical flow fields , so really i compute gradient for opticl flow
so i don't need to compute gradient again in embeded code of HOG

keypoints = cv.FAST(im,'Threshold',30,'NonMaxSupression',1);
hog = cv.HOGDescriptor('WinSize',[16,16],'BlockSize',[8,8],'BlockStride',[4,4],'CellSize',[4,4] );
descriptors = hog.compute(im, 'Locations', {});first shape decriptor

prevIm = cv.cvtColor(imread('test\img1.jpeg'),'RGB2GRAY');
nextIm = cv.cvtColor(imread('test\img2.jpeg'),'RGB2GRAY');
flow = cv.calcOpticalFlowFarneback(prevIm, nextIm);
****magnitudeImage = (Fx.^2 + Fy.^2 ).^0.5;
descriptors2 = hog.compute(im2uint8(magnitudeImage) , 'Locations', {});???????????/is this true****second motion descriptor

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us