Assembly: AForge.Math (in AForge.Math.dll) Version: 22.214.171.124 (126.96.36.199)
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.