C# Class Forensics.Chamfer

Afficher le fichier Open project: Algorithmix/Papyrus

Méthodes publiques

Méthode Description
Measure ( double convolution ) : int[]

Calculates the chamfer from a convolution

NormalizedSimilarity ( int chamfer1, int chamfer2 ) : double
ScaleChamfer ( int input, int size ) : int[]
ScanSimilarity ( int chamfer1, int chamfer2 ) : double[]

Scan Similarity calculates the similarity for possible alignments of two chamfers such that the smaller edge is always bound by the larger edge

Similarity ( int smaller, int larger, int start ) : double

Calculates how similar two chamfers are 'i.e' opposite of the chamfer distance Does so by taking the dot product of the two chamfer vectors normalized by the max( dot product of either of the chamfers).

Sparsity ( int chamfer ) : long

Indicates the sparsity of the chamfer by sum(integrating) the chamfer vector

Method Details

Measure() public static méthode

Calculates the chamfer from a convolution
public static Measure ( double convolution ) : int[]
convolution double An array of doubles, where 0 indicates no feature and non zero indicates a feature
Résultat int[]

NormalizedSimilarity() public static méthode

public static NormalizedSimilarity ( int chamfer1, int chamfer2 ) : double
chamfer1 int
chamfer2 int
Résultat double

ScaleChamfer() public static méthode

public static ScaleChamfer ( int input, int size ) : int[]
input int
size int
Résultat int[]

ScanSimilarity() public static méthode

Scan Similarity calculates the similarity for possible alignments of two chamfers such that the smaller edge is always bound by the larger edge
public static ScanSimilarity ( int chamfer1, int chamfer2 ) : double[]
chamfer1 int Chamfer vector
chamfer2 int Other shreds Chamfer vector
Résultat double[]

Similarity() public static méthode

Calculates how similar two chamfers are 'i.e' opposite of the chamfer distance Does so by taking the dot product of the two chamfer vectors normalized by the max( dot product of either of the chamfers).
public static Similarity ( int smaller, int larger, int start ) : double
smaller int Smaller Chamfer Vector
larger int Larger Chamfer vector
start int Starting offset
Résultat double

Sparsity() public static méthode

Indicates the sparsity of the chamfer by sum(integrating) the chamfer vector
public static Sparsity ( int chamfer ) : long
chamfer int chamfer vector
Résultat long