Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PMEAL/pytrax

Repository files navigation

https://travis-ci.org/PMEAL/pytrax.svg?branch=master https://readthedocs.org/projects/pytrax/badge/?version=latest

Overview of pytrax

pytrax is an implementation of a random walk to calculate the tortuosity tensor of images.

Example Usage

The following code block illustrates how to use pytrax to perform a random walk simulation in open space, view the results and plot the mean square displacement to get the tortuosity:

>>> import pytrax as pt
>>> import numpy as np
>>> image = np.ones([3, 3])
>>> rw = pt.RandomWalk(image)
>>> rw.run(1000, 1000)
>>> rw.plot_walk_2d()
>>> rw.calc_msd()
>>> rw.plot_msd()

About

Random walk to calculate the tortuosity tensor of images

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /