Determining Image similarity with Quasi Euclidean Metric

Similar documents
Image Quality Assessment Techniques: An Overview

An Improved CBIR Method Using Color and Texture Properties with Relevance Feedback

Structural Similarity Based Image Quality Assessment Using Full Reference Method

Image Quality Assessment based on Improved Structural SIMilarity

Latest development in image feature representation and extraction

Content Based Image Retrieval: Survey and Comparison between RGB and HSV model

Fabric Image Retrieval Using Combined Feature Set and SVM

Cursive Handwriting Recognition System Using Feature Extraction and Artificial Neural Network

Texture Image Segmentation using FCM

Fabric Defect Detection Based on Computer Vision

Efficient Color Image Quality Assessment Using Gradient Magnitude Similarity Deviation

Enhancing the Image Compression Rate Using Steganography

Color-Based Classification of Natural Rock Images Using Classifier Combinations

Multi-Scale Kernel Operators for Reflection and Rotation Symmetry: Further Achievements

MRT based Adaptive Transform Coder with Classified Vector Quantization (MATC-CVQ)

Extraction of Color and Texture Features of an Image

SSIM Image Quality Metric for Denoised Images

OBJECTIVE IMAGE QUALITY ASSESSMENT WITH SINGULAR VALUE DECOMPOSITION. Manish Narwaria and Weisi Lin

Color Local Texture Features Based Face Recognition

FEATURE EXTRACTION TECHNIQUES FOR IMAGE RETRIEVAL USING HAAR AND GLCM

Improving Latent Fingerprint Matching Performance by Orientation Field Estimation using Localized Dictionaries

Digital Image Steganography Techniques: Case Study. Karnataka, India.

Copyright Detection System for Videos Using TIRI-DCT Algorithm

EE 5359 MULTIMEDIA PROCESSING SPRING Final Report IMPLEMENTATION AND ANALYSIS OF DIRECTIONAL DISCRETE COSINE TRANSFORM IN H.

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

MULTI-SCALE STRUCTURAL SIMILARITY FOR IMAGE QUALITY ASSESSMENT. (Invited Paper)

Reduction of Blocking artifacts in Compressed Medical Images

Implementation and analysis of Directional DCT in H.264

TRIE BASED METHODS FOR STRING SIMILARTIY JOINS

Content Based Image Retrieval Using Color Quantizes, EDBTC and LBP Features

FACE DETECTION AND LOCALIZATION USING DATASET OF TINY IMAGES

CLASSIFICATION OF BOUNDARY AND REGION SHAPES USING HU-MOMENT INVARIANTS

Holistic Correlation of Color Models, Color Features and Distance Metrics on Content-Based Image Retrieval

New Approach of Estimating PSNR-B For Deblocked

MATRIX BASED INDEXING TECHNIQUE FOR VIDEO DATA

N.Priya. Keywords Compass mask, Threshold, Morphological Operators, Statistical Measures, Text extraction

HCR Using K-Means Clustering Algorithm

Image Inpainting by Hyperbolic Selection of Pixels for Two Dimensional Bicubic Interpolations

(Refer Slide Time 00:17) Welcome to the course on Digital Image Processing. (Refer Slide Time 00:22)

A Robust Method for Circle / Ellipse Extraction Based Canny Edge Detection

Image Matcher Content Based Image Retrieval System Using Image Sub Blocks and Indexing

An Efficient Single Chord-based Accumulation Technique (SCA) to Detect More Reliable Corners

Part-Based Skew Estimation for Mathematical Expressions

Similarity Image Retrieval System Using Hierarchical Classification

Image Resizing Based on Gradient Vector Flow Analysis

Pattern Recognition Using Graph Theory

Keywords: Contrast Masking, Gradient Similarity, Human Visual System (HVS), Image Quality Assessment (IQA), Structural Similarity (SSIM).

Improved Qualitative Color Image Steganography Based on DWT

Robust Image Watermarking based on DCT-DWT- SVD Method

Invarianceness for Character Recognition Using Geo-Discretization Features

