Coder Social home page Coder Social logo

harshitaggarwal2010 / improving-the-cbir-process Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 3 MB

An efficient framework for image retrieval using color, texture and edge features. Implementation of a research paper. Shows similar images based on input image. Improved CBIR process is implemented in Matlab.

MATLAB 98.79% M 1.21%
image-processing image-classification image-analysis image-retrieval cbir image-search image-similarity matlab

improving-the-cbir-process's Introduction

Improving-the-CBIR-Process

An efficient framework for image retrieval using color, texture and edge features. Implementation of a research paper.

Shows similar images based on input image.

Improved CBIR process is implemented in Matlab.

Dataset

Corel-10k dataset contains 100 categories, and there are 10,000 images from diverse contents such as sunset, beach, flower, building, car, horses, mountains, fish, food, door, etc. Each category contains 100 images of size 192ร—128 or 128ร—192 in the JPEG format. Corel-5K dataset consists of the first 5000 images, and Corel-10K dataset consists of the 10,000 images.

COREL 10k image database download page - http://www.ci.gxnu.edu.cn/cbir/Dataset.aspx Copy the first 5000 images and paste it to a new folder, it will become your COREL 5k dataset.

WANG (1k) image dataset download - http://wang.ist.psu.edu/~jwang/test1.tar

name the dataset folder as corel10k , corel5k , wang.

STEP-1 (running the project)

  1. Download all the codes and dataset into the MATLAB directory.
  2. copy any image from the given dataset and paste it in matlab directory as query.jpg.
  3. Run projectmain.m
  4. Wait for 1-2 minute and you will get the related images to your search images.

STEP -2 (explanation of code)

projectmain.m - It is the main file, it calls all the functions. This file calculates the mean of all images and segregates them accordingly on basis of mean and sd value of query image. Selected images and their corresponding gray images are stored in new folders named as 'selected' and 'selectedGray'

start.m - It reads the query image and saves the gray and edge version of same image, to be used by other function for processing.

resize.m - It resize all the images to 256x256 size and saves them to a new folder called 'samesize'

lbpfeature.m - It calculates the lbp features for all the images and compare them with the feature of query images.3x3 mask is used for lbp feature After calculation result are stored in a array

cannyedge.m - It reads all the images, process them (convert rgb to hsv, running canny edge on V channel and converting back to rgb) and save the edge image in a new folder named as 'selectedEdge'

edgefeature.m - This function calculates histogram(r,g,b channels) of all the edge images and commpares them with histogram of query image. Chi-square similarity is used. After comparison Results are stored in a array

similarity.m - This function normalizes the two arrays obtained from edgefeature and lbpfeature function and adds them. Result is stored in new array. Now the array is sorted and images corresponding to first 10-20 values are shown.

natsort.m - used to sort file name of images.

improving-the-cbir-process's People

Contributors

harshitaggarwal2010 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

improving-the-cbir-process's Issues

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.