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()
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.5.tar.gz
(4.9 kB
view details)
Built Distribution
sap-0.0.5-py3-none-any.whl
(12.1 kB
view details)
File details
Details for the file sap-0.0.5.tar.gz
.
File metadata
- Download URL: sap-0.0.5.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2463b99326598c6dce127536dac4b00f3f957d24021b94ec61b3aa16b736c0de |
|
MD5 | 2f125fef733ed971f2412647af024be3 |
|
BLAKE2b-256 | 0ffb10fbcafa4f7791d28f1f36c7ac79d98c45944d92e957764bc921954e3ac7 |
File details
Details for the file sap-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: sap-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17c544aa3b7d5e75ad88decb160b8dccd10977cee41f51f99f2200610e00d147 |
|
MD5 | 3c140c032fa9e37364283fe922446932 |
|
BLAKE2b-256 | 025b1a6760e45dd23c8cac15228c176c28f3433ffb0f54772e6c7569c4b47ec7 |