Giter Club home page Giter Club logo

l0-gradient-smoothing's Introduction

L0-gradient-smoothing


This is a C++ implementation of "Image Smoothing via L0 Gradient Minimization", Li Xu, Cewu Lu, Yi Xu, Jiaya Jia, SIGGRAPH ASIA 2011.

Dependencies:

The code depends on following libraries.

  • OpenCV 2.4.9
  • Eigen 3.2
  • Boost 1.55.0

Build:

You can build the code using CMake.

mkdir build	
cd build
cmake ..
make 

Usage:

usage: L0-gradient-minimization [-h] [-i input_img] [-o out_dir] [-c cofig_name]

arguments:
 	-h, --help       show help message
 	-i, --input	     input image filename 
 	-o, --output     output path
 	-c, --config     config filename

Parameters in the algorithm can be controlled through a config file. Config file must include following entries. See config_sample.txt.

lambda:     smoothing parameter
beta_max:   parameter of the termination of the algorithm
kappa:      parameter relating to the speed of the algorithm
exact:      solver type for linear system. if true LU factorization is used , else Conjugate Gradient method is used

Example:

input

input

output(λ=0.005)

output

output(λ=0.03)

output2

l0-gradient-smoothing's People

Contributors

daikiyamanaka avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

l0-gradient-smoothing's Issues

compilation problem

-- LINK DIR: /usr/lib
CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
Unable to find the requested Boost libraries.

Boost version: 1.65.1

Boost include path: /usr/include

Could not find the following Boost libraries:

      boost_filesystem
      boost_program_options
      boost_system

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:32 (FIND_PACKAGE)

CMake Error at CMakeLists.txt:42 (message):
Couldn't find Boost library.

Build problems

Building this project has been very difficult. I have a specific use for this tool. Could you provide a build please?

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.