ISSN ONLINE(2278-8875) PRINT (2320-3765)

All submissions of the EM system will be redirected to Online Manuscript Submission System. Authors are requested to submit articles directly to Online Manuscript Submission System of respective journal.

AN EFFICIENT CONTENT BASED IMAGE RETRIEVAL USING LOCAL TETRA PATTERN

T.Prathiba1 and G. Soniah Darathi2
  1. Assistant professor, Dept. of ECE, Kamaraj College of Engineering and Technology, Virudhunagar, Tamilnadu, India
  2. PG Part Time Student, [Applied Electronics], Dept. of ECE, Anna University Chennai, Tamilnadu, India
Related article at Pubmed, Scholar Google

Visit for more related articles at International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering

Abstract

The explosive growth of digital image libraries increased the requirements of Content based image retrieval (CBIR). It can automatically search the desired image from the huge database. This paper proposes an advanced image retrieval using Local Tetra Pattern (LTrP)s. It develops a strategy to compute n-th order LTrP using (n-1) th order horizontal and vertical derivatives and it derives an efficient CBIR. The previously declared Local Binary Pattern(LBP) can able to encode the images with two distinct values and Local Ternary Pattern(LTP) can encode images with only three distinct values but the LTrP encoded the images with four distinct values as it is able to extract more detailed information.

Keywords

Content Based Image retrieval (CBIR), Local Tetra Pattern (LTrP), Directional Pattern, Data Base collection, Query Image.

INTRODUCTION

Content-based image retrieval (CBIR), also known as query by image content (QBIC) and content-based visual information retrieval (CBVIR) is the application of computer vision techniques to the image retrieval problem, that is, the problem of searching for digital images in large databases. Content based image retrieval is opposed to concept based approaches. "Content based" means that the search will analyze the actual contents of the image rather than the metadata such as keywords, tags, and/or descriptions associated with the image. The term 'content' in this context might refer to colors, shapes, textures, or any other information that can be derived from the image itself. CBIR is desirable because most web based image search engines rely purely on metadata and this produces a lot of garbage in the results. Also having humans manually enter keywords for images in a large database can be inefficient, expensive and may not capture every keyword that describes the image. Thus a system that can filter images based on their content would provide better indexing and return more accurate results. Texture can be defined as the spatial distribution of gray levels. Texture analysis able to extracts the texture features namely contrast, directionality, coarseness and busyness and it is applicable in computer vision, pattern recognition, segmentation and image retrieval. Texture retrieval retrieves the texture images such as marble, ceramic tiles ,etc. It is a branch of texture analysis. The relevance feedback mechanism makes it possible for CBIR systems to learn human concepts since users provide some positive and negative image labeling information, which helps systems to dynamically adapt the relevance of images to be retrieved.

METHODOLOGY

