Temporal Scale-Space Toolbox for Python.
Project description
pytempscsp : Temporal Scale Space Toolbox for Python
For performing temporal smoothing with the time-causal limit kernel and for computing discrete temporal derivative approximations by applying temporal difference operators to the smoothed data.
For examples of how to apply these functions for smoothing temporal signals to different temporal scales in a fully time-causal manner, please see the enclosed Jupyter notebook tempscspdemo.ipynb.
For more technical descriptions about the respective functions, please see the documentation strings for the respective functions in the source code in tempscsp.py.
The actual computations of the smoothed signals and the temporal derivatives is performed with computationally very efficient first-order recursive filters and small support temporal difference operators. For more explicit visualizations of the equivalent smoothing filters and temporal derivative computation filters, please see the enclosed Jupyter notebook kernelgraphs-ref.ipynb.
Time-causal temporal derivatives and bandpass wavelets
For examples of how to use extensions of this code for computing time-causal temporal derivatives, please see the enclosed Jupyter notebooks sineexpwave.ipynb, vibration.ipynb and cymbal44.ipynb.
For examples of how to use extensions of this code for computing bandpass wavelets based on either (i) differences-of-time-causal-limit-kernels (DoT), (ii) differences-of-Gaussians (DoG) or (iii) differences-of-exponentials (DoE), please see the enclosed Jupyter notebooks bandpass-blocks.ipynb and bandpass-riemann.ipynb.
For more technical descriptions about the respective functions, please see the documentation strings for the respective functions in the source code in tempscsel.py and bandpass.py.
Dependencies
Some parts of the code depend on the pyscsp library available at https://github.com/tonylindeberg/pyscsp.
The Jupyter notebooks for computing visualizations of bandpass wavelets depend on a function in the PyWavelets library for generating the input data.
Installation
This package is available through pip and can installed by
pip install pytempscsp
This package can also be downloaded directly from GitHub:
git clone git@github.com:tonylindeberg/pytempscsp.git
References
Lindeberg (2023) "A time-causal and time-recursive temporal scale-space representation of temporal signals and past time", Biological Cybernetics 117 (1-2): 21-59. (Open Access)
Lindeberg (2026) "Time-causal and time-recursive wavelets", Frontiers in Signal Processing, to appear, preprint at arXiv:2510.05834. (Open Access)
Lindeberg (2016) "Time-causal and time-recursive spatio-temporal receptive fields", Journal of Mathematical Imaging and Vision 55(1): 50-88. (Open Access)
The time-causal limit kernel was first defined in Lindeberg (2016), however, then also in combination with a spatial domain, and experimentally tested on video data. The later overview paper (Lindeberg 2023) gives a dedicated treatment for a purely temporal domain, and also with relations to Koenderink's scale-time kernels and the ex-Gaussian kernel.
The extension to time-causal temporal derivatives was first performed in Lindeberg (2016), additionally considered in Lindeberg (2023) and then extended to bandpass wavelets and more general time-causal wavelets in Lindeberg (2026).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytempscsp-1.0.5.tar.gz.
File metadata
- Download URL: pytempscsp-1.0.5.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9bb598e06dbb65cd07432c7464eafe74660604c70025f931e8cdad3b9245f1b
|
|
| MD5 |
afef7e0a872e54088204bb10c49b9b6e
|
|
| BLAKE2b-256 |
e413e537ddacf4b97b9f9b581d44cdc3570ec0e4d41bcf0b1597d97ee6f97259
|
File details
Details for the file pytempscsp-1.0.5-py3-none-any.whl.
File metadata
- Download URL: pytempscsp-1.0.5-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bb328acdd158326e06c93e6ac9923ddeb8a81fe1cbc1fe05db053ab3a6f1570
|
|
| MD5 |
88d930bc6d8368f133ced186d8076fa5
|
|
| BLAKE2b-256 |
5333ada5a912dbff1148e83847bb55db9489d13c59e39b7b2504c625daf89fce
|