Skip to main content

Simple Attribute Profiles

Project description

Simple Attribute Profiles (SAP)

build status codecov Documentation Status Pypi version Pypi python

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 codecov 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-1.0.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

sap-1.0.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sap-1.0.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for sap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a2d50c9c253791cefe1bce7509cee8a54f770fb14527a38f89b906d22ef2addd
MD5 c767bc70c83b68bf00a3dde34d6bcfe5
BLAKE2b-256 1110b361c9924e1268ecc9c6e738f14ff47ac96a693539bd1f19d614552d8244

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for sap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254e2c2e2c2f4af48dcafd1cab10a2a559ae5b79a88ab91ca5e02103e853dd5d
MD5 02e9914e693040f15ee33059541eeb2d
BLAKE2b-256 bed2fb7aa508b9f0414c16ef7612a7cf9a48bc92d1273960194bc3455bff3a75

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