View License

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

» Watch video

Highlights from
Polygon simplification

4.0 | 2 ratings Rate this file 13 Downloads (last 30 days) File Size: 9.76 KB File ID: #45342 Version: 1.2
image thumbnail

Polygon simplification


Peter Bone (view profile)


31 Jan 2014 (Updated )

Simplifies a closed polygon by reducing the number of vertices to a specified number

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

Reduce the number of vertices in a closed polygon while maintaining the shape and detail as much as possible.

Unlike similar functions, this one will allow you to reduce to a specific number of vertices.

Required Products MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Other requirements Image processing toolbox required for the demo
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
09 Aug 2016 Adam

Adam (view profile)

Didn't work without fixes:
demo line 21:
[C,h] = contour(BW, [0 1]);

reduce_poly.m add below line 78:
if len1len2 == 0

02 Mar 2016 Matthias

Perfect! Very useful.

03 Feb 2014 1.1

Fixed error referencing non-existing variable.

04 Feb 2014 1.2

Significant speed up.

Contact us