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.2.tar.gz
(11.0 kB
view details)
Built Distribution
sap-0.1.2-py3-none-any.whl
(17.3 kB
view details)
File details
Details for the file sap-0.1.2.tar.gz
.
File metadata
- Download URL: sap-0.1.2.tar.gz
- Upload date:
- Size: 11.0 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 | 7f057b969c690e57ac703fecff9694730951b6e2bb05abcb199e7910309b4d87 |
|
MD5 | ad5c02e04b7b718cb41d5d7b58e9bef5 |
|
BLAKE2b-256 | 01245104338ac247440f2b5573405b90af8ba0d1e1d9a46974838487f48b670d |
File details
Details for the file sap-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sap-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.3 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 | 5731dc209e8a7431eeadfa716fbf51e0976a322cd707831ef1bb161cb98f181f |
|
MD5 | 853c508db4d69e10ae50913d33408610 |
|
BLAKE2b-256 | 36aa92e76042dd60f5cd6dc2c965c4d1c74c5a898c46d2d59d75646b1057de6f |