Skip to main content

An extension module implimenting the fast marching method

Project description

scikit-fmm is an extension module which implements the fast marching method.

The fast marching method is used to model the evolution of boundaries and interfaces in a variety of application areas.

scikit-fmm is a simple module which provides two functions: distance(phi, dx=1.0) and travel_time(phi, speed, dx=1.0).

The functions calculate the signed distance and travel time to an interface described by the zero contour of the input array phi.

>>> import skfmm
>>> phi = [-1,-1,-1,1,1,1]
>>> skfmm.distance(phi)
array([-2.5, -1.5, -0.5,  0.5,  1.5,  2.5])
>>> skfmm.travel_time(phi, [2,2,2,2,2,2])
array([ 1.25,  0.75,  0.25,  0.25,  0.75,  1.25])

The input array can be of 1, 2, 3 or higher dimensions and can be a masked array.

Documentation: http://packages.python.org/scikit-fmm

PyPI: http://pypi.python.org/pypi/scikit-fmm

Source Code: https://github.com/scikit-fmm/

Requirements: Numpy and a C/C++ compiler (gcc/MinGW)

Installing:

$ python setup.py install

Testing (requires nose):

$ python tests/test_fmm.py

Building documentation (require sphinx):

$ make html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit-fmm-0.0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

scikit-fmm-0.0.1.win32-py2.7.exe (225.2 kB view details)

Uploaded Source

File details

Details for the file scikit-fmm-0.0.1.tar.gz.

File metadata

  • Download URL: scikit-fmm-0.0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scikit-fmm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8f0f398deccca3ff6b4f994f4aacbe4684e62f0b7fcef3f293aa5b58567fabf1
MD5 a6b54715a5b37937793e8245022b7acf
BLAKE2b-256 fc80431d4542026a62ca2f45c9fa104b2a98df1761ea09acca658f4e46c52850

See more details on using hashes here.

File details

Details for the file scikit-fmm-0.0.1.win32-py2.7.exe.

File metadata

File hashes

Hashes for scikit-fmm-0.0.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 ac003b0bb85e6b23c9a1a23dde506e25c1668501c7580edaf90d5a04a2bd973e
MD5 8997f305633dc9b4b8b77cbf785eb713
BLAKE2b-256 c1c87b453990dcb7a7d08bc742177dd41f537d613469f3f5b62f520961688b13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page