Nonlinear Coupled Diffusion

This package implements isotropic nonlinear scalar valued/ coupled vector/matrix valued diffusion.
4K Downloads
Updated 18 May 2010

View License

The code supports homogeneous and linear and nonlinear (Total Variation and Edge Enhancing flow) isotropic diffusion of arbitrary dimensioned fields(scalar~grayscale image, vector ~ color image and matrix~structure tensor). Additive Operator Splitting(AOS) as well as Gaussian regularization are implemented to speedup the computations.
Two point 1 sided differences is implemented for spatial discretization which is more accurate than the central differences. A semi implicit time discretization as well as epsilon regularization is utilized to make the diffusion process stable for arbitrary time-step sizes. The code is commented, the definition and dimensions of the input/output variables can be found in the header of the nonlinear_diffusion.m. A sample script is provided to visualize the diffusion process of two sample images.
The AOS implementation uses the Thomas algorithm implemented in mex to achieve the fastest speed.

Cite As

Omid Aghazadeh (2024). Nonlinear Coupled Diffusion (https://www.mathworks.com/matlabcentral/fileexchange/27604-nonlinear-coupled-diffusion), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Implemented the Thomas algorithm in mex and made some modifications for the case of left-right neighbors to make AA exactly tri-diagonal.

1.1.0.0

Criterion for keeping the total mass constant was lacking an abs.

1.0.0.0