Code Monkey home page Code Monkey logo

cudasift's Introduction

This is the third version of a SIFT (Scale Invariant Feature Transform) implementation using CUDA for GPUs from NVidia. The first version is from 2007 and GPUs have evolved since then. This version is considerably faster than the previous versions and has been optimized for GeForce GTX 580. It should be reasonable fast also on more recent GPUs. 

On a GTX 580 GPU the code takes about 7 ms on a 640x480 pixel image and 13 ms on a 1280x960 pixel image. The 2 ms and 1 ms respective of that is for data transfers inbetween GPU and CPU. If you keep data on the GPU things are thus somewhat faster. There is also code for brute-force matching of features and homography computation that takes about 7 ms and 4 ms for two sets of around 1500 SIFT features each.

The code relies on CMake for compilation and OpenCV for image containers. OpenCV can however be quite easily changed to something else. The code can be relatively hard to read, given the way things have been parallelized for maximum speed.

The dependencies between files in the repository look like this:

mainSift.cpp -> cudaSift.h   -> cudaImage.h
		cudaImage.h

cudaImage.cu -> cudaImage.h

cudaSiftH.cu -> cudaImage.h
                cudaSift.h   -> cudaImage.h
	        cudaSiftD.h
                cudaSiftH.h  -> cudaImage.h
		cudaSiftD.cu

The code is free to use for non-commercial applications. If you use the code for research, please refer to the following upcoming paper.

M. Björkman, N. Bergström and D. Kragic, "Detecting, segmenting and tracking unknown objects using multi-label MRF inference", CVIU (accepted for publication)

cudasift's People

Contributors

celebrandil avatar nbergst 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.