public class DefaultLineStripMergePolicy extends Object implements ILineStripMergePolicy
Modifier and Type | Field and Description |
---|---|
protected double |
threshold |
Constructor and Description |
---|
DefaultLineStripMergePolicy() |
DefaultLineStripMergePolicy(double threshold) |
Modifier and Type | Method and Description |
---|---|
boolean |
mergeable(LineStrip ls1,
LineStrip ls2) |
double |
mergeScore(LineStrip ls1,
LineStrip ls2) |
protected double |
minDist(LineStrip strip1,
LineStrip strip2) |
LineStrip |
mostMergeableIfAny(LineStrip ls,
List<LineStrip> lines) |
public DefaultLineStripMergePolicy()
public DefaultLineStripMergePolicy(double threshold)
public LineStrip mostMergeableIfAny(LineStrip ls, List<LineStrip> lines)
mostMergeableIfAny
in interface ILineStripMergePolicy
public boolean mergeable(LineStrip ls1, LineStrip ls2)
mergeable
in interface ILineStripMergePolicy
public double mergeScore(LineStrip ls1, LineStrip ls2)
mergeScore
in interface ILineStripMergePolicy
Copyright © 2016. All rights reserved.