QUERY REGION DETERMINATION BASED ON REGION IMPORTANCE INDEX AND RELATIVE POSITION FOR REGION-BASED IMAGE RETRIEVAL

DEEP LEARNING OF COMPRESSED SENSING OPERATORS WITH STRUCTURAL SIMILARITY (SSIM) LOSS

A New Algorithm for Shape Detection

Line Segment Based Watershed Segmentation

Image enhancement for face recognition using color segmentation and Edge detection algorithm

Edge-Directed Image Interpolation Using Color Gradient Information

Nearest Clustering Algorithm for Satellite Image Classification in Remote Sensing Applications

Learning to Match. Jun Xu, Zhengdong Lu, Tianqi Chen, Hang Li

A reversible data hiding based on adaptive prediction technique and histogram shifting

Digital Image Processing. Introduction

Sketch Based Image Retrieval Approach Using Gray Level Co-Occurrence Matrix

Comparison of Online Record Linkage Techniques

Decomposing and Sketching 3D Objects by Curve Skeleton Processing

New structural similarity measure for image comparison

An Efficient Approach for Color Pattern Matching Using Image Mining

Content Based Image Retrieval Using Color and Texture Feature with Distance Matrices

Robust Shape Retrieval Using Maximum Likelihood Theory

TEXT DETECTION AND RECOGNITION IN CAMERA BASED IMAGES

Traffic Signs Recognition using HP and HOG Descriptors Combined to MLP and SVM Classifiers

Content based Image Retrievals for Brain Related Diseases

A New Feature Local Binary Patterns (FLBP) Method

Improving Classifier Performance by Imputing Missing Values using Discretization Method

EE 5359 Multimedia project

Structural Similarity Optimized Wiener Filter: A Way to Fight Image Noise

PROBABILISTIC MEASURE OF COLOUR IMAGE PROCESSING FIDELITY

Direction-Length Code (DLC) To Represent Binary Objects

Fingerprint Image Enhancement Algorithm and Performance Evaluation

New Removal Operators for Surface Skeletonization

An Efficient Character Segmentation Based on VNP Algorithm

Studies on Watershed Segmentation for Blood Cell Images Using Different Distance Transforms

An Unsupervised Technique for Statistical Data Analysis Using Data Mining

Content Based Image Retrieval Using Combined Color & Texture Features

A Laplacian Based Novel Approach to Efficient Text Localization in Grayscale Images

Texture Segmentation by Windowed Projection

No Reference Medical Image Quality Measurement Based on Spread Spectrum and Discrete Wavelet Transform using ROI Processing

Chapter 2: From Graphics to Visualization

Edge Histogram Descriptor, Geometric Moment and Sobel Edge Detector Combined Features Based Object Recognition and Retrieval System

Image Enhancement Using Fuzzy Morphology

Handwritten Mathematical Expression Recognition

COLOR BASED REMOTE SENSING IMAGE SEGMENTATION USING FUZZY C-MEANS AND IMPROVED SOBEL EDGE DETECTION ALGORITHM

Automatic Colorization of Grayscale Images

Wavelet Based Image Retrieval Method

Graph based Image Segmentation using improved SLIC Superpixel algorithm

International Journal of Scientific Research & Engineering Trends Volume 4, Issue 6, Nov-Dec-2018, ISSN (Online): X

Multidirectional 2DPCA Based Face Recognition System

DCT-BASED IMAGE QUALITY ASSESSMENT FOR MOBILE SYSTEM. Jeoong Sung Park and Tokunbo Ogunfunmi

A Keypoint Descriptor Inspired by Retinal Computation

CHAPTER 2 TEXTURE CLASSIFICATION METHODS GRAY LEVEL CO-OCCURRENCE MATRIX AND TEXTURE UNIT

Including the Size of Regions in Image Segmentation by Region Based Graph

Journal of Asian Scientific Research FEATURES COMPOSITION FOR PROFICIENT AND REAL TIME RETRIEVAL IN CBIR SYSTEM. Tohid Sedghi

Transcription:

