Skip to main content

Simple Attribute Profiles

Project description

Simple Attribute Profiles (SAP)

build status coverage report Documentation Status

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()

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

Uploaded Source

Built Distribution

sap-0.0.5-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.0

File hashes

Hashes for sap-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2463b99326598c6dce127536dac4b00f3f957d24021b94ec61b3aa16b736c0de
MD5 2f125fef733ed971f2412647af024be3
BLAKE2b-256 0ffb10fbcafa4f7791d28f1f36c7ac79d98c45944d92e957764bc921954e3ac7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.0

File hashes

Hashes for sap-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 17c544aa3b7d5e75ad88decb160b8dccd10977cee41f51f99f2200610e00d147
MD5 3c140c032fa9e37364283fe922446932
BLAKE2b-256 025b1a6760e45dd23c8cac15228c176c28f3433ffb0f54772e6c7569c4b47ec7

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