Skip to main content

Simple Attribute Profiles

Project description

Simple Attribute Profiles (SAP)

build status coverage report Documentation Status Pypi version

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 coverage report 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.4.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

sap-0.2.4-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.2.4.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for sap-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1eefa9bb361f346369d2ad6ee820ddb7ed075828bdfc6ad616c43e36c4aed63c
MD5 246b1a566c0efef23db29bd1ddd33e47
BLAKE2b-256 bf9533f995d7efa12349c2f6b66075cce5af9093f2b6d22d77c125f478e418cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for sap-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 694a73ddfc4d865742e8eb7bdf46a6d05319cd13d436fd88b9e234a8f57f8644
MD5 ab0e01c3016cb51307b3ae5a88f5f629
BLAKE2b-256 c75ffd4d36514075ebf4c62f09a8da3245ce3f234e823c5f8c5894cda2b8a4cd

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