Title: Contentbased Image Retrieval Term Project
1Content-based Image Retrieval -- Term
Project
Meng Ding Dec 4, 2002
Implementing Existing Algorithms
2Contents
- Introduction
- Implementation
- Evaluation
- Conclusion
3Introduction
- CBIR based on Low Level Feature Extraction (Level
1) - CBIR based on Sample (Query) Image
4Introduction
- Low Level Feature Extraction
- 1. Global Histogram Based
- 2. Segmentation Based (finding objects)
-
5Introduction
6Contents
- Introduction
- Implementation
- Evaluation
- Conclusion
7Implementation Global Hist Based
- Image Preprocessing
- Feature Extraction
- Similarity Measurement
-
8Global Hist Based Preprocessing
9Global Hist Based Color Histogram
- Convert to HSV Color Space
-
10Global Hist Based Color Histogram
- Convert to HSV Color Space
where , ,
, and
is the corresponding point of
in the HSV color space.
11Global Hist Based Color Histogram
- Quantize into 256 bins with
16 levels in H Channel 4 levels in S Channel 4
levels in V Channel
12Global Hist Based Edge Histogram
- Convert to YCbCr Color Space
13Global Hist Based Edge Histogram
- Compute Luminance Gradients
Vertical Horizontal 45
degree 135 degree isotropic
- Threshold 50 for Sum of Gradient Values
- Quantize Edge Histograms into 5 Bins
14(No Transcript)
15Global Hist Based Similarity
- Histogram Intersection for Both Color and Edge
Features
16Global Hist Based Similarity
- Combine Two Features
- Sort overall Distance
- Retrieve top 20 images
where s is the sample image, i is the image in
the image database, dk(I,I) is the result from
histogram intersection for all features and wk is
the weight on each feature value.
17Implementation Segmentation Based
- Based on UC Berkelys Blobworld
- Three Steps
- 1. Extract color and texture features for
- each pixel
- 2. Grouping of pixels by Expectation
Maximization - Algorithm and Minimum Description Length
- Principle
- 3. Description of Region features and
- Similarity Comparison for Image Query
18Segmentation Based Color Features
- Convert to Lab Color Space
- L Channel is used for texture extraction
19Segmentation Based Color Features
- Smooth the image using a smooth filter
20Segmentation Based Texture Features
- Three Local Texture Descriptors
- Contrast, Anisotropy and Polarity
- Three Local Texture Descriptors
- Contrast, Anisotropy and Polarity
- All features derived from gradients
21Segmentation Based Texture Features
- Second Moment Matrix (Averaged Squared Gradient
Matrix)
where is the approximation to
a Guassian smoothing kernel with
variance 2.
22Segmentation Based Texture Features
- Eigenvalues of Second Moment Matrix
- Comparisons between and
23Segmentation Based Texture Features
- Contrast
- Anisotropy
- Polarity
- Dominant Orientation within local region
24Segmentation Based Combine Features
- Six Dimensional Features for each pixel
- 1. Smoothed L
- 2. Smoothed a
- 3. Smoothed b
- 4. Contrast c
- 5. Anisotropy ac
- 6. Polarity pc
-
25Segmentation Based Build Models
- Selection of K mean vectors
-
- Two cases when K 3
26Segmentation Based Build Models
- Evaluate Models using Expectation Maximization
(EM Algorithm) - Initialization
- where X is a feature vector, is
normalized mixing weights (Initial Value 1/K) ,
is the collection of all parameters, f is -
- Guassian density with
representing K mean vectors, - representing K covariance
matrices and d the number of features -
27Segmentation Based Build Models
is the probability of fits given
parameter .
28Segmentation Based Choose Model
- Stop Condition
- Stop when does not increase within 10 iterations.
- Choose the Number of Regions K to maximize the
for formula (MDL)
29Segmentation Based Group Pixels
- Compute Probability Density for Each Pixel Under
the Selected Model - Replace the pixels with label of the cluster for
which it attains the highest likelihood
30Segmentation Based Group Pixels
- Perform 8-way Connected-Components Algorithm to
find regions -
- 1 1 0 1 1 0 1 1 1 0 1 1 0
2 - 1 1 0 1 1 0 1 1 1 0 1 1 0 2
- 0 0 1 0 0 0 1 0 0 1 0 0 0 2
-
-
-
31Segmentation Based Region Description
- Lab color histogram 218 bins with width 20 in
each direction - Mean Contrast Value
- Mean Anisotropy Value
32Segmentation Based Segmentation Representation
33(No Transcript)
34Segmentation Based Similarity Measure
- Histogram Intersection for Color features
- Euclidean distance for texture features
- Combine Color and Texture features using
normalized weights (currently 0.5 for each
feature) - Maximum similarity from all region pairs between
two images - Sort the Maximum similarity value and pick up the
top 20.
35Contents
- Introduction
- Implementation
- Evaluation
- Conclusion
36Evaluation Testing Images
- Downloaded from Stanford University Database
Group, 10,000 test images with average size for
each image 128X85 - Segmented images so far 1100, with 1000 images
from the original database and the rest 100
images (Great Walls) added by ourselves (for
convenience of performance comparisons)
37(No Transcript)
38(No Transcript)
39(No Transcript)
40(No Transcript)
41Evaluation Comparison
42(No Transcript)
43(No Transcript)
44Evaluation Comparison
45Contents
- Introduction
- Implementation
- Evaluation
- Conclusion
46Conclusion
- It works, sometimes even produce good results
- Still a VERY DIFFICULT problem, semantic
retrieval is almost impossible at present - Segmentation based approach is not necessarily
better than Global histogram based approach - Difficult to compare the performance of different
CBIR systems - Impractical for WWW content-based image retrieval
given current knowledge
47Thank You!