Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Please, don't answer yourself with not a real answer (since it's actually a comment on my post) - please delete your answer and edit your original post with what you just wrote.

But to answer your questions: I don't know about your histogram, maybe use every bin, i.e. histSize = 255, it depends on your images, how do you actually want to identify an object by taking the histogram of the image? Do you have a rigid object? Then maybe just templateMatching would be easier (however may be too time consuming).

On the other hand, your approach with matching descriptors is valid (if you don't have an object with no structure at all)! However you may need a different validation strategy than what you use currently. Try the cross-check, see e.g. http://answers.opencv.org/question/15/how-to-get-good-matches-from-the-orb-feature/ratio-test, or probably better, the ratio-test, see this post: http://answers.opencv.org/question/4829/how-to-filter-freakbruteforcematcher-result/.