matlab 查图像数据,基于图像内容的检索 - 查询

本文介绍了一个基于颜色特征的简单图像检索方法,用户通过提供示例图片进行搜索。通过3D HSV直方图比较,实现图像内容搜索,并利用重叠阈值和相似度计算返回相关结果。数据库包含1000多张图片,支持用户自定义查询数量。
摘要由CSDN通过智能技术生成

Image retrieval - Query by Example Demo

Content-based image retrieval is the task of searching images in databases by analyzing the image contents. In this demo, a simple image retrieval method is presented, based on the color distribution of the images. The user simply provides an "example" image and the search is based upon that example (query by image example). For this first version of the demo no relevance feedback is used.

Almost 1000 images have been used for populating the database. For each image a 3-D histogram of it's HSV values is computed. At the end of the training stage, all 3D HSV histograms are stored in the same .mat file.

In order to retrieve M (user-defined) query results, the following steps are executed:

The 3D (HSV) histogram of the query image is computed. Then, the number of bins in each direction (i.e., HSV space)is duplicated by means of interpolation.

For each image i in the database:

Load its histogram Hist(i).

Use interpolation for duplicating the number of bins in each direction.

For each 3-D hist bin, compute the distance (D) between the hist of the query image and the i-th database image.

Keep only distances (D2) for which, the respective hist bins of the query image are larger than a predefined threshold T (let L2 the number of these distances).

Use a 2nd threshold: find the distance (D3) values which are smaller than T2, and let L3 be the number of such values.

The similarity measure is defined as: S(i) = L2 * average(D3) / (L3^2).

Sort the similarity vector and prompt the user with the images that have the M smaller S values.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值