Skip to main content

Simple Attribute Profiles

Project description

Simple Attribute Profiles (SAP)

build status codecov Documentation Status Pypi version Pypi python

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

build status codecov Documentation Status

Project details


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.6.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

sap-0.2.6-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file sap-0.2.6.tar.gz.

File metadata

  • Download URL: sap-0.2.6.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for sap-0.2.6.tar.gz
Algorithm Hash digest
SHA256 430cfa3d17daea956200570d6157e8c8b6d9db6b05e683268c40bb0e1d35964e
MD5 764656c87dcb2375c5abc5c926272288
BLAKE2b-256 a341c404d60a71118bd4f84da5cb1bb0709c54cf0a5a09300908201342f44297

See more details on using hashes here.

File details

Details for the file sap-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: sap-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for sap-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1c465fc50d14ac8cf35ec1738942f298ef08a330b178ef7a2b8f6e7198a7275a
MD5 e397c9ae41e8c97ef052249fcce4376b
BLAKE2b-256 2bad61ad73560ffcfb36535fdecf185621a08e9f30eca931a92e791710edf4e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page