Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada.

Slides:



Advertisements
Similar presentations
Applications of one-class classification
Advertisements

The A-tree: An Index Structure for High-dimensional Spaces Using Relative Approximation Yasushi Sakurai (NTT Cyber Space Laboratories) Masatoshi Yoshikawa.
電腦視覺 Computer and Robot Vision I
Binary Trees CSC 220. Your Observations (so far data structures) Array –Unordered Add, delete, search –Ordered Linked List –??
An Infant Facial Expression Recognition System Based on Moment Feature Extraction C. Y. Fang, H. W. Lin, S. W. Chen Department of Computer Science and.
3D Shape Histograms for Similarity Search and Classification in Spatial Databases. Mihael Ankerst,Gabi Kastenmuller, Hans-Peter-Kriegel,Thomas Seidl Univ.
Chapter 8 Content-Based Image Retrieval. Query By Keyword: Some textual attributes (keywords) should be maintained for each image. The image can be indexed.
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
10/11/2001Random walks and spectral segmentation1 CSE 291 Fall 2001 Marina Meila and Jianbo Shi: Learning Segmentation by Random Walks/A Random Walks View.
2-dimensional indexing structure
ICIP 2000, Vancouver, Canada IVML, ECE, NTUA Face Detection: Is it only for Face Recognition?  A few years earlier  Face Detection Face Recognition 
B+-tree and Hashing.
1 Learning to Detect Objects in Images via a Sparse, Part-Based Representation S. Agarwal, A. Awan and D. Roth IEEE Transactions on Pattern Analysis and.
A Study of Approaches for Object Recognition
University of CreteCS4831 The use of Minimum Spanning Trees in microarray expression data Gkirtzou Ekaterini.
Video Google: Text Retrieval Approach to Object Matching in Videos Authors: Josef Sivic and Andrew Zisserman ICCV 2003 Presented by: Indriyati Atmosukarto.
Visual Querying By Color Perceptive Regions Alberto del Bimbo, M. Mugnaini, P. Pala, and F. Turco University of Florence, Italy Pattern Recognition, 1998.
Video Google: Text Retrieval Approach to Object Matching in Videos Authors: Josef Sivic and Andrew Zisserman University of Oxford ICCV 2003.
Spatial Indexing I Point Access Methods.
Pattern Recognition. Introduction. Definitions.. Recognition process. Recognition process relates input signal to the stored concepts about the object.
Multiple Object Class Detection with a Generative Model K. Mikolajczyk, B. Leibe and B. Schiele Carolina Galleguillos.
Homework #3 Due Thursday, April 17 Problems: –Chapter 11: 11.6, –Chapter 12: 12.1, 12.2, 12.3, 12.4, 12.5, 12.7.
Spatial Indexing I Point Access Methods. Spatial Indexing Point Access Methods (PAMs) vs Spatial Access Methods (SAMs) PAM: index only point data Hierarchical.
Spatial Indexing I Point Access Methods. Spatial Indexing Point Access Methods (PAMs) vs Spatial Access Methods (SAMs) PAM: index only point data Hierarchical.
Face Recognition Using Neural Networks Presented By: Hadis Mohseni Leila Taghavi Atefeh Mirsafian.
Chapter 61 Chapter 6 Index Structures for Files. Chapter 62 Indexes Indexes are additional auxiliary access structures with typically provide either faster.
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
1 Multiway trees & B trees & 2_4 trees Go&Ta Chap 10.
Data Structures Arrays both single and multiple dimensions Stacks Queues Trees Linked Lists.
Database Management 8. course. Query types Equality query – Each field has to be equal to a constant Range query – Not all the fields have to be equal.
Chapter 9 Superposition and Dynamic Programming 1 Chapter 9 Superposition and dynamic programming Most methods for comparing structures use some sorts.
Spatial Data Management Chapter 28. Types of Spatial Data Point Data –Points in a multidimensional space E.g., Raster data such as satellite imagery,
1 Faculty of Information Technology Generic Fourier Descriptor for Shape-based Image Retrieval Dengsheng Zhang, Guojun Lu Gippsland School of Comp. & Info.
The X-Tree An Index Structure for High Dimensional Data Stefan Berchtold, Daniel A Keim, Hans Peter Kriegel Institute of Computer Science Munich, Germany.
Searching: Binary Trees and Hash Tables CHAPTER 12 6/4/15 Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education,
Multi-way Trees. M-way trees So far we have discussed binary trees only. In this lecture, we go over another type of tree called m- way trees or trees.
Querying Structured Text in an XML Database By Xuemei Luo.
COMPARISON OF IMAGE ANALYSIS FOR THAI HANDWRITTEN CHARACTER RECOGNITION Olarik Surinta, chatklaw Jareanpon Department of Management Information System.
COLOR HISTOGRAM AND DISCRETE COSINE TRANSFORM FOR COLOR IMAGE RETRIEVAL Presented by 2006/8.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
© 2006 Pearson Addison-Wesley. All rights reserved13 B-1 Chapter 13 (continued) Advanced Implementation of Tables.
Chapter 9 (modified) Abstract Data Types and Algorithms Nell Dale John Lewis.
M- tree: an efficient access method for similarity search in metric spaces Reporter : Ximeng Liu Supervisor: Rongxing Lu School of EEE, NTU
SINGULAR VALUE DECOMPOSITION (SVD)
Lecture1 introductions and Tree Data Structures 11/12/20151.
Data Structures Trees Phil Tayco Slide version 1.0 Apr. 23, 2015.
Event retrieval in large video collections with circulant temporal encoding CVPR 2013 Oral.
2005/12/021 Fast Image Retrieval Using Low Frequency DCT Coefficients Dept. of Computer Engineering Tatung University Presenter: Yo-Ping Huang ( 黃有評 )
Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures Chapter 4 – Data structures for.
BIRCH: An Efficient Data Clustering Method for Very Large Databases Tian Zhang, Raghu Ramakrishnan, Miron Livny University of Wisconsin-Maciison Presented.
Marwan Al-Namari Hassan Al-Mathami. Indexing What is Indexing? Indexing is a mechanisms. Why we need to use Indexing? We used indexing to speed up access.
Spatial Indexing Techniques Introduction to Spatial Computing CSE 5ISC Some slides adapted from Spatial Databases: A Tour by Shashi Shekhar Prentice Hall.
R-Trees: A Dynamic Index Structure For Spatial Searching Antonin Guttman.
Database Management Systems, R. Ramakrishnan 1 Algorithms for clustering large datasets in arbitrary metric spaces.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Chapter 5 Ranking with Indexes. Indexes and Ranking n Indexes are designed to support search  Faster response time, supports updates n Text search engines.
Database Applications (15-415) DBMS Internals- Part III Lecture 13, March 06, 2016 Mohammad Hammoud.
Another Example: Circle Detection
Spatial Data Management
Image Representation and Description – Representation Schemes
An Image Database Retrieval Scheme Based Upon Multivariate Analysis and Data Mining Presented by C.C. Chang Dept. of Computer Science and Information.
Indexing Structures for Files and Physical Database Design
Multiway Search Trees Data may not fit into main memory
IMAGE PROCESSING RECOGNITION AND CLASSIFICATION
Spatial Indexing I Point Access Methods.
Mean Shift Segmentation
Advanced Implementation of Tables
An Infant Facial Expression Recognition System Based on Moment Feature Extraction C. Y. Fang, H. W. Lin, S. W. Chen Department of Computer Science and.
BIRCH: Balanced Iterative Reducing and Clustering using Hierarchies
Presentation transcript:

Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada

