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.


pip install sap


Documentation is available on



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)


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-0.2.7.tar.gz (28.4 kB view hashes)

Uploaded source

Built Distribution

sap-0.2.7-py3-none-any.whl (31.6 kB view hashes)

Uploaded py3

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