Beispiel #1
0
        public List <Result> DistanceSegmFree(DsLPoints[] QueryLocalPoints, int QueryWidth, int QueryHeight, DsLPoints[] DocumentLocalPoints, float NearNeighborArea = 0.35f, int ClosestCenters = 2, float SimilarityCenterLocalPoints = 0.04f)
        {
            var mySegmFreeDistance = new DistanceSegmFree
            {
                NearNeighborArea            = NearNeighborArea,
                ClosestCenters              = ClosestCenters,
                SimilarityCenterLocalPoints = SimilarityCenterLocalPoints
            };
            var query = mySegmFreeDistance.GetNormalizedDescriptor(QueryLocalPoints);
            var doc   = mySegmFreeDistance.GetNormalizedDescriptor(DocumentLocalPoints);

            return(DistanceSegmFree(query, QueryWidth, QueryHeight, doc, mySegmFreeDistance));
        }
Beispiel #2
0
        public float[] CreateNormalizedDescriptorForSegmFree(DsLPoints[] LocalPoints)
        {
            var mySegmFreeDistance = new DistanceSegmFree();

            return(mySegmFreeDistance.GetNormalizedDescriptor(LocalPoints));
        }