Code covered by the BSD License  

Highlights from
A suite of minimal bounding objects

4.5

4.5 | 2 ratings Rate this file 32 Downloads (last 30 days) File Size: 268.03 KB File ID: #34767
image thumbnail

A suite of minimal bounding objects

by John D'Errico

 

25 Jan 2012 (Updated 26 Jan 2012)

Suite of tools to compute minimal bounding circles, rectangles, triangles, spheres, incircles, etc.

| Watch this File

File Information
Description

I've written quite a few separate tools to generate a minimal bounding object of some ilk. So if you have a set of points in the plane, and wish to generate the minimal bounding...

- rectangle
- triangle
- general quadrilateral
- circle
- parallelogram
- semi-circle

there is a tool in here to solve your task efficiently. You will also find minboundsphere, for 3-d data. Inscribed objects are also supported, computed by incircle and insphere.

Caveat - if you have only an image, don't expect these tools to work directly. (The image processing toolbox can do much here anyway - look there first.) In order to use these tools, I require a set of extracted points.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
01 Mar 2012 Venkat R

Dear John,

A file 'minboundellipse.m' is missing I suppose.

regards,
Venkat

02 May 2012 xiuwei zhang  
Please login to add a comment or rating.
Updates
26 Jan 2012

Removed a tool I had been testing, but only accidentally included

Tag Activity for this File
Tag Applied By Date/Time
miminum John D'Errico 25 Mar 2012 06:31:55
bound John D'Errico 25 Mar 2012 06:31:55
bounding John D'Errico 25 Mar 2012 06:31:55
circle John D'Errico 25 Mar 2012 06:31:55
rectangle John D'Errico 25 Mar 2012 06:31:55
triangle John D'Errico 25 Mar 2012 06:31:55
perimeter John D'Errico 25 Mar 2012 06:31:55
area John D'Errico 25 Mar 2012 06:31:55
sphere John D'Errico 25 Mar 2012 06:31:55
incircle John D'Errico 25 Mar 2012 06:31:55
insphere John D'Errico 25 Mar 2012 06:31:55
polygon John D'Errico 25 Mar 2012 06:31:55

Contact us at files@mathworks.com