Fast Shape Index Framework based on Principle Component Analysis using Edge Co-occurrence Matrix Zhiping XU, Yiping ZHONG, Shiyong ZHANG Department of Computing and Information Technology Fudan University, Shanghai, China, 200443 [email protected]

Abstract. The shape of an object is one of the most important features in content based image retrieval. However, the statistical feature of edge is rarely used as a feature that codes local spatial information. This paper presents an approach to represent spatial edge distributions using principal component analysis (PCA) on the edge co-occurrence matrix (ECM). The ECM is based on the statistical feature attained from the edge detection operators which applied on the image. The eigenvectors obtained from PCA of the ECM can preserve the high spatial frequencies components, so they are well suited for shape as well as texture representation. Projections of the ECM from the image database to the local PCs serve as a compact representation for the search database. The framework presented in the paper guarantee the accuracy and speed of the content based image retrieval in our work. Keywords: edge co-occurrence matrix, content based image retrieval, compact representation

1

Introduction

Massive image databases are used in multimedia applications in the fields such as entertainment, business, art, engineering and science. Retrieving images by their content rather than external annotations has become an important operation. A fundamental ingredient for content based image search is the method used for comparing image features attained from each image stored in the image database. There are two general approaches for image comparison: intensity based and shape based. L Schomaker et al. [1] mentioned users of Content Based Image Retrieval (CBIR) were more interested in retrieval by shape than by color and texture. However, retrieval by shape is still considered one of the most difficult aspects of content based search. Some other system like IBM's Query By Image Content (QBIC) [2] is relatively successful in retrieving by color and texture, but performs poorly when searching on shape. The similar behavior is exhibited in some other systems. Shape matching is a central problem of computer vision, visual information systems, pattern recognition, and robotics. Shape matching can be applied in the industrial inspection, fingerprint matching, and content-based image retrieval.

2

Zhiping XU, Yiping ZHONG, Shiyong ZHANG

The matching process deals with transforming features into representations, and compares with the query representations using some dissimilarity measures. However, the shape of a pattern is the pattern under all transformations in a transformation group. The matching problem is studied in various forms. The problems encountered by the researchers in this scope are listed below: • High dimension data reduction problem. The dimension of the feature vectors attained from the image is extremely high, the reduction of feature dimension can achieved high performance in retrieval. • Computation problem. Compute the dissimilarity between the two patterns. • Decision problem. For a given threshold, decide whether the dissimilarity is smaller than the threshold. From many researches, the time complexities in retrieval are rather great, in order to solve this problem we proposed a framework that can fast index shape based on the Principle Component Analysis (PCA) using edge co-occurrence matrix (ECM). The rest of paper is organized as follows, section 2 shows the concept of edge cooccurrence matrix, Section 3 illustrates the principle component analysis applied in our work, Section 4 demonstrates the measure of dissimilarity of query image and stored images, Section 5 shows the architecture of Fast Shape Index Framework, Section 6 gives the experiments results in the framework, Section 7 concludes the works we have done.

2

Edge co-occurrence matrix

The edge co-occurrence matrix is motivated by the Gray Level Co-occurrence Matrix (GLCM) [3,4]. The edge co-occurrence matrix (ECM) estimates image properties related to second-order statistics. Each entry (i,j) in ECM corresponds to the number of occurrences of the pair of edge block style i and j which are a distance d apart in original image. The edge block is generated from the edge map attained from edge detection algorithms, like Sobel, Canny detectors [5].

Pixel [i,j]

2x2 sub-window

Edge map of image

Fig. 1. The Edge Block of the Edge map

As is shown in Fig. 1, the edge block of the edge map is taken from the 2x2 subwindow in the edge map, the style of each edge block can be calculated according to

Fast Shape Index Framework based on Principle Component Analysis using Edge Cooccurrence Matrix 3

Eq. (1).

Style =



22i + j ⋅ P[i, j ]

(1)

( i , j )∈EdgeBlock

where

EdgeBlock

represents the 2x2 sub-window in the edge map, i, j respectively

represents the coordination in the sub-window, P[i, j ] represents the intensity value or the binary value applied by the threshold of current coordination (i, j). In our work, we only consider the binary form of P[i, j ] . According to enumeration of the edge block, there are 16 types of edge blocks. The combination of current edge block and neighbor edge block forms the matrix of edge block style based on the Eq. (2).

M 16 X 16 = [ S ]

(2)

⎧⎪1 S = ∑ p, p = ⎨ ⎪⎩0

Stylei , j = Stylei , j +1 Stylei , j ≠ Stylei , j +1

