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.2.3.tar.gz
(16.4 kB
view details)
Built Distribution
sap-0.2.3-py3-none-any.whl
(21.9 kB
view details)
File details
Details for the file sap-0.2.3.tar.gz
.
File metadata
- Download URL: sap-0.2.3.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf4cc2ceebc6b7a430a08b8f8941234981cb8df1f0bf1012271aa49addd6e34 |
|
MD5 | c45772d951242a3b92008db533629293 |
|
BLAKE2b-256 | c7f814f381199e06625a1cab72c2a1a45b90f744e7b74f719be44d484e4489c2 |
File details
Details for the file sap-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: sap-0.2.3-py3-none-any.whl
- Upload date:
- Size: 21.9 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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2037e2c63dcaaa93c260ed663a3560f71137e0f7d1eb57866b4a3dc365002a86 |
|
MD5 | 7f93cd7de83c794572d2eb4c525db1f2 |
|
BLAKE2b-256 | 3b301b80b68d9f1eca99d04e57a92456fccc31e6dc754877151062f0e3fedb87 |