I. Ahmad - Windsor, Canada2 Outline Introduction Shape-based Retrieval Image Representation Moment Invariants Proposed Approach Experimental Results Conclusions

I. Ahmad - Windsor, Canada3 Introduction Information Characteristics Nature Multiple formats Complex Types Image Database Time dependent sequence Video Database

I. Ahmad - Windsor, Canada4 Introduction (contd.) Still information Dynamic information Temporal Evolution of information Changes in features and characteristics

I. Ahmad - Windsor, Canada5 Introduction (contd.) Image contents Real world information Unique features Need retrieval based on contents

I. Ahmad - Windsor, Canada6 Image Retrieval Exact match Similarity-based retrievals Color / texture similarity-based retrievals Spatial similarity-based retrievals Shape similarity-based retrievals

I. Ahmad - Windsor, Canada7 Shape-based retrievals Model-based Object Recognition Approach Models based on global and local features Unknown object compared against known ones Data-Driven Approach An index for known shapes Search utilizes such indices

I. Ahmad - Windsor, Canada8 Image Representation Images can be defined in terms of: Global features Based on overall image composition Easier to compute Local features Based on individual image components Incorporate spatial information Computationally expensive

I. Ahmad - Windsor, Canada9 Shape How to define a shape? A geometric property of a figure Formal definition – independent of language Described in terms of properties invariant under a group of coordinate transformations Let is a characteristic function such that For points in the figure Otherwise

