Ask Your Question
0

spatial histogram

asked 2013-02-10 07:48:05 -0600

marceloBandeira gravatar image

updated 2013-02-10 09:25:57 -0600

I just spent a lot of time searching for the defition of spatial histogram, and all I found was papers where the spatial histogram is used. On this papers the definition of spatial histogram is made in a high level language which I can't understand.

edit retag flag offensive close merge delete

Comments

did opencv have any function to compute spatial histogram of video frames?

ungtuit gravatar imageungtuit ( 2019-03-23 04:03:41 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-02-10 10:24:11 -0600

berak gravatar image

updated 2013-02-10 10:30:12 -0600

spatial histograms are used to preserve some local information in the image.

instead of doing one histogram for the whole picture, you slice the image into n x n smaller patches, like 7x7, and make a histogram for that pach only.

if you append those small histograms to a single one, that's your spatial histogram.

though it's all 'in one line', the local information (e.g, if something happened in the top left corner) will get saved this way.

you can do that with colors, binary patterns, or whatever featureset you can count into histograms

the lbp face recognition in opencv might me a nice example, here's the paper. :

http://www.ee.oulu.fi/mvg/files/pdf/pdf_730.pdf

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-10 07:48:05 -0600

Seen: 3,025 times

Last updated: Feb 10 '13