File Exchange

image thumbnail

hullfit

version 1.0.0.0 (17.7 KB) by Peter Wasmeier
Fit polygon hull to a data set better than convhull would do.

0 Downloads

Updated 15 Nov 2004

View License

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.

Comments and Ratings (8)

Nacho

Nacho (view profile)

Christine A.

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.

Joachim Schnellbächer

Good

David Müller

J M

Fantastic!

Flo Pap

Perfect - much better than convhull.

chris roman

good, seems to work as advertised.
thanks

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor