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