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.4.tar.gz
(13.1 kB
view details)
Built Distribution
sap-0.1.4-py3-none-any.whl
(18.9 kB
view details)
File details
Details for the file sap-0.1.4.tar.gz
.
File metadata
- Download URL: sap-0.1.4.tar.gz
- Upload date:
- Size: 13.1 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 | cf7cb5be6d5b2493b03b6c058f9b805d9a316014f1b6279ad40d7918e3d3978f |
|
MD5 | c58f34daf95b60e3e3974c8b6fe696d9 |
|
BLAKE2b-256 | c47c354027a43705bf1e818f5906c8d9dc4cbe8d6a98ef3c0beccc362951a73a |
File details
Details for the file sap-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: sap-0.1.4-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 | afdab3a6117a17dc4c7093e08f748c81f51613ea96815991105a82954ce3dfc7 |
|
MD5 | ea8adfe8caaaf778ec627ea2de7b37d5 |
|
BLAKE2b-256 | 48a9dec4fe93223c27af2e3588c0c5786af6ee79816606c2904e6d0af8c5a15e |