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

Uploaded Source

Built Distribution

sap-0.2.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.2.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for sap-0.2.1.tar.gz
Algorithm Hash digest
SHA256 49f4a5491605da1283dfe3a8aad266c86076336819e2d5ea6dce1bafe040a103
MD5 9208a2f8ddeca800d1134dff43921e6e
BLAKE2b-256 8692366c7d7db40ab49aaf8c0831e3d403d0c76ad5ab925822946f5fe60b698f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for sap-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55dab48231a5222e02538a6735f61226341b342bfc85c850d2e8fdceca42bddb
MD5 9ad399f0c5a50a15f2d658da94573f8c
BLAKE2b-256 21b9f07f40f044bc0c1ba3d395ba7ea6fe35a159765e927c7b071112488d764e

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