Determining Image similarity with Quasi Euclidean Metric Vibhor Singh 1, Vishesh Devgan 2, Ishu Anand 3, and Narina Thakur 4 1 Department of Computer Science and Engineering Bharati Vidyapeeths College of Engineering, New Delhi, India vibhor97singh@gmail.com 2 Department of Computer Science and Engineering Bharati Vidyapeeths College of Engineering New Delhi, India vdevgan100@gmail.com 3 Department of Computer Science and Engineering Bharati Vidyapeeths College of Engineering New Delhi, India ianand.ishu@gmail.com 4 Department of Computer Science and Engineering Bharati Vidyapeeths College of Engineering New Delhi, India narinat@gmail.com Abstract. Image similarity is a core concept in Image Analysis due to its extensive application in computer vision, image processing, and pattern recognition. The objective of our study is to evaluate Quasi Euclidean metric as an image similarity measure and analyze how it fares against the existing standard ways like SSIM and Euclidean metric. In this paper, we analyzed the similarity between two images from our own novice dataset and assessed its performance against the Euclidean distance metric and SSIM. We also present experimental results along with evidence indicating that our proposed implementation when applied to our novice dataset, furnished di erent results than standard metrics in terms of e ectiveness and accuracy. In some cases, our methodology projected remarkable performance and it is also interesting to note that our implementation proves to be a step ahead in recognizing similarity when compared to the likes of SSIM and Euclidean Distance metric. Keywords: Quasi-Euclidean Image Similarity Metrics Distance. 1 INTRODUCTION Similarity measure can be elucidated as the measure of how similar two data/signal are. Alternatively, a distance metric can be termed as similarity measure[9]. Similarity measure using metrics in the context of images, is any distance with dimensions representing features or pixels of an image. If this distance is minute, there will be a higher measure of similarity and as the distance increases, lower will be the measure of similarity. The term similarity between two objects is subjective to the context it s being referred to.it is highly dependent on the domain.

2 V. Singh et al. For example, two food items can be similar in terms of either their color, taste or even calories. The current section gives a high-level introduction about similarity measures. Section 2 describes the distance metrics used in our research along with their formulas. Section 3 contains the methodology that has been used to achieve our results. Section 4 contains information on how the experiment was setup and the results that were obtained. Section 5 contains the conclusion that the paper draws from the results obtained and finally Section 6 mentions how the results drawn from this paper can be extended further. 2 Background 2.1 Euclidean Distance Euclidean Distance is a metric that is widely used to measure distance between two points in Euclidean Space [1]. It is most frequently used when the data being worked upon is continuous in nature. It is often described as the length of the straight line between any two given points. In this paper, we have used Normalized Euclidean Distance. q Euclidean((x 1,y 1 ), (x 2,y 2 )) = (x 2 x 1 ) 2 +(y 2 y 1 ) 2 (1) 2.2 Structural Similarity Index The SSIM method is a well-known quality metric used to measure the similarity between two images[4] and is a part of Perceptual Image Processing[10]. SSIM works by extracting structural information of the object which is present in the image. This method was developed by Wang et al [2]. The SSIM is calculated for each overlapped image block by using a pixel-by-pixel sliding window, and therefore, it can provide the distortion/similarity map in the pixel domain[8]. It models any distortion in the image as the blend of three constituent factors which are luminance distortion, loss of correlation and contrast distortion. SSIM(x, y) = (2µ xµ y + C 1 )+(2 xy + C 2 ) (µ 2 x + µ 2 y + C 1 )( 2 x + 2 y + C 2 ) (2) 2.3 Quasi-Euclidean Quasi-Euclidean metric, like the name suggests, is similar to Euclidean metric but it di ers as it measures the total Euclidean distance along a set of horizontal, vertical and diagonal line segments whereas Euclidean distance is measured only along a straight line [3]. It is a path-based distance metric. Path-based distance metric functions are often used on the discrete plane to compute the distance between two pixels as

