Histogram Trouble:
The last few days i've been having some trouble getting histograms to do what i want in OpenCV. However after some building of my own functions specific to my needs i have what i think is conceptually a good setup. However, the results do not agree.
I start by having several labelled images of empty views. I then compose an average image, this takes all the values from each pixel (r,g,b) and averages over all test images. Thus creating an average empty image via supervision.
My intention was then to compare all new images against this average image, to do this i wanted to compare to the average image's histogram rather than he pixels directly, using chi squared. However this has some interesting results, but not good ones.
An empty image that is dark in comparision to the average empty image will be given a high chi squared return, i.e. looks very different, yet one that has the same background as the average image but contains a reasonably large target recieves a low score i.e similar.
Chi Value: 0.017876
Image with Target
Chi Value: 0.333333
Blank Image
Average Image
Still working on debug info any possible hints for improvement here would be helpful.
Individual project for CSE190a at UCSD Winter Quarter 2008. The project is based upon the design and requirements specified by the UCSD AUVSI team that is entering the AUVSI UAS competition for UAV reconnaissance.
Thursday, January 24, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment