Simple Attribute Profiles
Project description
Simple Attribute Profiles (SAP)
SAP is a Python package to easily compute morphological attribute profiles (AP) of images.
Installation
pip install sap
Documentation
Documentation is available on https://python-sap.rtfd.io.
Notebooks
TODO:
Code examples
import sap
import numpy as np
import matplotlib.pyplot as plt
image = np.random.random((512, 512))
t = sap.MaxTree(image)
area = t.get_attribute('area')
filtered_image = t.reconstruct(area < 100)
plt.imshow(filtered_image)
plt.show()
Develop status
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
sap-0.1.3.tar.gz
(12.9 kB
view details)
Built Distribution
sap-0.1.3-py3-none-any.whl
(18.9 kB
view details)
File details
Details for the file sap-0.1.3.tar.gz
.
File metadata
- Download URL: sap-0.1.3.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 594a4f8531d02408bdb12f304192638fe831e6393e93daed3d4664403c7da4c4 |
|
MD5 | 1f4c07f5458e609478ea5daadc9b089c |
|
BLAKE2b-256 | 945a8ba0c89b555f6516f5cd534c44f5766b5b1ec3ffb348d5f644a7a7797539 |
File details
Details for the file sap-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: sap-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7c45e7a698a26a9311c7545e0333db8c7ea2e98cf18ba120a6cf74e2bea855 |
|
MD5 | 306690f27da7bb07e51d07a7ccf01e0a |
|
BLAKE2b-256 | 8212e1f454fe2d684f3da7f2675047c950b1f6dd0afbde01f21c30329c9ddabf |