This matrix show all the statistical information about the style of edge block; however we found in the experiments that a large portion of the elements’ values were extremely small, and the dimension of the edge block style matrix was very high.

3

Principle Component Analysis

Principle component analysis [6,9,10] is a useful statistical technique that has been found in application in many fields such as face recognition and image compression, and is a common technique for finding patterns in data of high dimension. It is a way of identifying patterns in data, and expressing the data in such a way as to highlight their similarities and differences. Since patterns in data are hard to find in data of high dimension, where the luxury of graphical representation is not available, PCA is a powerful tool for analyzing data. As above mentioned the dimension of the edge block style matrix is extremely high, in our work PCA is applied to analyze the edge block style matrix feature to gain the important feature vector from the image according to Eq. (3).

F = f ⋅D

(3)

where F is the final data vector of the image it represented, f is the matrix with the eigenvectors in the columns transposed so that the eigenvectors of the matrix of edge block style are now in the rows, with the most significant eigenvector at the top, and D is the mean-adjusted data transposed, i.e. the data items are in each column, with each row holding a separate dimension.

4

Zhiping XU, Yiping ZHONG, Shiyong ZHANG

4

The measure of dissimilarity

We gained the final data vector of its represented image, and these data are stored in the image database. When the user issue a query to the CBIR system, the query image was firstly applied with the edge detection operation to gain the edge map, then formulated the query image’s ECM matrix using above mentioned approaches, then using the f multiplied the query image’s ECM to gain the query vector Q . In our work, the measure of dissimilarity to each image stored in the image database can be attained by Eq. (4):

d (Q, I i ) = min Q − I i

(4)

where d (Q, I i ) is the Euclidian distance between two vectors, I i represents each image’s final PCA transformed vectors stored in the image database. The criterion of two images’ similarity is the minimum distance between the two images.

5

Architecture of Fast Shape Index Framework

The architecture of Fast Shape Index Framework (FSIF) is illustrated below: Query Image

User Interface

Query Vector Result Image Sets

Image Database

PCA Filter

ECM Similarity Measurement Images

Fig. 2. The architecture of the FSIF

As illustrated in Fig. 2, the system first calculates the ECM of each image in the image database, and then uses PCA to transform the ECM into feature vectors to be stored in the image database. When the users issue the query image through the user interface, the query image applied the same steps that applied to each image in the image database to form the query vector. After the query vector is generated, the framework will do the similarity measurement between query vector and feature

Fast Shape Index Framework based on Principle Component Analysis using Edge Cooccurrence Matrix 5

vectors of the image to find out the minimum distance image result set. Fig.3 shows the user interface of our framework.

Fig. 3. The user interface of the Fast Shape Index framework

6

Experiments

6.1 Shape based query experiments Our work is focused on the shape similarity query in the image database. To illustrate the process of the experiments, we give the test image sets listed as follows:

6

Zhiping XU, Yiping ZHONG, Shiyong ZHANG

Fig. 4. The test image sets for shape based query

As illustrated in Fig.4, the images in the first row are same in size and shape but different in tilt and rotation angle, the images in the second row are same in shape and size but different in position, the third row images are neither same in size nor same position, but the outside shape is same, the forth row images are neither same in size rotation and position nor same in shape. Then the user issues the query image to the CBIR system to gain the results.

Fig. 5. Shape Query Examples

The rectangle box which enveloped hexagon and assembled shape in the Fig.5 indicated the query sample given by the user, the return image sets are ordered by the similarity according to the query image. The framework shows high precision rate in the rotation, shift and scale according to the experiments. In our case, the precision is calculated by terms of Eq. (5)

precision =

relevant _ images × 100% returned _ images

(5)

Fast Shape Index Framework based on Principle Component Analysis using Edge Cooccurrence Matrix 7 The average precision results of this type of experiments are shown in Table 1. Table 1. The Result of Shape based query experiments

Number of Images 20 50 100 500

Average Precision (%) 84.3 80.4 79.4 68.4

6.2 Natural image query experiment To date, we have tested our retrieval algorithm on a general-purpose image database with 1000 images from the Corel [7]. These images are stored in JPEG format with size 384x256, 256x384. The entire database has 10 categories with 100 images in each category. Most categories contain distinct semantics including building, flowers, vehicles, etc. When we do the nature image query experiment, we choose the same image categories used in Xiaojun Qi et al.’s work [8] for comparison. Table 2. Comparison of the average retrieval precision of each category

