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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 62d38010e6966c907a7c9da3adfb634e82c8e97c3909210e360e6109c20cc9bb
MD5 f03802a84d37191575f6446ae8964680
BLAKE2b-256 0432eb7d5fc5ac17363c2d64fbc6a3f75e01a5271fa9449835d83a0ea47caef6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1e7b612a913e824a5984072661b7841f2933b3de333d3fccbfb9b6de30c47181
MD5 4edd232c1f9dad1bbf633d1f766ac60c
BLAKE2b-256 4d8939b18b13595594d90bbdc2290c36490eb4e92fb445cbe8db7822c809cbf6

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