GithubHelp home page GithubHelp logo

gaobian / chambollepock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pierrepaleo/chambollepock

0.0 0.0 0.0 500 KB

A Python implementation of the Chambolle-Pock algorithm for image processing applications examples

Python 100.00%

chambollepock's Introduction

Chambolle-Pock algorithm for Total Variation minimization

This repository is a Python implementation of the Chambolle-Pock algorithm [1] for minimizing an objective function with Total Variation (TV) regularization. It is mainly written for a didactic purpose.

Two examples are implemented :

  • Deconvolution
  • Tomographic reconstruction

There is also an implementation of conjugate gradient using a smoothed TV described in [2].

Installation

Simply download and execute the sample scripts. For tomographic reconstruction, the ASTRA toolbox version 1.6 should be installed beforehand.

Usage

The file CP.py implements the Chambolle-Pock algorithm for minimizing

where K can be any linear operator (here, convolution or tomographic projection).

The file CG.py implements a conjugate gradient algorithm for solving the previous problem, where the TV is approximated by

with

Both of these files can be executed.

The other files contain functions implementing various operators.

Example of deconvolution

Example of tomographic reconstruction

[1] Antonin Chambolle, Thomas Pock, A First-Order Primal-Dual Algorithm for Convex Problems with Applications to Imaging, 2011, Journal of Mathematical Imaging and Vision, Vol. 40 Issue 1, pp. 120-145

[2] Pierre Weiss, Laure Blanc-Féraud, and Gilles Aubert, Efficient Schemes for Total Variation Minimization Under Constraints in Image Processing, 2008, SIAM J. Sci. Comput., 31(3), 2047–2080

chambollepock's People

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.