Skip to main content

Simple Attribute Profiles

Project description

Simple Attribute Profiles (SAP)

build status coverage report Documentation Status

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


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

Uploaded Source

Built Distribution

sap-0.0.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 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.2.tar.gz
Algorithm Hash digest
SHA256 5af24f68c559b15486bf84b710d0836f065f6f1782db13b53aea439526b895a9
MD5 d5c4a7ae6a79794310b953c2c130c637
BLAKE2b-256 0801dcdbead1f6649e8c70984b87d9653ae283a7b3bee9708bf6532dd14a5f5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b811b34570f8de947db890ddbc19013e008c9973165f178cfaf807ae1922731d
MD5 43b6fe4544098ba46276537b65c049fa
BLAKE2b-256 49783339e54141434953a666c152be9621f75211e5c3f72875e1ae49290b5311

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