Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
OpenCV 4 Computer Vision Application Programming Cookbook - Fourth Edition

You're reading from  OpenCV 4 Computer Vision Application Programming Cookbook - Fourth Edition

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781789340723
Pages 494 pages
Edition 4th Edition
Languages
Authors (2):
David Millán Escrivá David Millán Escrivá
Profile icon David Millán Escrivá
Robert Laganiere Robert Laganiere
Profile icon Robert Laganiere
View More author details

Table of Contents (17) Chapters

Preface Playing with Images Manipulating the Pixels Processing Color Images with Classes Counting the Pixels with Histograms Transforming Images with Morphological Operations Filtering the Images Extracting Lines, Contours, and Components Detecting Interest Points Describing and Matching Interest Points Estimating Projective Relations in Images Reconstructing 3D Scenes Processing Video Sequences Tracking Visual Motion Learning from Examples OpenCV Advanced Features Other Books You May Enjoy

Retrieving similar images using histogram comparison

Content-based image retrieval is an important problem in computer vision. It consists of finding a set of images that present content that is similar to a given query image. Since we have learned that histograms constitute an effective way to characterize an image's content, it makes sense to think that they can be used to solve content-based retrieval problems.

The key here is to be able to measure the similarity between two images by simply comparing their histograms. A measurement function that will estimate how different, or how similar, two histograms are will need to be defined. Various measures have been proposed in the past, and OpenCV proposes a few of them in its implementation of the cv::compareHist function.

How...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}