Skip to main content

detecTDA logo


A package for detecting topological features in images.

Tailor-made to perform hypothesis testing on sequences of noisy images in catalysis.

Installation

If you have pip installed you may simply run

$ pip install detectda

Or, you may clone the git repository and then in said directory run:

$ pip install .

Alternatively, the following is still supported:

$ python3 setup.py install

Summarizing an image series

With a video (and optional polygonal region—see below), extracting statistics related to structure and shape of your noisy image could not be easier. detecTDA leverages TDA (topological data analysis) to derive such quantities, an illustration of which can be seen below.

Illustration of the detectda algorithm

Such processing is accomplished by fitting the class ImageSeries (or ImageSeriesPlus) to your data. Hypothesis testing whether or not images are generated from a vacuum region within the images is accomplished by fitting and transforming VacuumSeries objects. Note that hypothesis testing is only currently supported for the ImageSeries class.

Usage

detectda is a Python package for detection and hypothesis testing of noisy greyscale images and videos using TDA.

To use the identify_polygon script, run the script in the command line (after having installed the package). Then follow these steps:

1. Enter the name of your .tif video. 

2. Then right-click to select the boundaries of your polygon. 
   Double-click to connect the polygon together and press any key 
   (such as "space" or "enter") to exit and save. 

3. Then you will name a .pkl file (you do not need to add the .pkl at the end) 
   corresponding to your video (such as `test_video.pkl`). 

4. Finally, the file `test_video.pkl` (or whatever you have called it) contains the cropped video 
   (according to the boundaries of your polygon) as well as the polygonal region of interest. 

You will then be able to use this data to process your video with the persistent entropy or ALPS statistic—see the 'Read the Docs' page, linked to below.

Documentation

Additional documentation and usage examples can see at detectda.readthedocs.io.

Test video

I would like to thank the Crozier Research Group for providing "test_video.tif". Please see the accompanying paper: "Feature detection and hypothesis testing for extremely noisy nanoparticle images using topological data analysis" (2023) by Thomas, Crozier, Xu, and Matteson for information on how the video was collected.

License

detectda was created by Andrew M. Thomas. It is licensed under the terms of the MIT license.

Release files for detectda 0.5.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for detectda 0.5.6
File Size Uploaded
detectda-0.5.6.tar.gz 11.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for detectda 0.5.6
File Interpreter ABI Platform
detectda-0.5.6-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 MB

Release files / detectda-0.5.6.tar.gz

Download URL detectda-0.5.6.tar.gz
Size 11.3 MB
Tags Source
SHA-256 checksum
How to use checksums
de6de0f7a834001f54d04e70af27acfb9a27ed3e2490148407e154c13b38dde6
BLAKE2b-256 checksum
How to use checksums
61ce49978d824418a0d35569e517bff4b3d897058ccc84dd31d4631e61675255
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / detectda-0.5.6-py3-none-any.whl

Download URL detectda-0.5.6-py3-none-any.whl
Size 12.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
292c5239b68e8f05c41ce03f3fe17ad78220b68ec37bbab8ac3e84fbcc465f4f
BLAKE2b-256 checksum
How to use checksums
e132801a9a545563ed5e79926ab6aaa155d9fe2f886b341a16c4432d52d8d548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.5.6 This release

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page