Skip to content

gianmatharu/Aniso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header

A prototype module to apply anisotropic smoothing to images and explore Dash.

Installation

Tested on Python 3.8.0 Create a new Python environment and run

>> pip3 install -r requirements.txt

Usage

To generate the example sequence of images, run the following from the command line

>> python main.py

Alternatively, launch a local Dash app via

>> python run_app.py
Dash is running on http://127.0.0.1:8050/

Open http://127.0.0.1:8050 in a broswer.

The test script loads an image and computes a diffusion tensor. A diffusion tensor is a 2x2 matrix that contains information about coherent structure in an image. Each pixel has its own diffusion tensor computed using nearby points. The following example displays local diffusion tensors as ellipses.

Header

We can use diffusion tensors to apply smoothing along directions of structure in an image. Notice how regular smoothing blurs the image everywhere.

Header

We can also use the diffusion tensor to generate texture noise vectors. This can be useful when we want to simulate noise with local correlations.

Header

About

Anisotropic smoothing for images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published