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.2.5.tar.gz
(25.9 kB
view details)
Built Distribution
sap-0.2.5-py3-none-any.whl
(24.3 kB
view details)
File details
Details for the file sap-0.2.5.tar.gz
.
File metadata
- Download URL: sap-0.2.5.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c913f2813a67d33dcb902ea65c6e14b9258a46276b34d186d998ba65e4d49709 |
|
MD5 | ebbd92c24f69ea02b60e5a1f638c9897 |
|
BLAKE2b-256 | a1ff69ed433da03b49511dd3cbc31c556511bf6854ab3318045a83f9a3ff3243 |
File details
Details for the file sap-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: sap-0.2.5-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c1422be65bfbad33298c7e0d5038a0bc7793c153c7e255265bf565152d7de7 |
|
MD5 | 28150ee44d5f24dcf5d8cb9c998ac9af |
|
BLAKE2b-256 | f2cdbadc2ae9de0cb76fa2e9db9bc6ec7fca26a279e454734ef55b85dcb2934a |