Calculate Feret diameter.
Project description
Feret
This python module can calculate the maximum and minimum Feret Diameter of a binary image. For a detailed explanation see this wikipedia page.
At this early development stage, it can only calculate the maximum and minimum Feret Diameter but feature releases will offer the Feret diameter 90° to maximum and minimum. The module will also not return the angle of the diameters. Many things will come in the future.
The module can be used as followed:
import feret
import tifffile as tif
img = tif.imread('example.tif')
res = feret.calc(img)
print(res.maxferet, res.minferet)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
feret-0.1.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
feret-0.1.2-py3-none-any.whl
(4.7 kB
view hashes)