Skip to main content

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.

This code is the result of porting a subset of the routines in the Matlab package tempscsp to Python, however, with different interfaces for the functions.

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.

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-kernels (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 GitHub.

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 (2023) "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 (2025).

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

pytempscsp-1.0.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

pytempscsp-1.0.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pytempscsp-1.0.1.tar.gz.

File metadata

  • Download URL: pytempscsp-1.0.1.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/24.6.0

File hashes

Hashes for pytempscsp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 60e2c4bbb0d4c4a6af75622523bc06b8cffa60c78bff1407c92fe8fb6a0d99a9
MD5 e479592ab5a18c67ce6fb42667842e1d
BLAKE2b-256 10e84bc52e2997abd02e773f3c4fdf12a96847f0e49d78c10109c1c29d2f1718

See more details on using hashes here.

File details

Details for the file pytempscsp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytempscsp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/24.6.0

File hashes

Hashes for pytempscsp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31a680fd55e2be8ab6e0d61f425c99ae9d83a6f119aabddfe3f822157d9c0d22
MD5 a4eebdd3d359f561a180558a51051192
BLAKE2b-256 d53640cf276328ebf061043c3a20defb03d1fb9135099157c9658a8a65f00970

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