Class RidgeDetection
Inheritance
RidgeDetection
Assembly: AudioAnalysisTools.dll
public class RidgeDetection
Methods
|
Improve this Doc
View Source
Declaration
public static byte[, ] IdentifyHorizontalRidges(double[, ] matrix, double threshold)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] IdentifySpectralPeaks(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Declaration
public static byte[, ] IdentifySpectralRidges(double[, ] matrix, double threshold)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static byte[, ] IdentifySpectralRidgesInFreqDirection(double[, ] matrix, double threshold)
Parameters
Returns
|
Improve this Doc
View Source
JOINS DISCONNECTED RIDGES.
Declaration
public static byte[, ] JoinDisconnectedRidgesInMatrix(byte[, ] hits, double[, ] matrix, double threshold)
Parameters
Returns
|
Improve this Doc
View Source
returns four matrices containing the values of ridges in four directions.
Declaration
public static List<double[, ]> Sobel5X5RidgeDetection_Version2(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Returns a byte matrix of ridge directions
0 = no ridge detected or below magnitude threshold.
1 = ridge direction = horizontal or slope = 0;
2 = ridge is positive slope or pi/4
3 = ridge is vertical or pi/2
4 = ridge is negative slope or 3pi/4.
Declaration
public static byte[, ] Sobel5X5RidgeDetectionExperiment(double[, ] matrix, double magnitudeThreshold)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Double |
magnitudeThreshold |
|
Returns
|
Improve this Doc
View Source
Declaration
public static byte[, ] Sobel5X5RidgeDetectionVersion1(double[, ] matrix, double magnitudeThreshold)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Double |
magnitudeThreshold |
|
Returns
|
Improve this Doc
View Source
CONVERTs a binary matrix of spectral peak tracks to an output matrix containing the acoustic intensity
in the neighbourhood of those peak tracks.
Declaration
public static double[, ] SpectralRidges2Intensity(byte[, ] binary, double[, ] sonogram)
Parameters
Type |
Name |
Description |
Byte[,] |
binary |
The spectral peak tracks.
|
Double[,] |
sonogram |
|
Returns
|
Improve this Doc
View Source
matrix is assumed to be a spectrogram image spectrogram, whose rows are freq bins and columns are time frames.
Declaration
public static byte[, ] StructureTensorRidgeDetection(double[, ] matrix, double magnitudeThreshold, double dominanceThreshold)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Double |
magnitudeThreshold |
|
Double |
dominanceThreshold |
|
Returns
Extension Methods