![detecTDA logo](https://andrewmthomas.com/wp-content/uploads/2024/07/detectda_logo-e1722264304588.png)
***
**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](https://andrewmthomas.com/wp-content/uploads/2024/07/detectdaALGORITHM.png)
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 (such as test_video.tif).
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 "detectda demo.ipynb".
## Documentation
Additional documentation and usage examples can see at [detectda.readthedocs.io](https://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](https://www.tandfonline.com/doi/epdf/10.1080/00401706.2023.2203744) 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.
Raw data
{
"_id": null,
"home_page": "https://detectda.readthedocs.io/en/latest/",
"name": "detectda",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "tda, cubical, image processing",
"author": "Andrew M. Thomas",
"author_email": "<me@andrewmthomas.com>",
"download_url": "https://files.pythonhosted.org/packages/41/3d/36280773bc0357b4187eeb0f7f95427087d9a09d71b125e77593fccb8495/detectda-0.5.3.tar.gz",
"platform": null,
"description": "![detecTDA logo](https://andrewmthomas.com/wp-content/uploads/2024/07/detectda_logo-e1722264304588.png)\n\n***\n\n**A package for detecting topological features in images**. \n\nTailor-made to perform hypothesis testing on sequences of noisy images in catalysis. \n\n## Installation\n\nIf you have pip installed you may simply run \n \n```\n$ pip install detectda\n```\n \nOr, you may clone the git repository and then in said directory run:\n\n```\n$ pip install .\n```\n\nAlternatively, the following is still supported:\n\n```\n$ python3 setup.py install\n```\n\n## Summarizing an image series\n\nWith 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. \n\n![Illustration of the detectda algorithm](https://andrewmthomas.com/wp-content/uploads/2024/07/detectdaALGORITHM.png)\n\nSuch 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. \n\n## Usage\n\n`detectda` is a Python package for detection and hypothesis testing of noisy greyscale images and videos using TDA.\n\nTo use the `identify_polygon` script, run the script in the command line (after having installed the package). Then follow these steps: \n\n\t1. Enter the name of your .tif video (such as test_video.tif). \n\n\t2. Then right-click to select the boundaries of your polygon. \n\t Double-click to connect the polygon together and press any key \n\t (such as \"space\" or \"enter\") to exit and save. \n\n\t3. Then you will name a .pkl file (you do not need to add the .pkl at the end) \n\t corresponding to your video (such as test_video.pkl). \n\n\t4. Finally, the file test_video.pkl (or whatever you have called it) contains the cropped video \n\t (according to the boundaries of your polygon) as well as the polygonal region of interest. \n\nYou will then be able to use this data to process your video with the persistent entropy or ALPS statistic—see \"detectda demo.ipynb\".\n\n## Documentation\n\nAdditional documentation and usage examples can see at [detectda.readthedocs.io](https://detectda.readthedocs.io/). \n\n## Test video\n\nI 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](https://www.tandfonline.com/doi/epdf/10.1080/00401706.2023.2203744) for information on how the video was collected.\n\n## License\n\n`detectda` was created by Andrew M. Thomas. It is licensed under the terms of the MIT license. \n",
"bugtrack_url": null,
"license": null,
"summary": "detectda - detecting features in videos using TDA",
"version": "0.5.3",
"project_urls": {
"Homepage": "https://detectda.readthedocs.io/en/latest/"
},
"split_keywords": [
"tda",
" cubical",
" image processing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1eb31c3153d321599d813476aa32efc598a5231e831f963f15d1cd453ca40ccf",
"md5": "982c3c665aba38e93271530666e22e67",
"sha256": "768f37b8284c32064dd23f8bbea1900a55f7d85430a82fdccb39651b26b03ca2"
},
"downloads": -1,
"filename": "detectda-0.5.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "982c3c665aba38e93271530666e22e67",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 45364185,
"upload_time": "2024-08-30T16:13:48",
"upload_time_iso_8601": "2024-08-30T16:13:48.455366Z",
"url": "https://files.pythonhosted.org/packages/1e/b3/1c3153d321599d813476aa32efc598a5231e831f963f15d1cd453ca40ccf/detectda-0.5.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "413d36280773bc0357b4187eeb0f7f95427087d9a09d71b125e77593fccb8495",
"md5": "db3f92a5ac4e85b9b566a99766423d55",
"sha256": "22a8e7ab27e45c8c217351735879fd3db3d5dfc884d6211273d89ff09da17d9f"
},
"downloads": -1,
"filename": "detectda-0.5.3.tar.gz",
"has_sig": false,
"md5_digest": "db3f92a5ac4e85b9b566a99766423d55",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 45092755,
"upload_time": "2024-08-30T16:13:54",
"upload_time_iso_8601": "2024-08-30T16:13:54.055893Z",
"url": "https://files.pythonhosted.org/packages/41/3d/36280773bc0357b4187eeb0f7f95427087d9a09d71b125e77593fccb8495/detectda-0.5.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-30 16:13:54",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "detectda"
}