All Projects → YuanhaoGong → Curvaturefilter

YuanhaoGong / Curvaturefilter

Curvature Filters are efficient solvers for Variational Models

Programming Languages

python
139335 projects - #7 most used programming language
matlab
3953 projects

Projects that are alternatives of or similar to Curvaturefilter

Marvel
Marvel - Face Recognition With Android & OpenCV
Stars: ✭ 199 (-31.62%)
Mutual labels:  opencv, image-processing
Buildopencvtx2
Build and install OpenCV for the NVIDIA Jetson TX2
Stars: ✭ 249 (-14.43%)
Mutual labels:  opencv, image-processing
Superpixels Revisited
Library containing 7 state-of-the-art superpixel algorithms with a total of 9 implementations used for evaluation purposes in [1] utilizing an extended version of the Berkeley Segmentation Benchmark.
Stars: ✭ 222 (-23.71%)
Mutual labels:  opencv, image-processing
Invisibility cloak
This is a fun application of image processing which enables you to experience the magic of an invisibility cloak. Let's make our childhood fantasy of using an invisibility cloak come true.
Stars: ✭ 176 (-39.52%)
Mutual labels:  opencv, image-processing
Opencv Androidsamples
OpenCv samples for Android from OpenCV SDK using Android Studio and Gradle System
Stars: ✭ 278 (-4.47%)
Mutual labels:  opencv, image-processing
Opencv Python Tutorial
📖 OpenCV-Python image processing tutorial for beginners
Stars: ✭ 2,425 (+733.33%)
Mutual labels:  opencv, image-processing
Computer Vision Guide
📖 This guide is to help you understand the basics of the computerized image and develop computer vision projects with OpenCV. Includes Python, Java, JavaScript, C# and C++ examples.
Stars: ✭ 244 (-16.15%)
Mutual labels:  opencv, image-processing
Autoannotationtool
A label tool aim to reduce semantic segmentation label time, rectangle and polygon annotation is supported
Stars: ✭ 113 (-61.17%)
Mutual labels:  opencv, image-processing
Harvesters
🌈 Friendly Image Acquisition Library for Computer Vision People
Stars: ✭ 274 (-5.84%)
Mutual labels:  opencv, image-processing
Ai Job Notes
AI算法岗求职攻略(涵盖准备攻略、刷题指南、内推和AI公司清单等资料)
Stars: ✭ 3,191 (+996.56%)
Mutual labels:  opencv, image-processing
Scene Text Recognition
Scene text detection and recognition based on Extremal Region(ER)
Stars: ✭ 146 (-49.83%)
Mutual labels:  opencv, image-processing
Androiddocumentscanner
This library helps to scan a document like CamScanner.
Stars: ✭ 264 (-9.28%)
Mutual labels:  opencv, image-processing
Haskell Opencv
Haskell binding to OpenCV-3.x
Stars: ✭ 145 (-50.17%)
Mutual labels:  opencv, image-processing
Omrchecker
Grade exams fast and accurately using a scanner 🖨 or your phone 🤳.
Stars: ✭ 189 (-35.05%)
Mutual labels:  opencv, image-processing
Color Tracker
Color tracking with OpenCV
Stars: ✭ 128 (-56.01%)
Mutual labels:  opencv, image-processing
Thug Memes
Command line Thug Meme generator written in Python
Stars: ✭ 224 (-23.02%)
Mutual labels:  opencv, image-processing
Nvidia Gpu Tensor Core Accelerator Pytorch Opencv
A complete machine vision container that includes Jupyter notebooks with built-in code hinting, Anaconda, CUDA-X, TensorRT inference accelerator for Tensor cores, CuPy (GPU drop in replacement for Numpy), PyTorch, TF2, Tensorboard, and OpenCV for accelerated workloads on NVIDIA Tensor cores and GPUs.
Stars: ✭ 110 (-62.2%)
Mutual labels:  opencv, image-processing
Ios Rubik Solver
An iOS app that detects a 3x3 Rubik's cube, recognizes the color of all cubies, solves it and provides a 3D visualisation of the solving process.
Stars: ✭ 111 (-61.86%)
Mutual labels:  opencv, image-processing
Opencv
Open Source Computer Vision Library
Stars: ✭ 58,652 (+20055.33%)
Mutual labels:  opencv, image-processing
Opencv Python Blueprints
M. Beyeler (2015). OpenCV with Python Blueprints: Design and develop advanced computer vision projects using OpenCV with Python, Packt Publishing Ltd., ISBN 978-178528269-0.
Stars: ✭ 262 (-9.97%)
Mutual labels:  opencv, image-processing

Curvature filters are efficient solvers for variational models.

These curvature filters are developed by Yuanhao Gong during his PhD. MC filter and TV filter are exactly the same as described in the paper. But the GC filter is slightly modified. Please cite following papers if you use curvature filter in your work. Thank you!

