Feret diameter and oriented box

version 1.1.0.0 (399 KB) by David Legland
Compute Feret diameters and oriented bounding box from label image

2.4K Downloads

Updated 2 Sep 2014

View License

Two functions for working with the Feret diameter of labelized particles in images.
The function imFeretDiameter computes the Feret diameter for each one of the specified directions. The maximal diameter can be obtained by computing the max of the result.

The function imOrientedBox computes Feret diameter for several directions, and keep the direction that produces the minimal-area enclosing rectangle. The function drawOrientedBox can be used for visualising result.

Both functions could easily be adapted to a set of points.

Cite As

David Legland (2022). Feret diameter and oriented box (https://www.mathworks.com/matlabcentral/fileexchange/30402-feret-diameter-and-oriented-box), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

imFeretDiameters/html/