Determining Image similarity with Quasi Euclidean Metric 3 the length of the shortest (not necessarily unique) path linking them. The degree of approximation to the Euclidean distance depends essentially upon which are the unit moves permitted along the path, and on the weights used to measure them [6]. As Euclidean Distance measures the shortest distance between 2 points, other path-based metrics like quasi-euclidean, try to approximate their value as close to the minimum value as they can. The Quasi-Euclidean metric, unlike other conventional metrics, uses knight moves to approximate to Euclidean distance. The shape formed It is a hexadecagonal metric (Figure 1) as it uses a 5 by 5 neighborhood to approximate to Euclidean distance. Fig. 1. The outline of 5x5 neighborhood gives a hexadecagon outline QE((x 1,y 1 ), (x 2,y 2 )) = x 1 x 2 +( p 2 1) y 1 y 2 (3) if x 1 x 2 > y 1 y 2 otherwise, QE((x 1,y 1 ), (x 2,y 2 )) = ( p 2 1) x 1 x 2 + y 1 y 2 (4) where (x 1,y 1 ) and (x 2,y 2 ) denotes pixel of image1 and image2 respectively. 3 Proposed Methodology This paper implements Quasi Euclidean metric because this metric takes into account diagonal, vertical as well as horizontal pixels in it s formula while comparing and measuring similarity between two images. The approach for successful execution of our method is -: 1. First, Anaconda Cloud software[5] and Python (version 3) were set up. 2. Jupyter notebook was employed to write the code and run. 3. Libraries including Sci-kit, Sklearn, Numpy, Scipy, cv2 (OpenCV) and Math were used.

4 V. Singh et al. 4. The dataset this paper works upon was a novice dataset that was handpicked in a non deterministic fashion having images categorized into several objects. 5. Two RGB JPEG images of size 800 x 800 were picked at a time and used as input. 6. Next, these RGB images were converted to Gray-scale color palette for simpler calculation and implementation. 7. Now, the two Gray-Scale images were compared with each other by calculating their resolution and then running a loop until maximum values of resolution inside which the Quasi-Euclidean distance was calculated. 8. In this paper, to calculate this metric, its formulae given by (3) and (4) were used. 9. Then, SSIM and Euclidean distances were calculated using pre-defined library functions in Sci-kit. 10. Finally, similarity between the two input images using Quasi-Euclidean and other metrics were obtained and was given as the program s output. 4 Application and Experimental Results Our major intention of this implementation was to extensively verify and validate the accuracy and e ectiveness of Quasi-Euclidean distance metric and contrast it against the commonly used metrics: Structural Similarity index (SSIM) and Euclidean Distance metric. 4.1 Setup For our implementation, we constituted a novice dataset that was handpicked in a non deterministic fashion. The images were scoured from Google resources. These images were carefully selected as they form an integral part of our implementation.we payed attention that input images were of same size and object of interest inside these images had roughly the same alignment in both the images that had to be compared for consistent results. On execution of Quasi-Euclidean metric along with SSIM and Euclidean metric assisted us in finding how our novice implementation functions when compared to the standard methods. Figure 2 illustrates the similarity measures obtained using each method as observed on some of the images. The likelihood of success that our novel methodology will exhibit in the use case of an image retrieval system to assess the viability of our proposed method formed a crucial benchmark for inspection of the results.

Determining Image similarity with Quasi Euclidean Metric 5 Fig. 2. A sample of Similarity measures for each category 4.2 Results Similarity was calculated for six di erent objects, with all of them making up our novice dataset. These were - Beaches, Cities, Dogs, Housing, People and Trees. Our dataset had 20 pictures belonging to each of the above categories. The average similarity of objects that were actually similar is shown in Table 1. Quasi-Euclidean metric and Euclidean metric are normalized and can have any value between 0 to 1 whereas, SSIM can have any value between -1 and 1. Higher the value, greater is the similarity in-case of all metrics. Table 1. Average similarity scores of similar images in all categories Similarity Metrics Object Category Quasi-Euclidean SSIM Euclidean Similarity Similarity Beach 0.8293 0.4946 0.7371 City 0.8618 0.3714 0.6957 Dogs 0.8091 0.5532 0.7013 Housing 0.6819 0.3267 0.5419 People 0.7822 0.6156 0.6812 Trees 0.8067 0.1382 0.6793

