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)); }
public float[] CreateNormalizedDescriptorForSegmFree(DsLPoints[] LocalPoints) { var mySegmFreeDistance = new DistanceSegmFree(); return(mySegmFreeDistance.GetNormalizedDescriptor(LocalPoints)); }