Proposed Ref. 8 Architecture 0.7061 0.5467 Beach 0.3274 0.2800 Vehicle 0.6044 0.5600 Flowers 0.8333 0.8233 Food 0.3926 0.5067 Horse 0.8872 0.8900 Average 0.6252 0.5650 From the Table 2, we can find that our method has better retrieval accuracy than the Xiaojun Qi’s approach in 4 categories and a little worse retrieval accuracy for the food and horse queries. It improves the overall average retrieval accuracy by 10.64%. Xiaojun Qi et al.’s work [8] used a combination of features to ensure the precision; however in our work we only used only one feature to gain such results, the reason of little worse retrieval accuracy for the food and horse queries is the interfere from statistical noise from the background object. The better way to solve this limitation is to combine some other features or using some filters to reduce the noise. 6.3 Speed The algorithm has been implemented using Delphi 6 on a Pentium IV 1.4 GHz, 752MB memory LENOVO Laptop running Windows XP Media Center operating system. Computing the feature vectors for 8000 color images of size 384×256 requires around 10 min. In average, 7ms is needed to compute all the features and apply the PCA for each image.

8

Zhiping XU, Yiping ZHONG, Shiyong ZHANG

7

Conclusions

A fast approach to CBIR is proposed in this paper. An image is first transformed into ECM generated from edge detectors. Then by using PCA method on the ECM data entry of each image in the image database, our system gains the final feature vectors. Users can query image by a sample image, which will be transformed into query vector. Such methods proposed by the paper have been proven to be more accurate and efficient than some other CBIR methods. This approach also shows the in born immunity to the scale and rotation of the shape. In order to gain higher accuracy in CBIR, our approach can be combined with some other features like textures and colors, also the artificial neural network and other machine learning methods will be plausible to enhance to precision of CBIR. Acknowledgments. The authors would like to acknowledge the comments of the two unknown reviewers whose insightful comments helped to improve this paper.

References: 1.

2. 3. 4. 5. 6. 7. 8. 9. 10.

Schomaker L., Leau E. D., Vuurpijl L.: Using Pen-Based Outlines for Object-Based Annotation and Image-Based Queries, Visual Information and Information Systems: Third International Conference, VISUAL'99, Amsterdam, The Netherlands, (1999) QBIC Project, http://wwwqbic.almaden.ibm.com Partio M., Cramariuc B., Gabbouj M.: Rock Texture Retrieval Using Gray Level Cooccurrence Matrix, Proc. of 5th Nordic Signal Processing Symposium, (2002) Haralick R. M., Shanmugam K., Dinstein I.: Textural Features for Image Classification, IEEE Trans. on Systems, Man, and Cybernetics, Vol. 6. (1973) 610–621. Ziou D., Tabbone S.: Edge Detection Techniques-an Overview, Pattern Recognition And Image Analysis C/C Of Raspoznavaniye, 1998 Daffertshofer A., Lamoth C. J., Meijer O. G., Beek P. J.: PCA in studying coordination and variability: a tutorial, Clin Biomech (Bristol, Avon), (2004) Corel, http://www.corel.com Qi X.,Han Y.: A novel fusion approach to content-based image retrieval,Pattern Recognition Vol. 38. (2005), 2449–2465 Pearson, K. On lines and planes of closest fit to systems of points in space. Philosophical Magazine, Vol. 2. (1901) 559–572. Hotelling, H. Analysis of a complex of statistical variables into principal components. Journal of Educational Psychology, Vol. 24. (1933) 417–441,498–520.

Fast Shape Index Framework based on Principle ...

Some other system like IBM's Query By Image Content (QBIC) .... 752MB memory LENOVO Laptop running Windows XP Media Center operating system.

313KB Sizes 0 Downloads 243 Views

Recommend Documents

Interactive Shape Manipulation Based on Space Deformation ... - Kai Xu
is the original distance of the barycenter of two adjacent clusters i and j. 4.5 Optimization. Our shape manipulation framework solves for the deformation through minimizing the weighted sum of all the above-stated energy terms, which results the fol

2D Shape Decomposition Based on Combined ...
by recent studies in visual human perception discussing the importance of ..... IEEE Transactions on Pattern Analysis and Machine Intelligence 29 (2007) 449–.

Shape Indexing and Semantic Image Retrieval Based on Ontological ...
Center retrieves images, graphics and video data from online collections using color, .... ular class of image collection, and w(i,j) is semantic weight associated with a class of images to which .... Mn is defined by means of two coordinates (x;y).

Interactive Shape Manipulation Based on Space ...
Interactive Shape Manipulation Based on Space. Deformation ... tion algorithm for interactive shape manipula- tion. ..... IEEE Transactions on Visualization and.

