View License

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

» Watch video

Highlights from
Feret diameter and oriented box

5.0 | 6 ratings Rate this file 21 Downloads (last 30 days) File Size: 399 KB File ID: #30402 Version: 1.1
image thumbnail

Feret diameter and oriented box


David Legland (view profile)


14 Feb 2011 (Updated )

Compute Feret diameters and oriented bounding box from label image

| Watch this File

File Information

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.

MATLAB release MATLAB 8.3 (R2014a)
Other requirements The demo requires the image processing toolbox
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
30 Jan 2017 KHALDOUN Mohammed


Comment only
17 Sep 2015 Sehairi K.

Many thanks for this code

27 Aug 2014 Jasper Vijverberg

27 Aug 2014 Jasper Vijverberg

11 Aug 2014 Abhik

Abhik (view profile)

16 Jul 2014 Sergio

Sergio (view profile)

01 Dec 2011 ben payne

ben payne (view profile)

Works as desired! Good documentation too.

02 Sep 2014 1.1

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

Contact us