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.13.tar.gz
(7.8 kB
view details)
Built Distribution
sap-0.0.13-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file sap-0.0.13.tar.gz
.
File metadata
- Download URL: sap-0.0.13.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 | 7b70ac219126129d63802b2e91d59223073f5a47e59cbff9929b82582024c867 |
|
MD5 | 905988e7733d170b7566e3b5f5839e23 |
|
BLAKE2b-256 | b0bd82a660daebe97791598fd78852feef48f7465de9abf81c8edfd7688b9f7e |
File details
Details for the file sap-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: sap-0.0.13-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 | 09fbb7f4fe96ef31dcb489a0837fac6249fe99e5e3652ff40290881f343e374b |
|
MD5 | b081051f994b7f017c1b2193099cfa74 |
|
BLAKE2b-256 | e30ae8ca67ce2265655f69428c7e129b876b2ee5e82065c97023573b14561abd |