Rank: 148 based on 383 downloads (last 30 days) and 2 files submitted
photo

Leo

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Leo View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 Aug 2012 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo gradients, histogram of oriented..., histograms, computer vision, object detection, image processing 226 34
  • 4.8
4.8 | 5 ratings
11 Apr 2012 Random Forest Creates an ensemble of cart trees similar to the matlab TreeBagger class. Author: Leo cart trees, random forest, regression tree, machine learning, classification tree, decision tree 157 54
  • 4.54545
4.5 | 14 ratings
Comments and Ratings by Leo View all
Updated File Comments Rating
18 Mar 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo

Hi Victor,

It is a bit difficult to comment on the VL code as it isnt mine, but I think the difference comes from how the normalization of the cells on the boundary is treated.

The cells on the left and bottom boundary only belong to two blocks (or in some cases one). For example there is no block starting at a cell on the left boundary and extending to the left as that would take it outside the image. Thus a 256x256 image only has 63*63 blocks of size 2x2.

If I understand the VL code correctly ,hog.c line 927 and onward, it assumes that every cell belongs to 4 blocks. For the case of boudary cells, where this assumption does not hold, certain block normalization schemes are simply repeated to make up the four blocks, see lines 932-935. So if I am correct, for boundary cells, there should be repetitions in the final descriptor of the VL code. Though obviously you shouldnt cite me on this :)

Hope this helps.

Leo

29 Jan 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo

Hi Anas,

I am afraid tracking isnt my field soI dont really know. It would depend a lot on the resolution of the camera andhow many fps you want to process. In general HoGs are computationally expensive so I wouldn't be suprised if simpler descriptors are used in practice.

Leo

22 Dec 2012 Random Forest Creates an ensemble of cart trees similar to the matlab TreeBagger class. Author: Leo

Hi fairy,

lcc is not a cpp compiler. Using the Visual Studio compiler I think the following should do the trick.

in GBCC.cpp change line 24 to

saved_logs[j] = log(j+1)/log(2);

line 115 to

if (diff_labels[nl]>0) bh-=diff_labels[nl]*(log(diff_labels[nl])/log(2)-log(sum_W)/log(2));

line 151 to

if(diff_labels_l[nl]>0) ch-=(diff_labels_l[nl])*(log(diff_labels_l[nl])/log(2)-log(sum_l)/log(2));

and line 152 to

if(diff_labels_r[nl]>0) ch-=(diff_labels_r[nl])*(log(diff_labels_r[nl])/log(2)-log(sum_W-sum_l)/log(2));

Hope this solves it.

Leo

22 Dec 2012 Random Forest Creates an ensemble of cart trees similar to the matlab TreeBagger class. Author: Leo

Hi fairy,

Could you copy paste the exact error message you get when running mx_compile_cartree.m ?

Leo

18 Dec 2012 Random Forest Creates an ensemble of cart trees similar to the matlab TreeBagger class. Author: Leo

Hi fairy,

It would seem that the function is not in matlab's search path. You can run

addpath(genpath(cd))

Leo

Comments and Ratings on Leo's Files View all
Updated File Comment by Comments Rating
19 Mar 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo victorp

Leo, thanks lot!

18 Mar 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo Leo

Hi Victor,

It is a bit difficult to comment on the VL code as it isnt mine, but I think the difference comes from how the normalization of the cells on the boundary is treated.

The cells on the left and bottom boundary only belong to two blocks (or in some cases one). For example there is no block starting at a cell on the left boundary and extending to the left as that would take it outside the image. Thus a 256x256 image only has 63*63 blocks of size 2x2.

If I understand the VL code correctly ,hog.c line 927 and onward, it assumes that every cell belongs to 4 blocks. For the case of boudary cells, where this assumption does not hold, certain block normalization schemes are simply repeated to make up the four blocks, see lines 932-935. So if I am correct, for boundary cells, there should be repetitions in the final descriptor of the VL code. Though obviously you shouldnt cite me on this :)

Hope this helps.

Leo

17 Mar 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo victorp

Hi Leo,

i'm trying to use your code. For an image of size 256x256, with default parameters i'm obtaining a vector of size - 142884 (63*63*9*4). However, using the vl_hog function (from VLFeat.org) with the same parameters im getting a vector of size-147456 (64*64*9*4). Could you clarify this? Furthermore, could you tell me for example how to fold the output vector back (as 3D) in case of signed case. Thanks,
Best regards,
V.

06 Mar 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo Bhagyalekshmi

how to write it in matlab
plz help to run the code in matlab

03 Mar 2013 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo Gaurav

Hi Leo..do u have MATLAB code for HOG descriptor??

Top Tags Applied by Leo
cart trees, classification tree, computer vision, decision tree, gradients
Files Tagged by Leo View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 Aug 2012 Histograms of Oriented Gradients mex function for calculating histograms of (oriented) gradients (Dalal & Triggs CVPR 2005). Author: Leo gradients, histogram of oriented..., histograms, computer vision, object detection, image processing 226 34
  • 4.8
4.8 | 5 ratings
11 Apr 2012 Random Forest Creates an ensemble of cart trees similar to the matlab TreeBagger class. Author: Leo cart trees, random forest, regression tree, machine learning, classification tree, decision tree 157 54
  • 4.54545
4.5 | 14 ratings

Contact us