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.11.tar.gz
(7.8 kB
view details)
Built Distribution
sap-0.0.11-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file sap-0.0.11.tar.gz
.
File metadata
- Download URL: sap-0.0.11.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 | adae516bb8c55429a753e841528989eceb2beec1b1f3ff89ff37ecc224c446d4 |
|
MD5 | 05b3d8fef001c6cb54004019613a4204 |
|
BLAKE2b-256 | 870473b3b4ebb0bbd3497f8b59c4bda7a1f32e1ab0b194207edc346d725171a5 |
File details
Details for the file sap-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: sap-0.0.11-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 | a28fdb64b29cf5801a47f30dc9b804c5465cbd84f2934cbee2e3ac09c46495f5 |
|
MD5 | 5fa9a15b60579611821a6a5b1a1630a8 |
|
BLAKE2b-256 | 2b9fb25d8d32e5522319c678d335a8d0f469ae54e02c6c012af52722d2bb589f |