LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Histogram of Oriented Gradients (HoG) - weighted histograms

Hi, 

 

We are currently working on applying Histogram of Oriented Gradients to a collection of images. 

We extracted angles and magnitude of all gradients of an image into two 2D arrays.

 

Next, we would like to create a weighted histogram of the angles: the higher the gradient magnitude at a given location, the stronger the vote for that particular angle.

An important fact to keep in mind is that this needs to be done over overlapping windows.

 

Our questions are: 

- is there a VI that allows taking a window to make certain computations, then shift that window by a certain amount (defined by the user)?

Convolute 2D slides windows around an image by shifting by 1. We would like to shift by x amount.

 

- is there a VI to implement weighted histograms?

We have two 2D-arrays: one containing the angles to be binned, and the other containing the weights.

 

Your help is much appreciated,

 

Best regards,

 

N&A

 

0 Kudos
Message 1 of 9
(3,991 Views)

Hi,

 

There is a Histogram VI that can be found on the Sound and Vibration palette.  However, if you don't have this, you could try writing your data to a spreadsheet and creating a plot there.

 

For your first question, could you elaborate a little?  What kind of windows are these?  Are they VI Front Panels?

 

Best,

Jeff S.
National Instruments
0 Kudos
Message 2 of 9
(3,972 Views)

Sorry for the late response, 

We implemented everything manually. Once we are sure our implementation of HOG is correct and complete, we will share it here.

 

0 Kudos
Message 3 of 9
(3,957 Views)

That's great!  And thank you for sharing your solution with the community!

Jeff S.
National Instruments
0 Kudos
Message 4 of 9
(3,947 Views)

We finished HOG a couple weeks ago. We really want to share it with the community, unfortunately, the company we work at considers it their intellectual property...

If anybody has any issue developping their own version of HoG, please let us know.

0 Kudos
Message 5 of 9
(3,918 Views)

hi

i am studying HOG method to detect human.

but it's difficult to me. so, can you share sample HOG.vi?

thanks.

0 Kudos
Message 6 of 9
(3,208 Views)

Hi,

I am studying this HOG right now . Do you have any solutions for the block and cells windows ? Thank you 

0 Kudos
Message 7 of 9
(2,197 Views)

There's another discussion where someone implemented this in a LabVIEW DLL.

0 Kudos
Message 8 of 9
(2,179 Views)

Hi,

About the labview DLL  , Is it the openCV ? Thank you for helping  . 

0 Kudos
Message 9 of 9
(2,167 Views)