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.5.tar.gz
(13.2 kB
view details)
Built Distribution
sap-0.1.5-py3-none-any.whl
(19.1 kB
view details)
File details
Details for the file sap-0.1.5.tar.gz
.
File metadata
- Download URL: sap-0.1.5.tar.gz
- Upload date:
- Size: 13.2 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 | 8328ca68d5af0c683d15c4d05ae3804a3dc9fc4f16c99aa76690bb9ca4e81f4c |
|
MD5 | f4f5ab8282f47cdb237bd267eaa5716e |
|
BLAKE2b-256 | 31638ce7c0484c69bb77b519284f6b28bd7e5c4090c137580cf5284f7f044920 |
File details
Details for the file sap-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: sap-0.1.5-py3-none-any.whl
- Upload date:
- Size: 19.1 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 | aa04d76b59a9078f22a2d0ae7b5f746eff739589e1d60daf28712cf07a29e465 |
|
MD5 | 998751eb1164f171fb759a58cc81df17 |
|
BLAKE2b-256 | ecc2edf1fd106e9b931a57da7398b0da235f2d42515fde478ba981dbc31d81a6 |