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

Uploaded Source

Built Distribution

sap-0.1.6-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.1.6.tar.gz
  • Upload date:
  • Size: 14.9 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.1.6.tar.gz
Algorithm Hash digest
SHA256 1007d1e7f74a9a6062993f056dd010ab1aa06438940758a25e9a58ed47869a01
MD5 3df571b68b62d417494033046d02d52c
BLAKE2b-256 95be9d3650cf1154052e0d6599afacce0e8d484c19fa40ec66f49a26da89b14a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 20.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.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ce1151621545d5aea5a09a5bf0e0723315cf985b8f38f03f577ed3b2e6d1c75c
MD5 3db32d038b151dc7c6f380a83f27654e
BLAKE2b-256 5f7ac94c1df001df83da9d05735fe5423a8c4e25ab2c12230c1b6b3820f74b7b

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