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

Uploaded Source

Built Distribution

sap-0.2.3-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sap-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ddf4cc2ceebc6b7a430a08b8f8941234981cb8df1f0bf1012271aa49addd6e34
MD5 c45772d951242a3b92008db533629293
BLAKE2b-256 c7f814f381199e06625a1cab72c2a1a45b90f744e7b74f719be44d484e4489c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 21.9 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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for sap-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2037e2c63dcaaa93c260ed663a3560f71137e0f7d1eb57866b4a3dc365002a86
MD5 7f93cd7de83c794572d2eb4c525db1f2
BLAKE2b-256 3b301b80b68d9f1eca99d04e57a92456fccc31e6dc754877151062f0e3fedb87

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