private bool ShouldBeCorrespondence(DistanceNode node) { return( !StaticPointsInACorrespondence.Contains(node.StaticPoint) && !ModelPointsInACorrespondence.Contains(node.ModelPoint) ); }
public Correspondence(DistanceNode node) : this( staticPoint : node.StaticPoint, modelPoint : node.ModelPoint ) { }
private void AddNodeToCorrespondences(DistanceNode node) { Correspondences.Add(new Correspondence(node)); StaticPointsInACorrespondence.Add(node.StaticPoint); ModelPointsInACorrespondence.Add(node.ModelPoint); }
internal CorrespondenceCollectionBuilder(List <DistanceNode> distanceNodes, int numPointsSmallestFragment) { distanceNodes.Sort(DistanceNode.SortDescendingOnDistance()); DistanceNodes = new Stack <DistanceNode>(distanceNodes); StaticPointsInACorrespondence = new HashSet <Point>(); ModelPointsInACorrespondence = new HashSet <Point>(); FinalCorrespondenceCount = numPointsSmallestFragment; Correspondences = new CorrespondenceCollection(); }
public void Add(DistanceNode node) { Add(new Correspondence(node)); }