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

Uploaded Source

Built Distribution

sap-0.0.7-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.0.7.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for sap-0.0.7.tar.gz
Algorithm Hash digest
SHA256 b81d1918bfe658bf53b0c007f4948b20d938ddaa5eeeac02eeac2d4a9dae7ef6
MD5 4057935819511c88cc3dc0386f472266
BLAKE2b-256 1ecbc697611fa02e1f29324e00338fbaf3e845bfe04164b7978cbb89051ea611

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for sap-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fccb3a55780e58277f43e408c8182968788991053b71f0c2d7eafa589a29395c
MD5 b63e766b82b7efcb0c0836c1c2b93db4
BLAKE2b-256 c03a873c048881a84d97147d12c5589dd3ebfbda7ac2914335bf44e7571b4817

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