4.625

4.6 | 8 ratings Rate this file 12 Downloads (last 30 days) File Size: 17.7 KB File ID: #6243
image thumbnail

hullfit

by Peter Wasmeier

 

11 Nov 2004 (Updated 15 Nov 2004)

Fit polygon hull to a data set better than convhull would do.

| Watch this File

File Information
Description

When interpolating on a given data set, convhull is used to set the boundaries of the interpolation area. Because convhull only minimizes the outline length, there might be interpolation lines which are unwanted (see figure).

hullfit tries to minimze the polygon area instead resulting in a hull line fitting sharper to the given data.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
area, convhull, general, hull(2), mathematics, polygon
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
05 Jul 2012 Nacho  
16 May 2010 Christine A.  
31 Aug 2007 Jon Barron

Hey, great script. I found a small bug though, which I was able to fix by changing the two "find" calls from "find(X)" to "find(X, 1, 'first')". Otherwise errors get thrown or results are poor for certain images.

21 Aug 2007 Joachim Schnellbächer

Good

08 Oct 2006 David Müller  
20 Sep 2006 J M

Fantastic!

19 Apr 2006 Flo Pap

Perfect - much better than convhull.

13 Mar 2005 chris roman

good, seems to work as advertised.
thanks

Contact us