File Exchange

image thumbnail

Feret diameter and oriented box

version 1.1 (399 KB) by

Compute Feret diameters and oriented bounding box from label image



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 (9)

Sehairi K.


kayla (view profile)

Sehairi K.

Many thanks for this code


Abhik (view profile)


Sergio (view profile)

ben payne

ben payne (view profile)

Works as desired! Good documentation too.



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

MATLAB Release
MATLAB 8.3 (R2014a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today