Giter VIP home page Giter VIP logo

perceptual-image-hash's Introduction

ECSE 420 - Parallel Computing Project: perceptual-image-hash

A tool for finding similar images. The focus of the project is on measuring performance improvements of running the 2 algorithms in parallel on GPU using OpenCL vs when running them serial on CPU.

In order to simplify the details, we only process square images.

1st step) FFT

Convert the image into it's Fourier domain transform.

2nd step) Run a "perceptual hash" on the Fourier representation of the image

The goal of the perceptual hash is to hash in such a way that lower frequencies have a higher effect on the hash result. The reason behind the idea is that lower frequencies represent a bigger chunk of information of the image whereas higher frequencies represent more the small details of the image. By having the lower frequencies have more effect on the hash, we expect that images which have a higher similarity will hash to numbers close to each other. We are going to verify our hypothesis once the application is built.

Details on the perceptual hashing: If we have an image that has NxN pixels and it was transformed into Fourier so it represents NxN frequencies. We are going to generate N prime number using sieving. The frequencies matrix is going to be divided into N parts (going from low-to-high freq.). Each part is associated with one of the prime numbers (lower frequencies are associated with the larger prime numbers), all the values in that part are summed and multiplied with that prime number. The result of multiplication from each part is added together to get the final hash value.

perceptual-image-hash's People

Contributors

vingt-2 avatar vavix avatar

Watchers

James Cloos avatar  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.