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.0.tar.gz
(16.1 kB
view details)
Built Distribution
sap-0.2.0-py3-none-any.whl
(21.8 kB
view details)
File details
Details for the file sap-0.2.0.tar.gz
.
File metadata
- Download URL: sap-0.2.0.tar.gz
- Upload date:
- Size: 16.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/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f01a151026e3db2fc10ce532104c713d5a24c4304f75e5a25d5c7baaa7fbf87 |
|
MD5 | 311dd3c97ff39c984210e58c3ec806e8 |
|
BLAKE2b-256 | 139424c86a255dbe53fbc907d835bc86bb7e2913602a8e5e25180ec7340f0a64 |
File details
Details for the file sap-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sap-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.8 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/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361c896a5da096244b16eba2a15d140511ff8e5af24bbdd9e6463f5e6a98063a |
|
MD5 | 4330bb5922e9a6821810f1aef9213ee9 |
|
BLAKE2b-256 | d8991f00d5973d15095fa1cc43fbd667de2ab5da4142ba36627314cd56cb853c |