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.0.15.tar.gz
(7.8 kB
view details)
Built Distribution
sap-0.0.15-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file sap-0.0.15.tar.gz
.
File metadata
- Download URL: sap-0.0.15.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68931de963bf79ff9cb2e7d62bcd97b336a5566b508676dd7eb9c997d12bf3f |
|
MD5 | ba21b37e30dc0daf31ab556b6e4c9335 |
|
BLAKE2b-256 | 1024b848f427a02d66edcc42c8942f0c1b95f1b683d790e68fd1e556762f811e |
File details
Details for the file sap-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: sap-0.0.15-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f03226f7579af010843ae9734c200867e6b476f34aed55aa3fb07e072c25c1 |
|
MD5 | e076623a236358467b0a2e3c46a10783 |
|
BLAKE2b-256 | 5b1815309fee4cf4c670131c66173afb17bce353ddc380b7290eef68f690104a |