Skip to content

Python tools for Morse Smale Complex analysis and visualization

License

Notifications You must be signed in to change notification settings

uncommoncode/morse_smale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morse_smale

Python tools for Morse Smale Complex analysis and visualization.

It looks at the critical points of a manifold and partitions the manifold based on these extrema.

Example Screenshot

Installation

Requirements:

  • blas
  • lapack

You can install these with Ubuntu or Debian distros with apt:

sudo apt-get install libblas-dev liblapack-dev

Finally use pip to complete installation:

pip install -U git+https://github.com/uncommoncode/morse_smale

Usage

The common usage will be to create partitions for given sample points and scalar sample values.

import morse_smale

# k_neighbors is the main parameter that may need to be tweaked
result = morse_smale.nn_merged_partition(sample_points, sample_values,
                                         k_neighbors=15)

See examples/ for more.

References

This work is a port of the msr R package to Python. It builds on an interface to the C++ Morse-Smale complex computation first described in:

Gerber S, Bremer PT, Pascucci V, Whitaker R (2010). "Visual Exploration of High Dimensional Scalar Functions." IEEE Transactions on Visualization and Computer Graphics, 16(6), 1271–1280.

About

Python tools for Morse Smale Complex analysis and visualization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published