search engine for images

1,032 views

Published on

Search Engine for Images

1 Comment
0 Likes
Statistics
Notes
  • Here is a good and efficient images search engine:
    http://www.wiibeez.com/images.htm
    In this site you'll find 25 images search engines integrated in one page. A cool, fast and efficient IMG research tool.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
1,032
On SlideShare
0
From Embeds
0
Number of Embeds
258
Actions
Shares
0
Downloads
14
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

search engine for images

  1. 1. Search Engine for Images<br />We are given a large database comprising several categories of images like: people, landscape, flowers, buses, trains, food items, animals etc.<br />There are numerous pictures in each category.<br />
  2. 2. Our Goal<br />A user can pick any image (not necessarily inside the database) and our program (the search engine) should be able to pull out pictures from the database that are similar to the query image. <br />
  3. 3. Examples of similar images<br />
  4. 4. Our intention is to produce results as close to human perception as possible.<br />In other words, our search engine automatically categorizes the pictures.<br />
  5. 5. Mathematical Tools Needed<br />The Wavelet Transform. A considerable amount of Linear algebra (particularly Inner product spaces) has to be covered before we are in a position to describe the wavelet transform.<br />The K-means clustering algorithm. This is a powerful statistical tool.<br />
  6. 6. I.T. Tools Needed<br />We chose MATLAB 7.0 for the following reasons:<br />It handles matrices in a convenient manner<br />It supports a powerful programming language<br />It can handle images in almost every format<br />
  7. 7. The Method<br />The core of this search engine is the Integrated Region Matching Scheme described by Wang, Li, and Wiederhold in the paper:<br />SIMPLIcity: Semantics-Sensitive Integrated Matching for Picture Libraries, IEEE, 2001.<br />We now briefly outline the method.<br />
  8. 8. A brief outline of the method<br />Partition a picture into 4x4 blocks and extract feature vectors for each block.<br />Group the feature vectors into a number of regions (using K-means).<br />Compute the signature of the image by combining the features of all its regions.<br />Save this signature to a database.<br />Repeat the process for every picture in the database.<br />
  9. 9. A brief outline of the method<br />The feature vectors contain information regarding colour, texture and shape.<br />The query image given by the user also undergoes the same signature extracting process.<br />Finally distances between the query signature and each image signature are calculated and sorted to give the closest matches.<br />
  10. 10. In the slides that follow we will make the above ideas precise.<br />
  11. 11. What is a Feature vector?<br />It is simply a list of 6 numbers calculated for each 4x4 block.<br />The first three numbers are averages of the Red, Green and Blue components.<br />The next three numbers are the root mean square of wavelet coefficients arising by applying the wavelet transform once to rows and columns of the block. <br />
  12. 12. Meaning of these components<br />The first three numbers hold information about the colour.<br />The next three numbers hold information about the texture. <br />
  13. 13. Image Segmentation<br />This is what you get when K means is applied to the set of feature vectors for various values of K.<br />All these pictures (except the original!) were created in MATLAB.<br />
  14. 14. 7 regions<br />4 regions<br />Original<br />3 regions<br />2 regions<br />
  15. 15. Remark<br />Figuring out an appropriate value of K for any image still remains an open problem in computer vision.<br />But Wang, Li and Weiderhold propose a scheme that calculates a K that works quite well for this experiment. <br />
  16. 16. Integrated Region Matching<br />This method combines the properties of all the regions in a picture to measure the overall similarity between images.<br />The payoff is that the scheme provides robustness against poor segmentation.<br />
  17. 17. Integrated Region Matching<br />Defining a similarity measure is nothing but defining a distance between sets of points (feature vectors) in a higher dimensional space.<br />The idea of distance must be carefully chosen so that it is consistent with a person’s idea of “closeness” of two images. <br />
  18. 18. Integrated Region Matching<br />Defining a similarity measure is nothing but defining a distance between sets of points (feature vectors) in a higher dimensional space.<br />The idea of distance must be carefully chosen so that it is consistent with a person’s idea of “closeness” of two images. <br />
  19. 19. Integrated Region Matching<br />Suppose two images A and B are represented by region sets<br />A=r1,r2,…,rm<br />and<br />B=r′1,r′2,…,r′n<br /> <br />
  20. 20. Integrated Region Matching<br />Denote by dij the distance between ri and r′j.<br />Wang et. al. give a simple prescription for this that they found experimentally.<br />The distance between the images is defined as the weighted sum of region-to-region matches:<br />dA,B=i,jsijdij<br /> <br />
  21. 21. Integrated Region Matching<br />The weights sij are the elements of the significance matrix<br />s11⋯s1n⋮⋱⋮sm1⋯smn<br />Wang et.al. have devised an algorithm to calculate the significance matrix.<br /> <br />
  22. 22. Meaning of the weights<br />The weights sij capture the importance of match. <br />For instance if a region consists of a body of an animal and is matched to various regions in the other picture then body-to-body match will be given more weight than a body-to-background or a body-to-tree match.<br /> <br />
  23. 23. Distance between Regions<br />Two regions r and r′ comprise of several feature vectors. <br />We represent these two regions by single feature vectors f and f′ constructed as follows:<br />The ith component is the average of the ithcomponent of all FVs in that region.<br />Now the distance between r and r′ is given by<br />dr,r′=i=06fi−f′i2<br /> <br />
  24. 24. Experimental Results<br />We coded up this strategy in MATLAB 7.0 and ran the program on a database of 1000 images.<br />Some outputs are shown in the next few slides.<br />The Top left image is the query image.<br />
  25. 25.
  26. 26.
  27. 27.
  28. 28.
  29. 29. Final Remarks<br />One group (Eagle 2) has some original contributions to make:<br />They had come up with their own criteria of calculating the appropriate number of regions for an image. <br />They even implemented their own K-means routine instead of relying on MATLAB’s built-in function.<br />
  30. 30. Final Remarks<br />One of our IAYM student<br />ShubhankarBiswas, NIT, Durgapur<br />has presented this project at the <br />Seminar on Applications of Computer and Embedded Technology<br />organized by the Variable Energy Cyclotron Centre (VECC), Kolkata, in Oct. 2009 (2 months after IAYM 2009). <br />His paper can be viewed at<br />http://www.vecc.gov.in/~sacet09/index_files/Page479.htm<br />He has acknowledged the MSF for all the guidance.<br />

×