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.2.tar.gz
(16.4 kB
view details)
Built Distribution
sap-0.2.2-py3-none-any.whl
(21.9 kB
view details)
File details
Details for the file sap-0.2.2.tar.gz
.
File metadata
- Download URL: sap-0.2.2.tar.gz
- Upload date:
- Size: 16.4 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.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f07ccefa3ed3fc1541bf8bc1d464fe3894bf4be82644565c8353ca5c042ffdee |
|
MD5 | 941b799d8ab6106072205467d715450d |
|
BLAKE2b-256 | aab7e59fa01d3fef200e34640c15861552dcc88ebd03b742cc2f6c901d9827e0 |
File details
Details for the file sap-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: sap-0.2.2-py3-none-any.whl
- Upload date:
- Size: 21.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/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aedd4590d8032c90352bfb02c921554f288b57577809b23a6ea84befa158427 |
|
MD5 | 234e8082a6b1c9f7dd830715570dc445 |
|
BLAKE2b-256 | a32957841d398ceaf1eb19cd3a67b0ae444629e7658168e22037948b23927db1 |