C# Class SoundFingerprinting.Utils.FingerprintDescriptor

Signature image encoder/decoder
Inheritance: IFingerprintDescriptor
Show file Open project: AddictedCS/soundfingerprinting Class Usage Examples

Public Methods

Method Description
DecodeFingerprint ( bool signature ) : double[]

Decode the signature of the fingerprint

EncodeFingerprint ( float concatenated, int indexes, int topWavelets ) : bool[]

Encode the integer representation of the fingerprint into a Boolean array

ExtractTopWavelets ( float frames, int topWavelets ) : bool[]

Sets all other wavelet values to 0 except whose which make part of Top Wavelet [top wavelet > 0 ? 1 : -1]

Negative Numbers = 01 Positive Numbers = 10 Zeros = 00

FingerprintDescriptor ( ) : System

Protected Methods

Method Description
ConcatenateFrames ( float frames ) : float[]

Method Details

ConcatenateFrames() protected method

protected ConcatenateFrames ( float frames ) : float[]
frames float
return float[]

DecodeFingerprint() public method

Decode the signature of the fingerprint
public DecodeFingerprint ( bool signature ) : double[]
signature bool Signature to be decoded
return double[]

EncodeFingerprint() public method

Encode the integer representation of the fingerprint into a Boolean array
public EncodeFingerprint ( float concatenated, int indexes, int topWavelets ) : bool[]
concatenated float Concatenated fingerprint (frames concatenated)
indexes int Sorted indexes with the first one with the highest value in array
topWavelets int Number of top wavelets to encode
return bool[]

ExtractTopWavelets() public method

Sets all other wavelet values to 0 except whose which make part of Top Wavelet [top wavelet > 0 ? 1 : -1]
Negative Numbers = 01 Positive Numbers = 10 Zeros = 00
public ExtractTopWavelets ( float frames, int topWavelets ) : bool[]
frames float /// Frames with 32 logarithmically spaced frequency bins ///
topWavelets int /// The top Wavelets. ///
return bool[]

FingerprintDescriptor() public method

public FingerprintDescriptor ( ) : System
return System