R: Compute point & tangent vector similarity score between two...
WeightedNNBasedLinesetMatching
R Documentation
Compute point & tangent vector similarity score between two linesets
Description
WeightedNNBasedLinesetMatching will work with 2 objects of class
dotprops or neuron. The code to calculate scores directly for
neuron objects gives broadly comparable scores to that for
dotprops objects, but has been lightly tested. Furthermore only
objects in dotprops form were used in the constriction of the
scoring matrices distributed in this package. It is therefore recommended
to convert neuron objects to dotprops objects using the
dotprops function.
Usage
WeightedNNBasedLinesetMatching(target, query, ...)
## S3 method for class 'dotprops'
WeightedNNBasedLinesetMatching(target, query,
UseAlpha = FALSE, ...)
## S3 method for class 'neuron'
WeightedNNBasedLinesetMatching(target, query,
UseAlpha = FALSE, OnlyClosestPoints = FALSE, ...)
Arguments
target,query
dotprops or neuron objects to compare (must be of the
same class)
...
extra arguments to pass to the distance function.
UseAlpha
Whether to scale dot product of tangent vectors (default=F)
OnlyClosestPoints
Whether to restrict searches to the closest points
in the target (default FALSE, only implemented for dotprops).
Details
UseAlpha determines whether the alpha values
(eig1-eig2)/sum(eig1:3) are passed on to WeightedNNBasedLinesetMatching.
These will be used to scale the dot products of the direction vectors for
nearest neighbour pairs.
Value
Value of NNDistFun passd to WeightedNNBasedLinesetMatching