I. Ahmad - Windsor, Canada10 Shape (contd.) Definition: Let  be a group of coordinate transformations. The function I is invariant w.r.t.  if for all characteristic functions and all transformations  Definition: A shape of a figure is a pair, where I is invariant under the group of coordinate transformations 

I. Ahmad - Windsor, Canada11 Moments Can capture global information about image Do not require closed boundaries. Regular moments – introduced by Hu. Invariant to translation, rotation and scaling Algebraic moments Do not depend on actual values of the coefficients Central moments Equivalent to regular moments of an image that has been shifted

I. Ahmad - Windsor, Canada12 Moments (contd.) Applications Image reconstruction Shape identification such as aircrafts, etc. Shape recognition Classifiers

I. Ahmad - Windsor, Canada13 Moments (contd.) Let be the image intensity distribution function p +q is the order of moments (for p, q =0, 1, 2, …) the algebraic moment of functions are given as: For a digital image of size M x N

I. Ahmad - Windsor, Canada14 Moments (contd.) For centralized moments, we can write: with its digital form as:

I. Ahmad - Windsor, Canada15 Moments (contd.) Central moments up to 2 nd order are defined as:

I. Ahmad - Windsor, Canada16 Moments (contd.)

I. Ahmad - Windsor, Canada17 Moments (contd.) Algebraic moments by Hu

I. Ahmad - Windsor, Canada18 Moments (contd.) Moment Invariants: Time complexity in computing MI is directly proportional to the number of pixels in the silhouette or forming the boundary. Let N be the perimeter of the closed boundary To calculate 2 nd order moments, we need: 4(N-1) real additions and 3N real multiplications To calculate 3 rd order moments, we need: 6(N-1) real additions and 12N real multiplications

I. Ahmad - Windsor, Canada19 Moments (contd.) A Sample binary image & moment invariants F={ , , , , , , }

I. Ahmad - Windsor, Canada20 Clustering Main Categories Hierarchical methods A nested sequence of partitions Involves multiple iterations to cluster objects Non-hierarchical methods Assume desired number of clusters at the beginning Data is reallocated until a particular clustering criteria is optimized. Objects in a cluster are more similar to each other.

I. Ahmad - Windsor, Canada21 Clustering (contd.) K-means clustering Let a set of N objects in d-dimensional space R d k is an integer Determine a set of k points in R d, called centers, so as to minimize the mean squared distance from each data point to its nearest center. Also known as squared-error distortion.

I. Ahmad - Windsor, Canada22 K-means Clustering (contd.) ALGORITHM: K-means clustering 1. For pattern vectors P1, P2,…, Pm, set first k pattern vectors to the initial clusters C1=P1, C2=P2, C3=P3,…, Ck=Pk, where m >= k 2. Assign each pattern vector to the nearest cluster 3. Compute new cluster means 4. If new cluster means = old cluster means stop, else go to step 2

I. Ahmad - Windsor, Canada23 K-means Clustering (contd.) K-means Clustering Tree (KCT) The KCT is a hierarchical data structure similar to a combination of binary search tree and B+ -tree. Data pointers are stored only at the leaf nodes of tree. Non-leaf nodes that contain weight vectors. Non-leaf nodes have links to other nodes. Unidirectional links Left child nodes with lesser threshold values Right child nodes with greater threshold values.

I. Ahmad - Windsor, Canada24 K-means Clustering (contd.) K-means Clustering Tree (KCT) – contd. KCT has a single root node Leaf nodes of KCT contain features for an image shape and a pointer to the images. Non-leaf nodes of the tree correspond to the other levels of the index. The nodes correspond to disk pages and the structure is designed so that search requires visiting only a small number of pages.

