Content Based Image Retrieval using Median Optimized Cross-Channel Local Ternary Pattern

DOI : 10.17577/IJERTV8IS060705
Download Full-Text PDF Cite this Publication

Text Only Version


Content Based Image Retrieval using Median Optimized Cross-Channel Local Ternary Pattern

Shubham Sharma

Dept. of CSE & IT,

Madhav Institute of Technology & Science, Gwalior, India

Punit Kumar Johari

Dept. of CSE & IT,

Madhav Institute of Technology & Science, Gwalior, India

Abstract Accurately finding images from a huge color image dataset is a highly complex task for human perspective. Different CBIR techniques are developed for describing the image content based on extracted low level features. The Proposed method extracts cross-channel chromatic-textural information using HSV color space components. This method extracts not only texture statistical information but also captures color information. Median Optimized Local Ternary Pattern is less susceptible to noise and can capture information about the macrostructure. It is extremely robust to random pixel corruption and image noise, including salt and noise, Gaussian Blur, Gaussian noise. Results of experiment are based on Dataset of corel 1k, corel 10K, MIT Vistex, Stex dataset shows that the proposed system much better compared to existing techniques. It achieves high precision and greatly reduces the processing time and it performs better with regard to average recall and precision.

Keywords CBIR,LBP ,LTP, MCLTP , CH, Corel database , MIT Vistex Dataset , Stex Dataset,


    With the increasing number of images captured by digital devices and advancement of content-based image retrieval (CBIR), Searching of images with user-specified features in large image datasets has become increasingly dominant and demanding task than ever before [1]. CBIR systems are becoming more prevailing now these days. Robustness of these systems hangs on the extraction of structural feature method that captures low level features present in image. In quintessential CBIR techniques, image indexing is based on its visual contents as characteristics. These features comprise the characteristics such as shape, texture and color. After then Feature database is used for storing these visual features. When a query is given, the features of query are computed to measure similarity with the feature of images present in feature database by CBIR based algorithm, after query a set of comparable images are returned as retrieval result [2].

    Over the past few years, many feature extraction algorithms have been proposed based on image visual content such as shape, texture and color. Due to variation in content of images and human perception, image retrieval has become very complex task and devising a feature which is best suited for all the purposes is very difficult.

    Color is a most commonly used image retrieval visual property. Color features are relatively more robust than any other feature and isn’t sensitive to image size, movement and rotation [3]. Color Histogram is popular because it is trivial to calculate, and it is also robust against minor camera viewpoint adjustment [4]. Color Histogram (CH) is best suited for color distribution analysis across different color channels. Multiple images can have same color histogram if texture features are not considered. Texture features are useful in image segmentation and classification, since texture features extracts local variations in image content. Texture features have drawn a ton of consideration as of late [5, 6].

    Key points of proposed method are following:

    • HSV channel is used opposed to RGB. RGB Color Space isn’t favored due to blending of luminance and chrominance information and its Non-uniform characteristics for color analysis and color-based detection. Approaches based on Luminance and Hue discriminate information on color and intensity even under irregular lighting circumstances.
    • Median optimized local ternary patterns are used for extraction of 8 neighborhood value at radius of 1 and 2, resulting more coverage of micro deviation.
    • Patterns are measured using cross combination of HSV channels for extraction of textural information covering different channels.
    • Median optimized cross-channel local ternary pattern is utilized for establishing cross channel relation between the chrominance and luminance components of the image.
    1. Local Binary Pattern (LBP)

      LBP is a commonly adopted methodology for texture analysis of features in various applications. Most significant property of LBP operators most important property is robustness of monotonic gray-scale modifications caused in real world applications, i.e., by illumination deviations [5]. It is computationally simple; this allows images to be analyzed in challenging real-time configurations. LBP extracts intensity variations in candidate neighborhood of every pixel in image. Local binary pattern is computed as


      here i , j represents pixel location, Ip and I0 denotes neighborhood and center pixel intensity value. And


      Fig. 2.1 Computation of LBP

    2. Local Ternary Pattern (LTP)

    LTP uses values -1, 0 and +1 for encoding intensity differences instead of 0 and 1 used in LBP. It is an expansion of local binary pattern [7]. Taking p as a neighborhood pixel, k as threshold constant and c as the center pixel value, the result is calculated as:


    The ternary pattern obtained is broken down into lower and upper binary pattern. By replacing 0 for -1 and 0 and retaining 1 the upper pattern is acquired. The lower binary pattern is acquired by replacing 0 for 1 and 0 and -1 with 1.

    Fig. 2.2 Computation of LTP

    Center-symmetric Local binary Pattern (CSLBP) extracts patterns of low dimensions considering pixels in the interesting region [8]. Tan et al. modified binary pattern into local ternary pattern of three values [7]. Local tetra pattern (LTrP) encodes the relation using directions calculated from first order derivatives between the reference pixel and the neighbor pixels [9]. The edge information is analyzed in four directions using Directional local extreme pattern (DLEP) [6]. Local extrema peak valley pattern (LEPVP) [10] is used for collecting local directional information on obtained wavelet coefficients. Xu et al. proposed an object segmentation technique for object based

    stereo image retrieval by considering a combination of depth information and color feature [11].


    We considered a variation of median optimized Local Ternary Pattern method and augmentation of color space additionally for extraction of information from input image. Here Median optimized local ternary patterns are applied for extraction of finer variations. Color and local texture information is calculated by working on HSV image components to search features. A 5×5 neighborhood matrix is formed from each of the H, S, V components, alternatively and for each matrix center pixel is calculated from corresponding median pixel from the V channel. Thereafter, from cross- channel 5×5 image blocks median optimized local ternary pattern are calculated. Considering V as the value channel and E as one image channel, i.e., E {S, V, H}. Let IV and IE represent the intensity value for the V-channel and E-channel and Vm as median value of V-channel block. then Median optimized MCLTP pattern are calculated on 3×3 neighborhood pixel map as


    Where p is the position local pixel and it varies from 1 to 8. These local pixels encoded values are further divided int lower and upper binary patterns according to -1 and 1. To obtain the Median optimized multi-channel local ternary pattern binary weights are applied. These values are obtained from range 0 to 255, 8-bit patterns. The feature vector consists of histogram of 256-bin across all combination of S-V, V-V and H-V components is constructed, after computing every pixel value in image. Besides the textural-color information obtained by proposed feature, saturation and hue components contain information about variation of color in the image which is useful. Finally, for full global information coverage median optimized cross channel local ternary pattern feature descriptor is concatenated with histograms obtained from Hue and Saturation channels.

    Fig. 3.1 Block diagram of proposed method


    Similarity between dataset images and query image Q is measured using Euclidean distance [12] dEuc It is measured by

    comparing images feature vectors. fQ and fDB denote query image and dataset image features, length is denoted by N. Euclidean distance dEuc between dataset DBi and query Q image is calculated as


    For performance evaluation, experiments are conducted on three datasets: Corel-1k (dataset-1)[13], Corel-10k (dataset-2)

    [14] and Stex (dataset-3)[15].The COREL 1k contains 1000 natural images of 10 categories including Foods, Dinosaurs, Mountains, Horses, Beaches, Buses, Buildings, Elephants, Flowers and African tribes,. COREL 10k has 100 categories of natural images including car, fish, beach, door, flower, sunset butterfly. There are 100 images in each category. Figs. 5.1, 5.2

    ,5.3 shows some images from the datasets.

    Fig 5.1 Corel 1K dataset

    Fig 5.2 Corel 10K dataset

    Fig 5.3 Stex dataset

    In experiments on dataset-1, percentage of accuracy and recall are computed. Compared to other techniques, the proposed method shows better performance in retrieval.

    Fig 5.4 Corel 10k Dataset Average Precision

    Fig 5.5 Corel 10k Dataset Average Precision

    In first experiment natural dataset of image Corel 10k [10] is used.

    Corel 10k database has 10,000 images categorized into 100 classes, such as buildings, food, mountains, fish, horses. There are 100 JPEG images in each category of size 128×192 or 192×128. Figs. 5.4 and 5.5 shows Average Precision and Average Recall. Proposed techniques performs better than current methods such as LTrP+CH, LTP+CH, LBP+CH, MCLTP [16] with precision of 61.8% on retrieval of 10 images. Here CH denotes color histogram.

    Fig 5.6 Corel 1000 Dataset Average precision

    Fig 5.7 Corel 1000 Dataset Average Recall

    In next experiment, Corel 1000 natural database is used [9].

    It contains 1,000 natural images categorized into 10 classes, such as flowers, beaches, buses, African tribes. The size of images is 256×384 or 384×256 in JPEG format. Figs 5.6 and

    5.7 show that proposed technique performs better with recall of 55.10% and precision of 85.5% on average, which is better than existing methods LBP+CH, LTrP+CH MCLTP [16] and LTP+CH.

    Fig 5.8 Stex Dataset Average Precision

    Fig 5.9 Stex Dataset Average Recall

    In last experiment, STex dataset is used [10].

    The Salzburg Texture Image Dataset is a big collection of 476 color texture images. It contains 7616 128×128. Comparing with current methods including DLEP+CH, MCLTP [16], LEPVP+CH, the results of the proposed technique is shown in Figs. 5.8 and 5.9. On retrieval of 16 images average accuracy 79.8% is achieved using proposed method.


