Code covered by the BSD License
-
incircle(x,y)
incircle: compute the maximal in-circle of the polygonal convex hull of a set of points in the plane
-
insphere(xyz,tri)
insphere: compute the maximal in-sphere of the polyhedronal convex hull of a set of points in R^3
-
minboundcircle(x,y,hullflag)
minboundcircle: Compute the minimum radius enclosing circle of a set of (x,y) pairs
-
minboundparallelogram(x,y,met...
minboundparallelogram: Compute the minimal bounding parallelogram of points in the plane
-
minboundquad(x,y)
minboundquad: Compute the minimum area bounding quadrilateral of points in the plane
-
minboundrect(x,y,metric)
minboundrect: Compute the minimal bounding rectangle of points in the plane
-
minboundsemicircle(x,y)
minboundsemicircle: minimum radius bounding semi-circle
-
minboundsphere(xyz)
minboundsphere: Compute the minimum radius enclosing sphere of a set of (x,y,z) triplets
-
minboundtri(x,y)
minboundtri: Compute the minimum area bounding triangle of points in the plane
-
minbounddemo.m
-
View all files
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.
|
| Updates |
| 26 Jan 2012 |
Removed a tool I had been testing, but only accidentally included |
|
Contact us at files@mathworks.com