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.1.tar.gz
(9.7 kB
view details)
Built Distribution
sap-0.1.1-py3-none-any.whl
(16.4 kB
view details)
File details
Details for the file sap-0.1.1.tar.gz
.
File metadata
- Download URL: sap-0.1.1.tar.gz
- Upload date:
- Size: 9.7 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 | 6e2d304de4138cb356c0289e28aea98f4229ceee0d21dfdd84a3900330c16dd1 |
|
MD5 | 30da67eb89694de8ac93ba27055b3c65 |
|
BLAKE2b-256 | 665e2d7b2e6bb406ef05c1cea495d1781a3ae466bfbb9fb7bd141ab11ed318cd |
File details
Details for the file sap-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sap-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.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 | 002eb146d7230a06a8d75925e36c7c4661f3189040cbab2603c19c12fcdd21b5 |
|
MD5 | d86393925c6a727bdb6dbb04ddd58630 |
|
BLAKE2b-256 | c75339ab5ab348dc2d8130502f8f4188c814c9aa53342e9b10bef972a25c9536 |