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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.2.0.tar.gz
  • Upload date:
  • Size: 16.1 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.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sap-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8f01a151026e3db2fc10ce532104c713d5a24c4304f75e5a25d5c7baaa7fbf87
MD5 311dd3c97ff39c984210e58c3ec806e8
BLAKE2b-256 139424c86a255dbe53fbc907d835bc86bb7e2913602a8e5e25180ec7340f0a64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.2.0-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.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sap-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 361c896a5da096244b16eba2a15d140511ff8e5af24bbdd9e6463f5e6a98063a
MD5 4330bb5922e9a6821810f1aef9213ee9
BLAKE2b-256 d8991f00d5973d15095fa1cc43fbd667de2ab5da4142ba36627314cd56cb853c

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