File Exchange

image thumbnail

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

5 Downloads

Updated 02 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.

Comments and Ratings (12)

di

David,
Thanks for your reply. It's very useful and these codes are concise and beautiful.

Hi di,
you can download y other contribution "imHistogram", also on the FileExchange (https://fr.mathworks.com/matlabcentral/fileexchange/28681-imhistogram).
You can also grab it from the GitHub page of the MatImage toolbox, that gather image processing tools I have written. https://github.com/mattools/matImage

di

How to find this function "imHistogram" that exists in function of "demoImMaxFeretDiameter"?

Sehairi K.

kayla

Sehairi K.

Many thanks for this code

Abhik

Sergio

ben payne

Works as desired! Good documentation too.

Updates

1.1.0.0

enhance precision, add psb to specify spatial calibration, and to computes diameter or box only for specific labels

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

imFeretDiameters/html/