Ejemplo n.º 1
0
        public float DistanceSegmBased(DsLPoints[] QueryLocalPoints, int QueryWidth, int QueryHeight, DsLPoints[] WordLocalPoints, int WordWidth, int WordHeight, float NearNeighborArea = 0.35f)
        {
            DistanceSegmBased mySegmDistance = new DistanceSegmBased
            {
                NearNeighborArea = NearNeighborArea
            };
            var vector1 = mySegmDistance.GetNormalizedDescriptor(QueryLocalPoints, QueryWidth, QueryHeight);
            var vector2 = mySegmDistance.GetNormalizedDescriptor(WordLocalPoints, WordWidth, WordHeight);

            return(DistanceSegmBased(vector1, vector2, mySegmDistance));
        }
Ejemplo n.º 2
0
        public float[] CreateNormalizedDescriptorForSegmBased(DsLPoints[] LocalPoints, int Width, int Height)
        {
            DistanceSegmBased mySegmDistance = new DistanceSegmBased();

            return(mySegmDistance.GetNormalizedDescriptor(LocalPoints, Width, Height));
        }