image indexing and retrieval using histogram based methods,

22
Image indexing and Retrieval Using Histogram Based Methods, 03/6/5 03/6/5 資資資資資資資資資 資資資

Upload: crete

Post on 05-Feb-2016

48 views

Category:

Documents


4 download

DESCRIPTION

Image indexing and Retrieval Using Histogram Based Methods,. 03/6/5 資工研一 陳慶鋒. Outline. Histogram based methods Implementation Experiment result Future work References. General formula in successful IR. A feature vector f(I) for image I I and I’ are not “similar” - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Image indexing and Retrieval Using Histogram Based Methods,

Image indexing and Retrieval Using Histogram Based Methods,

03/6/503/6/5

資工研一資工研一陳慶鋒陳慶鋒

Page 2: Image indexing and Retrieval Using Histogram Based Methods,

Outline

Histogram based methodsHistogram based methods ImplementationImplementation Experiment resultExperiment result Future workFuture work ReferencesReferences

Page 3: Image indexing and Retrieval Using Histogram Based Methods,

General formula in successful IR

A feature vector A feature vector f(I)f(I) for image for image II II and and I’I’ are not “similar” are not “similar”

if and only if if and only if |f(I)-f(I’)||f(I)-f(I’)| is large is large f(.) should be fast to computef(.) should be fast to compute f(I) should be small in sizef(I) should be small in size

Page 4: Image indexing and Retrieval Using Histogram Based Methods,

Color histogram

For a For a nnnn with with mm colors image colors image II,,

the color histogram is the color histogram is

wherewhere

pp 為屬於為屬於 II 的的 pixel, pixel, I(p)I(p) 為其顏色為其顏色 , ,, ,forfor

Page 5: Image indexing and Retrieval Using Histogram Based Methods,

Color histogram (cont.)

Distance measure:Distance measure:

令原圖為令原圖為 II ,,欲比對的圖為欲比對的圖為 I’I’

在比對上使用在比對上使用 LL11-distance -distance ::

比對方式:比對方式: thresholdingthresholding

Page 6: Image indexing and Retrieval Using Histogram Based Methods,

Color histogram (cont.2)

AdvantagesAdvantages

-trivial to compute-trivial to compute

-robust against small changes in camera -robust against small changes in camera

viewpointviewpoint DisadvantagesDisadvantages

-without any spatial information-without any spatial information

Page 7: Image indexing and Retrieval Using Histogram Based Methods,

Histogram refinement

The pixels of a given bucket are subdivided The pixels of a given bucket are subdivided into classes based on local feature. Within a into classes based on local feature. Within a given bucket , only pixels in the same class given bucket , only pixels in the same class are compared.are compared.

The local feature which this paper used:The local feature which this paper used:

Color Coherence Vectors(CCVs)Color Coherence Vectors(CCVs)

Page 8: Image indexing and Retrieval Using Histogram Based Methods,

Histogram refinement (cont.)

CCVsCCVs

For the discretized color For the discretized color jj, the pixels with color , the pixels with color jj are coherence if they are adjacent(using eight-are coherence if they are adjacent(using eight-neighbor), indicated as neighbor), indicated as jj, otherwise are , otherwise are

incoherence, indicated as incoherence, indicated as jj, and total pixel with , and total pixel with

color color jj= = jj+ + jj, , a threshold a threshold is defined as the is defined as the

condition of coherence or notcondition of coherence or not

for color for color jj, the coherence pair is (, the coherence pair is (jj, , jj) )

Page 9: Image indexing and Retrieval Using Histogram Based Methods,

Histogram refinement (cont.2)

CCVs (cont.)CCVs (cont.) Comparing CCV with L1 distance:Comparing CCV with L1 distance:

Distance measure:Distance measure:

比對方式: 比對方式: thresholdingthresholding

Page 10: Image indexing and Retrieval Using Histogram Based Methods,

Histogram refinement (cont.3)

ExtensionExtension

Centering refinementCentering refinement

Successive refinementSuccessive refinement