📚 The Paper. The general theory is in Chapter Six of PhD thesis (downloaded 17,000+)

📕 Presentation of Gaussian Curvature Filter: LinkedIn, Dropbox or Baidu.

📘 Poster of Bernstein Filter can be found here.

🎁 a short introduction in Chinese (中文): Zhihu(Editors' Choice) or this Zhihu

🏆 source code in C++ and Java can also be found from MOSAIC group

🔔 The kernels summary and one example how to get the kernel can be found here.

📧 [email protected] or join the Curvature Filter Forum


@ARTICLE{gong:cf, 
    author={Yuanhao Gong and Ivo F. Sbalzarini}, 
    journal={IEEE Transactions on Image Processing}, 
    title={Curvature filters efficiently reduce certain variational energies}, 
    year={2017}, 
    volume={26}, 
    number={4}, 
    pages={1786-1798}, 
    doi={10.1109/TIP.2017.2658954}, 
    ISSN={1057-7149}, 
    month={April},}

@phdthesis{gong:phd, 
    title={Spectrally regularized surfaces}, 
    author={Gong, Yuanhao}, 
    year={2015}, 
    school={ETH Zurich, Nr. 22616},
    note={http://dx.doi.org/10.3929/ethz-a-010438292}}
	
@article{gong:gc,
    Author = {Yuanhao Gong and Ivo F. Sbalzarini},
    Journal = {Intl. Conf. Image Proc. (ICIP)},
    Month = {September},
    Pages = {534--538},
    Title = {Local weighted {G}aussian curvature for image processing},
    Year = {2013}}

Curvature filters' philosophy

Traditional solvers, such as gradient descent or Euler Lagrange Euqation, start at the total energy and use diffusion scheme to carry out the minimization. When the initial condition is the original image, the data fitting energy always increases while the regularization energy always reduces during the optimization, as illustrated in the below figure. Thus, regularization energy must be the dominant part since the total energy has to decrease.

Therefore, Curvature filters focus on minimizing the regularization term, whose minimizers are already known. For example, if the regularization is Gaussian curvature, the developable surfaces minimize this energy. Therefore, in curvature filter, developable surfaces are used to approximate the data. As long as the decreased amount in the regularization part is larger than the increased amount in the data fitting energy, the total energy is reduced.

image


Features

Theoretical Practical
Generality: handle arbitrary data fitting term (BlackBox)  image Efficient: three or four order of magnitude faster than traditional solvers  image
Convergence: theoretically guaranteed  image Implementation: 40 lines in Matlab and 100 lines in C++  image

Faster and Faster

Filter Bilateral Filter Guided Filter Guided Filter MC Filter GC Filter Bernstein Filter
Lang. C++ Matlab C++ C++ C++ C++
MilliSec. 103 514 130 8 (or 327 MPixels/sec) 11 7

Running time with 10 iterations on 512X512 Lena image. Matlab version is R2015a and GCC version is 5.1. All tests are on a Thinkpad T410 with i7-620M core CPU (2.6GHz). We take the time for 100 iterations and divide it by 10. On average, curvature filters take 1 millisecond per iteration.

On my new taptop(Thinkpad T470p, NVIDIA GeForce 940MX, 384 CUDA cores), GPU version of MC filter can achieve 2500 MPixels/Second with shared memory and single precision.

On the TITAN Xp card, MC filter can achieve 33.2 Giga Pixels/Second with shared memory and single precision. On the Tesla K40c card (2880 cores), MC filter can achieve 8090 MPixels/Second with shared memory and single precision.


Example Applications

1) Denoising

image The noise free test image can be downloaded here

2) Only minimize the regularization

GC = Gaussian Curvature, MC = Mean Curvature, TV = Total Variation image

3) Minimize a variational model, showing the line profile

We show three lines' profiles during minimizing a mean curvature regularized model (MC filter used).

 image image
image image

4) Cartoon Texture Decomposition

image

5) Registration

from left to right: original reference image, distorted source image, registered results by TV filter, MC filter and GC filter. image


On Triangular Meshes (preliminary results, p.195 in the thesis)

original mesh (left) and processed mesh (right), the energy profile is shown in the middle. image


FAQ:

  1. Why dual mesh (DM) structure is needed?

There are two reasons. First, these four sets guarantee the convergence. Second, we can use the updated neighbors for current position. Therefore, it is more computational efficient.

  1. What is the difference between these three filters?

In general, GC filter is better in preserving details, compared with the other two. And TV filter is better in removing noise as well as details. MC filter is between these two.

These three filters are correspond to three types of variational models. User should decide which prior is to be assumed about the ground truth.

  1. What is the difference between split and nosplit scheme?

In general, splitting the image into four sets and looping on them is computational faster. However, in some cases like deconvolution, we need to merge the four sets after every iteration. So, it is better do nosplit scheme.

These two lead to exactly the same result. The split code is just more cache friendly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].