C# 클래스 Forensics.Chamfer

파일 보기 프로젝트 열기: Algorithmix/Papyrus

공개 메소드들

메소드 설명
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

메소드 상세

Measure() 공개 정적인 메소드

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
리턴 int[]

NormalizedSimilarity() 공개 정적인 메소드

public static NormalizedSimilarity ( int chamfer1, int chamfer2 ) : double
chamfer1 int
chamfer2 int
리턴 double

ScaleChamfer() 공개 정적인 메소드

public static ScaleChamfer ( int input, int size ) : int[]
input int
size int
리턴 int[]

ScanSimilarity() 공개 정적인 메소드

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
리턴 double[]

Similarity() 공개 정적인 메소드

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
리턴 double

Sparsity() 공개 정적인 메소드

Indicates the sparsity of the chamfer by sum(integrating) the chamfer vector
public static Sparsity ( int chamfer ) : long
chamfer int chamfer vector
리턴 long