In this paper we have proposed color-textural feature based on median optimized cross-channel LTP for CBIR. Cross channel features are extracted using LTP obtained over neighbourhood. Proposed method captures chromatic-textural information of image. Experiments are performed on Corel 1000, Corel 10k and STex datasets, shows performance of proposed method compared to the current methods in term of image retrieval.

The proposed technique provides retrieval of vast variety of images with great effectiveness.


  1. Datta, Ritendra & Li, Jia & Ze Wang, James Content-based image retrievalapproaches and trends of the new age, ACM Computing Surveys. pp 253-262, 2005
  2. Yong Rui, Thomas S. Huang, Shih-Fu Chang, Image Retrieval: Current Techniques, Promising Directions, and Open Issues, Journal of Visual Communication and Image Representation, Volume 10, Issue 1,Pages 39-62, 1999,ISSN 1047-3203
  3. Young-jun Song, Won-bae Park, Dong-woo Kim and Jae-hyeong Ahn, “Content-based image retrieval using new color histogram,” Proceedings of 2004 International Symposium on Intelligent Signal Processing and Communication Systems, 2004. ISPACS 2004., Seoul, South Korea, 2004, pp. 609-611.
  4. G. Pass and R. Zabih, “Histogram refinement for content-based image retrieval,” Proceedings Third IEEE Workshop on Applications of Computer Vision. WACV’96, Sarasota, FL, USA, 1996, pp. 96-102.doi: 10.1109/ACV.1996.572008.
  5. Timo Ojala, Matti Pietikäinen, David Harwood, A comparative study of texture measures with classification based on featured distributions, Pattern Recognition, Volume 29, Issue 1,1996,Pages 51-59,ISSN 0031- 3203.
  6. Murala, Subrahmanyam, Maheshwari, R. P. and Balasubramanian, R., Directional local extrema patterns: a new descriptor for content based image retrieval”, International Journal of Multimedia Information Retrieval, Volume 1,Issue 3,pages 191-203,ISSN 2192-662X.
  7. Taha H. Rassem and Bee Ee Khoo, Completed Local Ternary Pattern for Rotation Invariant Texture Classification, The Scientific World Journal, vol. 2014, Article ID 373254, 10 pages, 2014.
  8. Guo Z, Zhang L, Zhang D A completed modeling of local binary pattern operator for texture classification. IEEE Trans Image Process 19(6):16571663, 2018
  9. Murala S, Maheshwari R, Balasubramanian R, Local tetra patterns: a new feature descriptor for content based image retrieval. IEEE Trans Image Process 21(5):28742886, 2012
  10. Srivastava, Varun & Purwar, Ravindra. An extension of local mesh peak valley edge based feature descriptor for image retrieval in bio- medical images. ADCAIJ: Advances in Distributed Computing and Artificial Intelligence Journal. 7. 77. 10.14201/ADCAIJ2018717789, 2018
  11. Geng, W., Zhang, C., & Wu, G., Adaptive video object proposals by a context-aware model. Multimedia Tools and Applications, 77, 10589- 10614, 2017
  12. Murala S, Wu QMJ , Local ternary co-occurrence patterns: a new feature descriptor for MRI and CT image retrieval, Neuro-computing 119, pp- 399-412
  13. Jia Li, James Z. Wang, “Automatic linguistic indexing of pictures by a statistical modeling approach,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 25, no. 9, pp. 1075-1088, 2003.
  14. Guang-Hai Liu, Jing-Yu Yang, etc,. Content-based image retrieval using computational visual attention model, Pattern Recognition, 48(8) (2015) 2554-2566.
  15. Meerwald P, Kwitt R Salzburg texture image database. Accessed on: June 1, 2019. [Online] Available:
  16. Agrawal M, Singhal A, Lall B, Multi-channel local ternary pattern for content-based image retrieval, Pattern Analysis and Applications, jan- 2019, ISSN 1436-755X

Leave a Reply