Class FindMatchingEvents
Inheritance
FindMatchingEvents
Assembly: AudioAnalysisTools.dll
public class FindMatchingEvents
Methods
|
Improve this Doc
View Source
Declaration
public static int CountPositives(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
Use this method to find match in sonogram to a symbolic definition of a bird call.
That is, the template should be matrix of binary or trinary values.
Declaration
public static Tuple<double[]> Execute_Bi_or_TrinaryMatch(double[, ] template, SpectrogramStandard sonogram, List<AcousticEvent> segments, int minHz, int maxHz, double dBThreshold)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Tuple<double[]> Execute_MFCC_XCOR(double[, ] target, double dynamicRange, SpectrogramStandard sonogram, List<AcousticEvent> segments, int minHz, int maxHz, double minDuration)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Tuple<double> Execute_One_Spr_Match(char[, ] template, double[, ] dataMatrix, double dBThreshold)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Tuple<double[]> Execute_SobelEdges(double[, ] target, double dynamicRange, SpectrogramStandard sonogram, List<AcousticEvent> segments, int minHz, int maxHz, double minDuration)
Parameters
Returns
|
Improve this Doc
View Source
Use this method to find match in sonogram to a symbolic definition of a bird call.
That is, the template should be matrix of binary or trinary values.
Declaration
public static Tuple<double[]> Execute_Spr_Match(char[, ] template, SpectrogramStandard sonogram, List<AcousticEvent> segments, int minHz, int maxHz, double dBThreshold)
Parameters
Returns
|
Improve this Doc
View Source
Use this method when want to match defined shape in target using cross-correlation.
This was the method used by Stewart Gage.
First set target and source to same dynamic range.
Then NormaliseMatrixValues target and source to unit-length.
Declaration
public static Tuple<double[]> Execute_StewartGage(double[, ] target, double dynamicRange, SpectrogramStandard sonogram, List<AcousticEvent> segments, int minHz, int maxHz, double minDuration)
Parameters
Returns
|
Improve this Doc
View Source
Normalises a binary matrix of -1,+1 or trinary matrix of -1,0,+1 so that the sum of +1 cells = sum of -1 cells.
Change the -1 cells by a ratio.
The purpose is to use the normalised matrix for pattern matching such that the matrix returns a zero value for uniform background noise.
Declaration
public static Tuple<double[, ], int, int> NormaliseBiTrinaryMatrix(double[, ] target)
Parameters
Type |
Name |
Description |
Double[,] |
target |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] ReadImage2BinaryMatrixDouble(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] ReadImage2TrinaryMatrix(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
|
Improve this Doc
View Source
ReadTextFile2CharMatrix(String)
Declaration
public static char[, ] ReadTextFile2CharMatrix(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
|
Improve this Doc
View Source
Declaration
public static void WriteTemplate2Console(double[, ] template)
Parameters
Type |
Name |
Description |
Double[,] |
template |
|
Extension Methods