Giter Club home page Giter Club logo

contentbasedimageretrival's Introduction

Content-Based-Image-Retrieval

Content-based image retrieval (CBIR) using Texture and Colour Moments is a technique that allows users to search and retrieve images similar to query images from a large database based on their visual content. CBIR systems use various features extracted from images, such as colour, texture, shape, and spatial relationships, to represent and compare images.

Methods and Model

1. Colour Moments

The colour moments are a set of statistical measures that describe the colour distribution of an image. We calculate the first, second, and third-order moments of the colour channels of an image (here, HSV scheme of Hue, Saturation and Value), which provide information about the Mean, Variance, and Skewness of the colour distribution.

2. Linear Binary Patterns (LBPs)

Linear Binary Patterns (LBP) is a widely used texture descriptor in image processing and computer vision. LBP is a simple yet effective descriptor that encodes an image’s local texture information by comparing the pixel values of a central pixel to its surrounding neighbours in a pre-defined, circular or rectangular region. For each pixel in the region, a binary value is assigned based on whether the intensity value is greater or less than the intensity value of the central pixel. These binary values are then concatenated to form a binary pattern that describes the texture of the region.

image

Binary equivalent: 00010111 and Decimal equivalent: 23. So, 23 will be the LBP value for the circled pixel.
Similarly, for each pixel, corresponding values are calculated using which a histogram is plotted that is used as a feature vector for the image to compare it with other images.

3. Similarity Measures

Similarity measures are used to compare two or more images and determine how similar or different they are.

Euclidean Distance

It measures the distance between the feature vector values (considered points in n-D space) of two images. The lower value of Euclidean distance signifies that the two images are more similar or less dissimilar than the others having larger values.

Cosine Similarity

It is mathematically defined as the dot product of the feature vectors divided by their magnitude. The higher cosine similarity value signifies that the two images are more similar or less dissimilar than the others with lesser values. A negative value means that the two images are opposite vectors or not identical.

\

4. Model

\

Results

So, overall the average precision and recall for each class were calculated using different methods are:

\

Analysis

After applying the proposed model to all ten different classes and calculating the average precision and recall by taking random query images from the dataset, we get:



Our model has achieved satisfactory precision by using Colour Moments and Texture features. It can be improved by taking more features into account, like shape, edges and texture features, making the feature vector more robust to differentiate between images more precisely.

contentbasedimageretrival's People

Contributors

himanshiomare avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.