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.

Files for sap, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size sap-0.0.5-py3-none-any.whl (12.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sap-0.0.5.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page