Example #1
0
 private bool ShouldBeCorrespondence(DistanceNode node)
 {
     return(
         !StaticPointsInACorrespondence.Contains(node.StaticPoint) &&
         !ModelPointsInACorrespondence.Contains(node.ModelPoint)
         );
 }
Example #2
0
 public Correspondence(DistanceNode node)
     : this(
         staticPoint : node.StaticPoint,
         modelPoint : node.ModelPoint
         )
 {
 }
Example #3
0
        private void AddNodeToCorrespondences(DistanceNode node)
        {
            Correspondences.Add(new Correspondence(node));

            StaticPointsInACorrespondence.Add(node.StaticPoint);
            ModelPointsInACorrespondence.Add(node.ModelPoint);
        }
Example #4
0
        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));
 }