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.
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
- Cumulative Distribution Transform (CDT) [1] [notebook] [nbviewer]
- Signed Cumulative Distribution Transform (SCDT) [6] tutorial [notebook] [nbviewer]
- SCDT tutorial with domain adaptation [notebook] [nbviewer]
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]
Applications
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
- Time delay estimation using CDT [5] [notebook] [nbviewer]
- Time delay and linear dispersion estimation using CDT [5] [notebook] [nbviewer]
- PDE system identification using the SCDT [11] [notebook] [nbviewer]
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
- The cumulative distribution transform and linear pattern classification, Applied and Computational Harmonic Analysis, November 2018
- The Radon Cumulative Distribution Transform and Its Application to Image Classification, IEEE Transactions on Image Processing, December 2015
- A continuous linear optimal transport approach for pattern analysis in image datasets, Pattern Recognition, March 2016
- Radon cumulative distribution transform subspace modeling for image classification, Journal of Mathematical Imaging and Vision, 2021
- Parametric Signal Estimation Using the Cumulative Distribution Transform, IEEE Transactions on Signal Processing, May 2020
- The Signed Cumulative Distribution Transform for 1-D Signal Analysis and Classification, ArXiv 2021
- Detecting and visualizing cell phenotype differences from microscopy images using transport-based morphometry, PNAS 2014
- 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
- End-to-End Signal Classification in Signed Cumulative Distribution Transform Space, arXiv 2022
- The Radon Signed Cumulative Distribution Transform and its applications in classification of Signed Images, arXiv 2023.
- System Identification Using the Signed Cumulative Distribution Transform In Structural Health Monitoring Applications, arXiv 2023
- Predictive modeling of hematoma expansion from non-contrast computed tomography in spontaneous intracerebral hemorrhage patients, medRxiv 2024
- Discovery and visualization of structural biomarkers from MRI using transport-based morphometry, NeuroImage 2018
- 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
Metadata
Release files for pytranskit 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytranskit-0.3.1.tar.gz | 90.8 kB | Without provenance | Details for pytranskit-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytranskit-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pytranskit-0.3.1-py3-none-any.whl |
Total release size: 209.2 kB
Release files / pytranskit-0.3.1.tar.gz
| Download URL | pytranskit-0.3.1.tar.gz |
|---|---|
| Size | 90.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c30deb7d6515944a4a5048574be4860217dba9874725e9c2a8b40da2f25712d
|
|
BLAKE2b-256 checksum How to use checksums |
7afcf14e91c605249471a0d0873cdc49d5ff91cad63edb15566ca2e06fa3f344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / pytranskit-0.3.1-py3-none-any.whl
| Download URL | pytranskit-0.3.1-py3-none-any.whl |
|---|---|
| Size | 118.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
569e1f1bfec6fdc57eece530115a438a2366ba027ba42a402b24557ca4bf1e6e
|
|
BLAKE2b-256 checksum How to use checksums |
d5efb6b2f54456d9ce2a4b30b4610f3659a7556eb333cdbc80eee2874fedf24c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for pytranskit 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.