Giter Site home page Giter Site logo

particle_tracking's Introduction

Particle Tracking

Package that performs tracking of colloidal particles in 2D. Based on conventional tracking methods used in this paper. This is version based on a tracking code written in R (see Repo). NOTE: other available packages, such as Trackpy, allow particle tracking in 2D & 3D.

Installation

Use

pip install particle-tracking

to simply install the code.

Using the code

the simples way to run the code is busing a jupyer notebook. See templates inside particle_tracking/example/. Start with

import particle_tracking as pt

The code has three main class objects Tracker, Linker & Filtering, which allow to detect particles, reconstruct individual trajectories (using Trackpy's linking method, and filter trajectories respectively. Simply use

pt.Tracker()
pt.Linker()
pt.Filtering

to access the main functions. NOTE: all of the class obejct above require params, a dictionary containing parameters to exceute the tracking methods. See the next section to learn how to generate params.

Interactive Menu

The code includes an interactive widget that allows to select and modify quickly the input parameters. Import the interactive menu using

from particle_tracking.src  import menus
menu = menus.MainMenu()
menu.options

Once the parameters are selected use

params = menus.return_params(menu.options.children)

Characterisation

The code includes extra tools to characterise the samples onced they have been tracked. Structural order and dynamics can be anylsed by means of $\psi_{6}$ and mean-squared displacements. For example,

from particle_tracking.src.characterisation import Psi6
psi6 = Psi6()

or

from particle_tracking.src.characterisation import MSD
msd = MSD()

particle_tracking's People

Contributors

mauva27 avatar

Stargazers

Moshood Abdullahi Ayomide  avatar Yushi Yang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.