Coder Social home page Coder Social logo

gqf2017 / dark-channel-haze-removal-with-cuda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomheaven/dark-channel-haze-removal-with-cuda

0.0 0.0 0.0 1 MB

Dark channel Haze removal algorithm with CUDA acceleration (typically 10x or more speedup using a Nvidia GPU)

License: MIT License

MATLAB 33.72% Cuda 66.28%

dark-channel-haze-removal-with-cuda's Introduction

Dark Channel Haze Removal

MATLAB implementation of "Single Image Haze Removal Using Dark Channel Prior"

Single Image Haze Removal Using Dark Channel Prior
Kaiming He, Jian Sun and Xiaoou Tang
IEEE Transactions on Pattern Analysis and Machine Intelligence
Volume 30, Number 12, Pages 2341-2353
2011

ย 

CUDA acceleration implemented by Tom Heaven, [email protected]. To use CUDA mex function, you need to

  • edit mex_CUDA_*.xml properly for WIN, LINUX or MAC platform. Example configuration files for vs2013+cuda7.5 and xcode8.0+cuda8.0 are provided.
  • compile cuGetDarkChannel.cu with
mex -v cuGetDarkChannel.cu

or

mexcuda -v cuGetDarkChannel.cu

for Matlab2015b or later.

  • set useGPU = true in demo_fast.m.

Acceleration

Running Time Comparison (seconds)

Image Size CPU GPU
1080p 7.82 0.43
4K 28.43 2.28

Tested on Intel I7 6700K (CPU) and Nvidia GTX 980Ti (GPU).

About CUDA Illegal Address Error

If you get CUDA Illegal Address error, try setting threadsPerBlock in cuGetDarkChannel.cu to a smaller value and recompile it. This may due to insufficient shared memory of your GPU block so we need to allocate less threads per block.

dark-channel-haze-removal-with-cuda's People

Contributors

tomheaven 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.