1 / 27

Content-Based Image Retrieval

Content-Based Image Retrieval. QBIC Homepage http://wwwqbic.almaden.ibm.com/ The State Hermitage Museum http://www.hermitagemuseum.org/fcgi-bin/ db2www/qbicSearch.mac/qbic?selLang=English. Image Database Queries.

sylvie
Télécharger la présentation

Content-Based Image Retrieval

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Content-Based Image Retrieval • QBIC Homepage • http://wwwqbic.almaden.ibm.com/ • The State Hermitage Museum • http://www.hermitagemuseum.org/fcgi-bin/ • db2www/qbicSearch.mac/qbic?selLang=English

  2. Image Database Queries Query By Keyword: Some textual attributes (keywords) should be maintained for each image. The image can be indexed according to these attributes, so that they can be rapidly retrieved when a query is issued. This type of query can be expressed in Structured Query Language (SQL). Query By Example (QBE): User just show the system a sample image, then the system should be able to return similar images or images containing similar objects.

  3. Image Distance & Similarity Measures • Color Similarity • Texture Similarity • Shape Similarity • Object & Relationship similarity

  4. Color Similarity • Color percentages matching: R:20%, G:50%, B:30% • Color histogram matching • Dhist(I,Q)=(h(I)-h(Q))TA(h(I)-h(Q)) • A is a similarity matrix colors that are very similar should have similarity values close to one.

  5. Color Example

  6. Color Layout Similarity • Color layout matching: compares each grid square of the query to the corresponding grid square of a potential matching image and combines the results into a single image distance  • where CI(g) represents the color in grid square g of a database image I and CQ(g) represents the color in the corresponding grid square g of the query image Q. some suitable representations of color are • Mean • Mean and standard deviation • Multi-bin histogram

  7. Color LayoutExample1

  8. Color Layout Example2

  9. Texture Similarity • Pick and click • Suppose T(I) is a texture description vector which is a vector of numbers that summarizes the texture in a given image I (for example: Laws texture energy measures), then the texture distance measure is defined by • Texture layout

  10. IQ based on Pick and Click

  11. Shape Similarity • Shape Histogram • Boundary Matching • Sketch Matching

  12. 1. Shape Histogram • Projection matching • Horizontal & vertical projection: Each row and each column become a bin in the histogram. The count that is stored in a bin is the number of 1-pixels that appear in that row or column. • Diagonal projection: An alternative is to define the bins from the top left to the bottom right of the shape. • Size invariant the number of row bins and the number of column bins in the bounding box can be fixed, histograms can be normalized before matching. • Translation invariant • Rotation invariant compute the axis of the best-fitting ellipse and rotate the shape

  13. 水平垂直投影Horizontal and vertical projections H(i) V(j)

  14. 對角投影 (Diagonal projection)

  15. 1. Shape Histogram # of pixels θ • Orientation histogram • Construct a histogram over the tangent angle at each pixel on the boundary of the shape. • Size invariant  histograms can be normalized before matching. • Translation invariant • Rotation invariant choosing the bin with the largest count to be the first bin. • Starting point invariant

  16. 2. Boundary Matching 1D Fourier Transformon the boundary

  17. Fourier Descriptors • If only the first M coefficients (a0, a1, …, aM-1) are used, then • is an approximation of un • the coefficients (a0, a1, …, aM-1) is called Fourier Descriptors • The Fourier distance measure is defined as:

  18. 傅立葉描述元之特性Properties of Fourier Descriptors Simple geometric transformations of a boundary, such as translation, rotation, and scaling, are related to simple operations of the boundary’s Fourier descriptors.

  19. A secret formula A formula for Fourier Descriptor that is invariant to translation, scaling, rotation, and starting point.

  20. IQ based on Boundary Matching

  21. 3. Sketch Matching • For every image in the database to be compared, perform the following steps. • Affine transformation to specified size and applying median filter. • Edge detection using a gradient-based edge-finding algorithm  Refined edge image • Thinning and shrinking  Abstract image • The images are divided into grid squares and matching is performed based on local correlation.

  22. 3. Sketch Matching The sketch distance measure is the inverse of the sum of each of the local correlations  where I(g) refres to grid square g of the abstract image I, Q(g) refers to grid square g of the linear sketch resulting from query image Q.

  23. Object and Relational Similarity • Ask for images containing certain objects, such as people or dogs. • Face finding • Flesh finding • Ask for images containing abstract concepts, such as happiness or beauty. • Asks for objects with certain spatial relationships, such as cowboy riding a horse. • construct a relational graph whose nodes represent objects and edges represent spatial relationships.

  24. Detecting significant changes in videos • Scene change • Shot change • Camera pan • Camera zoom • Camera effects: fade, dissolve, and wipe •  Segment and store video subsequences in digital libraries for random access.

  25. Segmenting Video Sequences • The transitions can be used to segment the video and can be detected by large changes in the features of the images over time.

  26. Similarity measure by histogram

  27. Similarity measure by likelihood ratio • Break the image into larger blocks and test to see if a majority of the blocks are essentially the same in both images.

More Related