2D Shape Decomposition Based on Combined ...
cognitive research, suggesting that the human visual system uses a part-based represen- tation to analyze and interpret the shapes of objects [1][2][3]. Partitioning schemes are .... A shape boundary is a vector of points B = {b1, .., bm}. An endpoin

Shape Indexing and Semantic Image Retrieval Based on Ontological ...
Retrieval Engine by NEC USA Inc.) provides image retrieval in Web by ...... The design and implementation of the Redland RDF application framework, Proc.

Tuning for Query-log based On-line Index Maintenance - People
Oct 28, 2011 - structure for index maintenance in Information Retrieval. (IR) systems. ..... Computer Systems Lab, Department of Computer Science,.

Tuning for Query-log based On-line Index Maintenance - People
Oct 28, 2011 - 1. INTRODUCTION. Inverted indexes are an important and widely used data structure for ... query, for instance Twitter, which is not present few years back is now ... This index- ing scheme provides a high degree of query performance si

Determination of volume, shape and refractive index of ...
Journal of Quantitative Spectroscopy &. Radiative Transfer 102 (2006) 37– ... cFaculty of Science, Section Computational Science of the University of Amsterdam, Kruislaan 403, 1098 SJ, Amsterdam, The Netherlands. Abstract. Light scattering ... and

Free Flow Cytometry for Measurement of Shape Index ...
Oct 21, 2016 - A.I. Konokhova,1 M.A. Yurkin,1,2 E.A. Pokushalov,3 A.V. Chernyshev,1,2 V.P. Maltsev1,2,4*. Abstract ... files (LSPs) of single particles.

A Multiple Layered Spatial Data Integration Framework Based on ...
JAVA. RMI. Access. Local. Remote. NetBIOS. TCP/IP. Figure 5 shows another portion of ontology of the Persistence category. Its related concepts are Format, Access, .... Middleware. Figure 6 shows the process for data search/query/integration from the

A Multiple Layered Spatial Data Integration Framework Based on ...
modeling, data mining, textual analysis, and statistical techniques. ... model which can be converted to database schema, or a result of a data mining .... Excel. Interface. POP3. Distributed. API. WebService. ODBC. DCOM. CORBA. JAVA. RMI. Access. Lo

G2 Remoting: A Cycle Stealing Framework based on ...
A dedicated server machine is used as the physical manifestation of a virtual parallel machine on which remote objects logically reside from the programmers ... remote objects are not, however, physically created on this server machine; ..... example

Tai Chi synthesizer: a motion synthesis framework based on key ...
presents a novel framework for synthesizing new motions based on given motion manuals .... exercise manuals, a graphical user interface based on ..... the table is considered as a node and two adjacent .... Lan C, Lai JS, Wong MK, Yu ML.Missing:

A Framework to Optimize Biodiversity Restoration Efforts Based on ...
tinguishing ecological systems that are capable to recover by autogenic processes from ... chances of restoration success, defined as the best cost/benefit outcome. ..... tivity with little biological data (Minor and Urban 2007) or even considering .

A Modular Verification Framework Based on Finite ...
strongly connect components that we will talk about from now on. ..... 0: no push button; 1: using push button1; 2: using push buttons 1 &. 2; using push buttons 1 ...

a framework based on gaussian mixture models and ...
Sep 24, 2010 - Since the invention of the CCD and digital imaging, digital image processing has ...... Infrared and ultraviolet radiation signature first appears c. .... software can be constantly upgraded and improved to add new features to an.

RefaX: A Refactoring Framework Based on XML
system to improve its internal quality and preserving its external .... technologies, such as XSLT [29], or as an API for extracting or .... converting the original source code files selected by the user into the ..... http://beautyj.berlios.de/beaut

Fast Orthogonal Projection Based on Kronecker Product - Sanjiv Kumar
gle precision) and projecting one vector can take 800 ms on a single core. In addition, in ..... clusters for each subspace is always set to a small number. (h = 256 in [16, 26]). ..... Springer Science & Business Media, 1992. [8] Y. Gong, S. Kumar, 

Color Image Watermarking Based on Fast Discrete Pascal Transform ...
It is much more effective than cryptography as cryptography does not hides the existence of the message. Cryptography only encrypts the message so that the intruder is not able to read it. Steganography [1] needs a carrier to carry the hidden message

Fast protein tertiary structure retrieval based on ... - Semantic Scholar
Feb 11, 2008 - Lee Sael,1 Bin Li,1 David La,2 Yi Fang,3 Karthik Ramani,3 Raif Rustamov,4 and Daisuke ...... Pearson WR, Lipman DJ. Improved tools for ...