I. Ahmad - Windsor, Canada25 K-means clustering (contd.) KCT Tree creation Assume 2-D feature vector for each of 19 object as: { {-3.0, 3.0}, {-2.5, 3.0}, {-2.0, 2.0}, {-1.5, 2.0}, {-3.5, 1.5}, {-4.0, 1.0}, {-3.0, 0.5}, {-3.0, 0.0}, {-1.5, 0.5}, { 2.5,-0.5}, { 2.5,-1.0}, { 4.5,-1.0}, { 0.5,-1.5}, { 1.0,-2.0}, { 3.0,-2.0}, { 4.0,-2.0}, { 0.5,-2.5}, { 1.0,-2.5}, { 2.0,-3.0} }

I. Ahmad - Windsor, Canada26 K-means clustering (contd.) Same 2-dimensional numerical values Each object value will be in leaf node of KCT Object X y Object

I. Ahmad - Windsor, Canada27 K-means clustering (contd.) Corresponding KCT tree

I. Ahmad - Windsor, Canada28 K-means Clustering (contd.) Insertion possibilities 1. A leaf node is full and a new object is to be inserted in that leaf node. In such case, an insertion results in overflow and, therefore, the node must split. As a result, a new non-leaf node and two leaf nodes are constructed and linked to that part of the tree. We also need to train the non-leaf node to get weight values. 2. When the node in which the object has to be inserted has only one object in it. In this case, object can be simply added into node without any additional cost.

I. Ahmad - Windsor, Canada29 K-means Clustering (contd.) Deletion possibilities 1. When the sibling node is full-leaf node or non-leaf node and we delete an object from full leaf node  delete object from that node. 2. When the sibling node is leaf node with an object and we delete an object from full- leaf node  delete object from that node, combine two leaf nodes, delete its parent non-leaf node, and connect remaining full-leaf node to deleted non-leaf node's parent node.

I. Ahmad - Windsor, Canada30 K-means Clustering (contd.) Deletion possibilities – contd. 3. When the sibling node is full-leaf node and we delete an object from leaf node with itself  delete object from that node, delete its parent non-leaf node, and connect remaining full-leaf node to deleted non-leaf node's parent node. 4. When sibling node is non-leaf node and we delete an object from leaf node with one object  Delete an object from that node, delete its parent non-leaf node, and connect deleted non-leaf node's child node to deleted non-leaf node's parent node.

I. Ahmad - Windsor, Canada31 K-means Clustering (contd.) Algorithm for retrieving images // Search an object with feature F using KCT 1. b  block containing root node of a KCT 2. read block b 3. while (b is not a leaf node of the KCT) do 4. next  recall Backpropagation using weights in block b 5. b  next 6. read block b 7. search block b for the most similar object with feature F // search leaf node 8. if found then 9. read index file block; display images with object

I. Ahmad - Windsor, Canada32 Experimental Results Experimental Setup Environment: PC with Microsoft Windows 98 Language: C / C++ Images Normalized to grayscale and 128 x 128 Grayscale images to binary images for chain-codes Data set size 100 original images 5 variants involving translation, rotation and scaling.

I. Ahmad - Windsor, Canada33 Experimental Results (contd.) Sample image shapes and their seven moment invariants abcd

I. Ahmad - Windsor, Canada34 Experimental Results (contd.) A subset of grouping results using database images at the root level of KCT. Objects in top row occupy the left subtree while the bottom row objects become right subtree.

I. Ahmad - Windsor, Canada35 Experimental Results (contd.) Grouping results with database images at the 3 rd level of KCT. The top row of objects forms the left subtree of KCT while the bottom row is the right subtree.

I. Ahmad - Windsor, Canada36 Experimental Results (contd.) Results of sample queries. Query shape is given in row 1, column 1 of each image while the retrieved images include the query shape.

I. Ahmad - Windsor, Canada37 Experimental Results (contd.)

I. Ahmad - Windsor, Canada38 Conclusions Presented a moment invariants based image indexing scheme. Chain codes are used to reduce size of database Indexing is based on K-means clustering with k = 2 and Backpropagation to get weights for each node. Retrieval of images was based on finding the leaf node that includes similar images. Limitation: Small image collection and limited training data.