Skip to main content

Package for tracking and analyzing in-situ optical microscopy images

Project description

arXiv Python 3.6+ Release License: MIT

SurfTrack

This repository contains scripts for tracking and analyzing versatile images from in-situ optical microscopy (OM) experiment or Blood Clotting experiments.

Overview

The project aims to develop a package for tracking and analyzing any images from a movie. It involves two main MATLAB scripts: trracking_master_code.m and Tracked_surface_compare.m.

Requirements

  • MATLAB R2022a or later
  • MATLAB Computer Vision Toolbox
  • Python 3.x

Setup

Installation

  1. Download the Package:

    • Download the zip file containing the SurfTrack package.
    • Extract the zip file to a directory of your choice.
  2. Install the Package:

    • Open a command prompt or terminal.
    • Navigate to the directory where you extracted the package.
    • Install the package by running the command:
git clone https://github.com/MusannaGalib/SurfTrack.git
cd SurfTrack
pip install .

This command installs the package along with its dependencies.

SurfTrack can also be installed from PyPI:

pip install SurfTrack

Using the Package

To use this package, give your matlab executable path in run.py. Then just copy your movie.mp4 file in the scirpts folder and run the following command

process = subprocess.Popen(['C:/Program Files/MATLAB/R2022a/bin/matlab', '-nosplash', '-nodesktop', '-r', f"run('{script_path}');exit;"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
python3 wrapper.py

If you want to change the number of images that needed to be generated from the movie change the following file in the run.py file:

# Define how many images you want from the video
npics = 3

Example Usage

An example movie is given in 'scripts' folder. You can use the following commands to play with that.

# execute the python wrapper
python3 wrapper.py

Authors

This Software is developed by Matteo Ferraresso & Musanna Galib

Citing This Work

If you use this software in your research, please cite the following paper:

BibTeX entry:
@misc{galib2025dendritesuppressionznbatteries,
      title={Dendrite Suppression in Zn Batteries Through Hetero-Epitaxial Residual Stresses Shield}, 
      author={Musanna Galib and Amardeep Amardeep and Jian Liu and Mauricio Ponga},
      year={2025},
      eprint={2502.03841},
      archivePrefix={arXiv},
      primaryClass={cond-mat.mtrl-sci},
      url={https://arxiv.org/abs/2502.03841}, 
}

Contact, questions, and contributing

If you have questions, please don't hesitate to reach out to galibubc[at]student[dot]ubc[dot]ca and matfe[at]mail[dot]ubc[dot]ca

If you find a bug or have a proposal for a feature, please post it in the Issues. If you have a question, topic, or issue that isn't obviously one of those, try our GitHub Disucssions.

If your post is related to the framework/package, please post in the issues/discussion on that repository.

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

surftrack-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SurfTrack-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file surftrack-0.0.1.tar.gz.

File metadata

  • Download URL: surftrack-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for surftrack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4fc38c6fea39d29adf375ea28eab07f6c5c8dd771898e13262fedce303262e29
MD5 58532371f2f6ac997e997d94efca2b04
BLAKE2b-256 6e0a7156577d0b4a635cdd08852696d5036e096c5cfa68095aa8baaa302ae80b

See more details on using hashes here.

File details

Details for the file SurfTrack-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: SurfTrack-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for SurfTrack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 843b26d2987c12582ad26b4acda4eccc75e23fcfec884d3e42c271fac26d5c38
MD5 9d2378b4a4318ed7599732679d30a053
BLAKE2b-256 f28f5863fc75e838d69d80efc6e9874e0a9287a7de43185a514c44ac4c6b9ce0

See more details on using hashes here.

Supported by

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