Skip to main content

Python transport based signal processing toolkit.

Project description

PyTransKit

Python Transport Based Signal Processing Toolkit

Website and documentation: https://pytranskit.readthedocs.io/

Introduction video

This python package provides signal/image representation software methods (i.e. mathematical transforms) based on the idea of matching signals & images to a reference by pixel displacement operations that are physically related to the concept of transport phenomena. You can think of and use the transforms described below just as one would with the Fourier or Wavelet Transforms. By solving signal/image analysis in transport transform (e.g. Wasserstein embedding) space, one can dramatically simplify and linearize statistical regression problems, enabling the straight forward (e.g. closed form) solution of signal/image detection, estimation, and classification problems with increased accuracy using few training samples, with mathematical understanding and interpretability, better generalization properties, and computationally efficiently.

pytranskit_figure

Installation

The library could be installed through pip

pip install pytranskit

Alternately, you could clone/download the repository and add the pytranskit directory to your Python path

import sys
sys.path.append('path/to/pytranskit')

from pytranskit.optrans.continuous.cdt import CDT

Introduction video

Low Level Functions

CDT, SCDT

R-CDT

RSCDT

  • RSCDT tutorial : Forward and Inverse Transform [10][notebook]
  • RSCDT based nearest subspace method for image classification [10]. [notebook]

CLOT

  • Continuous Linear Optimal Transport Transform (CLOT) tutorial [notebook] [nbviewer]
  • Continuous Linear Optimal Transport Transform 3D tutorial [notebook] [nbviewer]

Classification Examples

  • CDT Nearest Subspace (CDT-NS) classifier for 1D data [notebook] [nbviewer]
  • SCDT Nearest Subspace (SCDT-NS) classifier for 1D data [8] [notebook] [nbviewer]
  • SCDT Nearest Local Subspace (SCDT-NLS) classifier for 1D data [9] [notebook] [nbviewer]
  • Radon-CDT Nearest Subspace (RCDT-NS) classifier for 2D data [4] [notebook] [nbviewer]
  • 3D Radon-CDT Nearest Subspace (3D-RCDT-NS) classifier for 3D data [notebook] [nbviewer]
  • Discrete Radon-CDT Nearest Subspace classifier for illumination-invariant Face Recognition [notebook]
  • RSCDT based nearest subspace method for image classification [10]. [notebook]

Estimation Examples

Transport-based Morphometry

  • Transport-based Morphometry to detect and visualize cell phenotype differences [7] [notebook] [nbviewer]
  • Predictive modeling of hematoma expansion from non-contrast computed tomography in spontaneous intracerebral hemorrhage patients [12] [notebook] [nbviewer]
  • Discovery and visualization of structural biomarkers from MRI using transport-based morphometry [13, 14] [notebook] [nbviewer]

References

  1. The cumulative distribution transform and linear pattern classification, Applied and Computational Harmonic Analysis, November 2018
  2. The Radon Cumulative Distribution Transform and Its Application to Image Classification, IEEE Transactions on Image Processing, December 2015
  3. A continuous linear optimal transport approach for pattern analysis in image datasets, Pattern Recognition, March 2016
  4. Radon cumulative distribution transform subspace modeling for image classification, Journal of Mathematical Imaging and Vision, 2021
  5. Parametric Signal Estimation Using the Cumulative Distribution Transform, IEEE Transactions on Signal Processing, May 2020
  6. The Signed Cumulative Distribution Transform for 1-D Signal Analysis and Classification, ArXiv 2021
  7. Detecting and visualizing cell phenotype differences from microscopy images using transport-based morphometry, PNAS 2014
  8. Nearest Subspace Search in the Signed Cumulative Distribution Transform Space for 1D Signal Classification, IEEE International Conference on Acoustics, Speech and Signal Processing, May 2022
  9. End-to-End Signal Classification in Signed Cumulative Distribution Transform Space, arXiv 2022
  10. The Radon Signed Cumulative Distribution Transform and its applications in classification of Signed Images, arXiv 2023.
  11. System Identification Using the Signed Cumulative Distribution Transform In Structural Health Monitoring Applications, arXiv 2023
  12. Predictive modeling of hematoma expansion from non-contrast computed tomography in spontaneous intracerebral hemorrhage patients, medRxiv 2024
  13. Discovery and visualization of structural biomarkers from MRI using transport-based morphometry, NeuroImage 2018
  14. 3D Transport-based Morphometry (3D-TBM) for medical image analysis, arXiv 2026

Resources

External website http://imagedatascience.com/transport/

Video [tutorials]

Authors

  • Abu Hasnat Mohammad Rubaiyat
  • Mohammad Shifat E Rabbi
  • Liam Cattell
  • Xuwang Yin
  • Shiying Li
  • Yan Zhuang
  • Gustavo K. Rohde
  • Soheil Kolouri
  • Serim Park

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

pytranskit-0.3.0.tar.gz (85.7 kB view details)

Uploaded Source

Built Distribution

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

pytranskit-0.3.0-py3-none-any.whl (111.9 kB view details)

Uploaded Python 3

File details

Details for the file pytranskit-0.3.0.tar.gz.

File metadata

  • Download URL: pytranskit-0.3.0.tar.gz
  • Upload date:
  • Size: 85.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pytranskit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b004c18f9a31a32ebba3670b2f4ba99c780da8e48c5a4d13a633a874fe8130b1
MD5 a779a946413377330a7181e1bde46dd4
BLAKE2b-256 ae4feadf9576f49388e2cbc07c82bcb08062293beae3b7e5bbac9f90f328d379

See more details on using hashes here.

File details

Details for the file pytranskit-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pytranskit-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 111.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pytranskit-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd0abe86ea08fc21ad88daa8c5ce7e4e53a5ff770bc76069a7a099045678264e
MD5 cbc66edad88f68f15c066ddde62f0e1b
BLAKE2b-256 23d3b1d0f28aeb3db0d9017ba012f3b15c750fc615932a739509025d1b676c3c

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