Coder Social home page Coder Social logo

bobdeng1974 / dehazenet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caibolun/dehazenet

0.0 0.0 0.0 3.07 MB

DehazeNet: An End-to-End System for Single Image Haze Removal

Home Page: https://caibolun.github.io/DehazeNet/

MATLAB 28.18% C++ 71.82%

dehazenet's Introduction

DehazeNet: An End-to-End System for Single Image Haze Removal

Bolun Cai, Xiangmin Xu, Kui Jia, Chunmei Qing, Dacheng Tao, [Lingke Zeng]

Introduction

Single image haze removal is a challenging ill-posed problem. Existing methods use various constraints/priors to get plausible dehazing solutions. The key to achieve haze removal is to estimate a medium transmission map for an input hazy image. In this paper, we propose a trainable end-to-end system called DehazeNet, for medium transmission estimation. DehazeNet takes a hazy image as input, and outputs its medium transmission map that is subsequently used to recover a haze-free image via atmospheric scattering model. DehazeNet adopts Convolutional Neural Networks (CNN) based deep architecture, whose layers are specially designed to embody the established assumptions/priors in image dehazing. Specifically, layers of Maxout units are used for feature extraction, which can generate almost all haze-relevant features. We also propose a novel nonlinear activation function in DehazeNet, called Bilateral Rectified Linear Unit (BReLU), which is able to improve the quality of recovered haze-free image. We establish connections between components of the proposed DehazeNet and those used in existing methods. Experiments on benchmark images show that DehazeNet achieves superior performance over existing methods, yet keeps efficient and easy to use.

If you use these codes in your research, please cite:

@article{cai2016dehazenet,
	author = {Bolun Cai, Xiangmin Xu, Kui Jia, Chunmei Qing and Dacheng Tao},
	title={DehazeNet: An End-to-End System for Single Image Haze Removal},
	journal={IEEE Transactions on Image Processing},
	year={2016}, 
	volume={25}, 
	number={11}, 
	pages={5187-5198},
	}

Test and Train

  • Download the test images and the pre-trained model (.mat)
git clone https://github.com/caibolun/DehazeNet.git
  • Recompile the faster MaxPooling (.mex) under Matlab
mex convConst.cpp
  • Generate the clear image by simply typing in Matlab
haze = im2double(imread('filename'));
dehaze = run_cnn(haze);
imshow(dehaze);

The training code is re-implemented by Lingke Zeng at https://github.com/zlinker/DehazeNet, and a Caffe branch with BReLU can be cloned at https://github.com/zlinker/mycaffe.

Comparasion on RESIDE Dataset

RESIDE benchmark [1] is proposed for single image dehazing evaluation, where the learning-based methods (including CAP [2], DehazeNet, MSCNN [3], and AOD-Net [4]) are retrained on the same RESIDE training set. The results are resported as follow:

SOTS HSTS PSOTS PHSTS

[1] Li B, Ren W, Fu D, et al. RESIDE: A Benchmark for Single Image Dehazing[J]. arXiv preprint arXiv:1712.04143, 2017.

[2] Zhu Q, Mai J, Shao L. A fast single image haze removal algorithm using color attenuation prior[J]. IEEE Transactions on Image Processing, 2015, 24(11): 3522-3533.

[3] Ren W, Liu S, Zhang H, et al. Single image dehazing via multi-scale convolutional neural networks[C]//European conference on computer vision. Springer, Cham, 2016: 154-169.

[4] Li B, Peng X, Wang Z, et al. Aod-net: All-in-one dehazing network[C]//Proceedings of the IEEE International Conference on Computer Vision. 2017: 4770-4778.

dehazenet's People

Contributors

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