6 V. Singh et al. Here, SSIM measures the structural similarity between the two input images whereas our proposed method, Quasi-Euclidean calculates the distance between each pixel s intensity value over the full image and the resultant is normalized to express it in terms of a similarity measure. 5 Discussion and Conclusion The evaluation of similarity measures between images as given by di erent metrics facilitated us to discover that our proposed technique, Quasi-Euclidean Measure performs significantly better than Euclidean metric. It is interesting to note that in some cases the performance yielded by our methodology is a step ahead in recognizing similarity when compared to SSIM i.e evident from similarity measure of trees. This, however comes as no surprise because tree structures can show wide variation. This is noteworthy in images with a relatively high resolution (in our case all images were of 800x800). As a consequence, distance metrics performs significantly better as the pixel intensity of di erent trees doesn t vary nearly as much as their canopy structure or their overall shape and size does. The same can be observed in-case of apartments as the varying structure results in a low SSIM score. On the contrary, our technique furnishes a very decent similarity measure. On our novice dataset, Quasi-Euclidean metric almost consistently yielded exceptional results when the images were noticeably similar and even gave expected measures when the images were not similar as projected in Figure 3 through a comparison of metric values for an image of a villa and of an apartment building. Fig. 3. A sample of Similarity measures between an Apartment and a Villa

Determining Image similarity with Quasi Euclidean Metric 7 However, our technique does possess a major limitation which plagues most of the distance metrics. In the images containing completely di erent objects but having a very similar background or containing di erent objects but having similar intensity values, our proposed method depicted a very high similarity measure as majority of the pixel values are approximately equal and hence this results in a high similarity value. This is one of the few shortcomings of using pixel intensity values (especially in case of Gray-scale images) for calculating image similarity. 6 Future Work The proposed method works noticeably better than Euclidean Distance metric as well as SSIM in some cases. We also lay emphasis on deploying our technique for the construction of an e cient content based image retrieval system[7] in the future. The proposed method does have certain limitations, but we perceive that combined with perhaps a method like SSIM or any other method that accounts for structure of the object and optimizing the weights given to the individual methods in the combined system to compute a similarity measure, could potentially make a very e cient and accurate method for an image retrieval system. References 1. Balu, R., and T. Devi. Design and development of automatic appendicitis detection system using sonographic image mining. International Journal of Engineering and Innovative Technology (IJEIT), ISSN (2012): 2277-3754. 2. Wang, Zhou, et al. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing 13.4 (2004): 600-612. 3. Distance Transform of a Binary Image. MathWorks. Accessed March 12, 2018. [Online]. Available: https://in.mathworks.com/help/images/distance-transform-ofa-binary-image.html 4. Hore, Alain, and Djemel Ziou. Image quality metrics: PSNR vs. SSIM. Pattern recognition (icpr), 2010 20th international conference on. IEEE, 2010. 5. Anaconda Software Distribution. Computer software. Vers. 4-4.5.8. Anaconda, Jul. 2017. Web. https://anaconda.com. 6. Di Baja, Gabriella Sanniti, and Edouard Thiel. Skeletonization algorithm running on path-based distance maps. Image and vision Computing 14.1 (1996): 47-57. 7. Hirata, Kyoji, and Toshikazu Kato. Query by visual example. international conference on extending database technology. Springer, Berlin, Heidelberg, 1992. 8. Liu, Anmin, Weisi Lin, and Manish Narwaria. Image quality assessment based on gradient similarity. IEEE Transactions on Image Processing 21.4 (2012): 1500-1512. 9. Kokare, Manesh, B. N. Chatterji, and P. K. Biswas. Comparison of similarity metrics for texture image retrieval. TENCON 2003. Conference on Convergent Technologies for the Asia-Pacific Region. Vol. 2. IEEE, 2003. 10. Shang, Xinli. Structural similarity based image quality assessment: pooling strategies and applications to image compression and digit recognition. (2007).