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

Uploaded Source

Built Distribution

sap-0.2.7-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.2.7.tar.gz
  • Upload date:
  • Size: 28.4 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.7.tar.gz
Algorithm Hash digest
SHA256 ec3afa3bf95536e945b3407ecc87341cf33d02afc1ce5b439ede209aeb335b21
MD5 1e1a9cacc6d8f5a3fe3441f5ea35c21b
BLAKE2b-256 fabd172557b777788b5a8ee129eec138ccf7086bbb2c683c0fe1b936d6bddbcb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 31.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e3cf96a187cc00ad40c59e08aefa204171d49d6565042c1eb8ddc50b8418b248
MD5 b8211747c1db33736c3ccb723307ca3f
BLAKE2b-256 e05c9d9ef335130f759e9cf2864ed26adf35052aa0412ee4a8a6d46777c75f9e

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