Assembly: AForge.Math (in AForge.Math.dll) Version: 126.96.36.199 (188.8.131.52)
public class ClosePointsMergingOptimizer : IShapeOptimizer
This shape optimizing algorithm checks all points of a shape and merges any two points which are within specified distance to each other. Two close points are replaced by a single point, which has mean coordinates of the removed points.
For example, the below circle shape comprised of 65 points, can be optimized to 8 points
by setting MaxDistanceToMerge to 28.