Skip to main content

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 at https://python-sap.readthedocs.org/.

Notebooks

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


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

Uploaded Source

Built Distribution

sap-0.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.0.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for sap-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e8ad91b6a66bf2327898fab702c14862a15552dd3d4c7bbcfbb0f14477304dd6
MD5 38be5fa155dd96044006fa9fa04485a9
BLAKE2b-256 7023adc96ec446b0db48f66dfe0678dc0553a7d8b3309d13a7f57aa6dad937f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for sap-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad3e3909dc7af13432eb3003163b74b44d2dae9b4891b3a5cc92382849fad7c1
MD5 a4c9d557106c51c5731635adde376628
BLAKE2b-256 30d24495894389eb1d94963d0a9d0efae0a29f347f564763ba1487edcc84ac00

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