A. Local Binary Pattern (LBP)
LBP method provides a robust way for describing pure local binary patterns in a texture. The original 3×3 neighborhoods thresholded by the value of the center pixel. This threshold neighborhood pixel values are multiplied by binomial values of the corresponding pixels. Resulting pixel value is summed for the LBP number of this texture unit. LBP method is gray scale invariant and can be easily combined with a simple contrast measure by computing for each neighborhood the difference of the average gray level of those pixels which have the value 1 and those which have the value 0 respectively as shown in Figure.1.
LBP is a two-valued code. The LBP value is computed by comparing gray value of centre pixel with its neighbors, using the below equations (1) and (2).
equation
B. Local Ternary Pattern (LTP)
LTP is a three-valued code, in which gray values in the zone of width ± T around Gc are quantized to zero, those above (Gc+T) are quantized to +1, and those below (Gc-T) are quantized to-1.Local Ternary Patterns are an extension of Local Binary Pattern. Unlike LBP, it does not thresholded the pixels into 0 and 1 rather it uses a threshold constant ‘T’ to threshold pixels into three values. Here ‘T’ is a user specified threshold, So LTP code more resistant to noise. LTP can be determined by equation (3).
equation
C. Local Tetra Pattern (LTrP)
The LBP and the LTP extract the information based on the distribution of edges, which are coded using only two directions (positive direction or negative direction). Thus, it is evident that the performance of these methods can be improved by differentiating the edges in more than two directions. This observation has motivated to propose the four direction code, referred to as local tetra patterns (LTrPs) for CBIR. The LTrP describes the spatial structure of the local texture using the direction of the center gray pixel. In this work, propose a second-order LTrP that is calculated based on the direction of pixels using horizontal and vertical derivatives.
Algorithm:
Input: Query image; Output: Retrieval result
1. Load the image, and convert it into grayscale.
2. Apply the first-order derivatives in horizontal and vertical axis.
3. Calculate the direction for every pixel.
4. Divide the patterns into four parts based on the direction of the center pixel.
5. Calculate the tetra patterns, and separate them into three binary patterns.
Calculation of Tetra Pattern
Local Tetra Pattern of each center pixel is determined by calculating directional pattern using n-th order derivatives, commonly we use second order derivatives due to its less noise comparing higher order.Let, The Given image-I, firstorder derivatives of the center pixel along 0 and 900 (i.e. horizontal and vertical) directions are calculated by subtracting its gray value of the center pixel with its horizontal and vertical gray values.The second order derivatives can be defined as a function of first order derivatives. It gives four possible directions 1,2,3,4 i.e. the image is converted into four values, illustrates in figure.5.Each directions of center pixel will give three tetra pattern (3 0 3 4 0 3 2 0). Thus, we get 12(4×3) binary patterns. Magnitude of first order derivatives gives the 13th binary pattern (1 1 1 0 0 1 0 1).

EXPERIMENTAL RESULTS

The proposed novel method is programmed by using MATLAB image processing tool. The performance of the algorithm is evaluated on texture images. Let be discuss about the performance evaluation.
a) Database collection
The below figure .6. Illustrates images of memory size 48.0 KB (128 × 128) used for databases. This database consists of a large number of images of various contents ranging from animals to outdoor sports to natural images.
b) Selection of query image
Content Based Image Retrieval retrives the image from the database which are matched to the query image. Select an image as a query image and processing it.Query image selection will be shown in figur.7.
c) Simulation Results
The proposed Local Tetra Pattern (LTrP ) method has the following steps.
(i) Initially, Apply the original image as a query image to the process,shown in figure.8.a.
(ii) In the second step,original image to gray image conversion will be made as in figure .8.b.
(iii) Third step involves Binary Pattern generation of gray scale image,shown in figure.8.c.
(iv)Finally,Determination of Directional Pattern used to extract more relavant information as shown in figure.8.d.
d) Matching Result
Finally, Similarity Measurement takes place,those images in the database matched with the query image will be retrieved from the database as a output image shown in below figure.10.

CONCLUSIONS AND DISCUSSIONS

In this work, an image retrieval technique referred as LTrPs for CBIR is applied. The LTrP encodes the images based on the direction of pixels that are calculated by horizontal and vertical derivatives. The magnitude of the binary pattern is collected using magnitudes of derivatives. Proposed method improves the retrieval result as compared with the standard LBP also improves the average precision rate, however the algorithmic procedure much complex than LBP and LTP. Here, horizontal and vertical pixels have been used for derivative calculation.
The results can be further improved by considering the diagonal pixels for derivative calculations in addition to horizontal and vertical directions. Due to the effectiveness of the proposed method, it can be also suitable for other pattern recognition applications such as face recognition, finger print recognition, etc.

Figures at a glance



Figure Figure Figure Figure Figure
Figure 1 Figure 2 Figure 3 Figure 4 Figure 5
Figure Figure Figure Figure Figure
Figure 6 Figure 7 Figure 8 Figure 9 Figure 10

References