Code Monkey home page Code Monkey logo

haze_removal_cpp's Introduction

Haze Removal

Introduction

This is an simple implemention of "single image haze removal using dark channel prior" by kaiming He, who wins the CVPR09 best paper.

Parameters by default

  • radius=7
  • omega=0.95
  • t0=0.1
  • r=60
  • eps=0.001

Dependencies

  • opencv>=2.4
  • g++ (Visual Studio is also fine, but I will not show how to configure VS project here)

Compile

cd cpp_code/src
g++ main.cpp hazeremoval.cpp guidedfilter.cpp -o ../dehaze `pkg-config --libs --cflags opencv`

Run

Before running, you should check whether your LD_LIBRARY_PATH containing your opencv lib path!

cd ..
./dehaze [your image path]

DEMO

References

  • paper: Single Image Haze Removal using Dark Channel Prior
  • paper: Guided Image Fltering

haze_removal_cpp's People

Contributors

zqpei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

haze_removal_cpp's Issues

调试程序出现bug

您好,按照您的代码,调试还是出现了问题,您能帮忙解决下嘛?
问题如下:0x00007FFD7C31AFEC (ucrtbased.dll) (去雾test.exe 中)处有未经处理的异常: 将一个无效参数传递给了将无效参数视为严重错误的函数。` _NODISCARD _CONSTEXPR20_CONTAINER const _Ty& operator[](const size_type _Pos) const noexcept /* strengthened */ {
auto& _My_data = _Mypair._Myval2;
#if _CONTAINER_DEBUG_LEVEL > 0
_STL_VERIFY(
_Pos < static_cast<size_type>(_My_data._Mylast - _My_data._Myfirst), "vector subscript out of range");
#endif // _CONTAINER_DEBUG_LEVEL > 0

    return _My_data._Myfirst[_Pos];`

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.