Skip to content
/ sap Public

Python package to easily compute morphological attribute profiles (AP) of images.

License

Notifications You must be signed in to change notification settings

fguiotte/sap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python package to easily compute morphological attribute profiles (AP) of images.

Resources

License

Stars

Watchers

Forks

Languages