Page 11: Image indexing and Retrieval Using Histogram Based Methods,

Color correlograms

A new image featureA new image feature Robust against large changes in camera Robust against large changes in camera

viewpointviewpoint

Page 12: Image indexing and Retrieval Using Histogram Based Methods,

Color correlograms (cont.)

A table indexed by color pairs, where the A table indexed by color pairs, where the kk-th entry for -th entry for color pair color pair <i, j><i, j> specifies the probability of finding a pixel specifies the probability of finding a pixel of color of color jj at a distance at a distance kk from a pixel of color from a pixel of color ii in the image. in the image.

The correlogram isThe correlogram is

The autocorrelogram is The autocorrelogram is

Page 13: Image indexing and Retrieval Using Histogram Based Methods,

Color correlograms (cont.2)

Properties:Properties:

-Contains spatial correlation of colors-Contains spatial correlation of colors

-Easy to compute-Easy to compute

-The size of feature is fairly small (-The size of feature is fairly small (O(md)O(md)))

Page 14: Image indexing and Retrieval Using Histogram Based Methods,

Implementation

PreprocessPreprocess Sizes of all images are normalized to 192*128Sizes of all images are normalized to 192*128

Colors of all images are quantized to 16Colors of all images are quantized to 16

Set Set of CCV as 2500 of CCV as 2500

Set Set d d of autocorrelogram as 30of autocorrelogram as 30

Page 15: Image indexing and Retrieval Using Histogram Based Methods,

Implementation(cont.)

IndexingIndexing

color histogramcolor histogram

CCVCCV

Page 16: Image indexing and Retrieval Using Histogram Based Methods,

Implementation(cont.)

Indexing(cont.)Indexing(cont.) color autocorrelogramcolor autocorrelogram

Page 17: Image indexing and Retrieval Using Histogram Based Methods,

Implementation(cont.)

Similarity measureSimilarity measure

Page 18: Image indexing and Retrieval Using Histogram Based Methods,

Experiment result

Sample queries and answers with ranks for Sample queries and answers with ranks for various methodsvarious methods

hist:2 ccv:1 auto:3hist:2 ccv:1 auto:3

Page 19: Image indexing and Retrieval Using Histogram Based Methods,

Experiment result(cont.)

hist:12 ccv:11 auto:4hist:12 ccv:11 auto:4

hist:29 ccv:24 auto:15hist:29 ccv:24 auto:15

Page 20: Image indexing and Retrieval Using Histogram Based Methods,

Experiment result(cont.)

hist:8 ccv:9 auto:18hist:8 ccv:9 auto:18

hist:7 ccv:23 auto:15hist:7 ccv:23 auto:15

Page 21: Image indexing and Retrieval Using Histogram Based Methods,

Future work

Use color imagesUse color images Study more about tech of CBIRStudy more about tech of CBIR

Page 22: Image indexing and Retrieval Using Histogram Based Methods,

References

[1][1] G. Pass and R.Zabih, “histogram refinement for content G. Pass and R.Zabih, “histogram refinement for content based image retrieval,” IEEE Workshop on Applications based image retrieval,” IEEE Workshop on Applications of Computer Vision, pp.96-102, 1996of Computer Vision, pp.96-102, 1996

[2] J. Huang, S. R. Kumar, M. Mitra, W. J. Zhu, and R.Zabih, [2] J. Huang, S. R. Kumar, M. Mitra, W. J. Zhu, and R.Zabih, “Image indexing using color correlograms,” Conf. “Image indexing using color correlograms,” Conf. Computer Vision and Pattern Recognit., pp.762-768,1997Computer Vision and Pattern Recognit., pp.762-768,1997

[3]G. Pass, R. Zabih, and J. Miller, “Comparing images using [3]G. Pass, R. Zabih, and J. Miller, “Comparing images using color coherence vectors”, color coherence vectors”, Proc. of ACM MultimediaProc. of ACM Multimedia 96, 96, pp. 65-73, Boston MA USA, 1996pp. 65-73, Boston MA USA, 1996