Class OneframeTrackAlgorithm
Inherited Members
Namespace: AudioAnalysisTools.Tracks
Assembly: AudioAnalysisTools.dll
Syntax
public static class OneframeTrackAlgorithm
Methods
| Improve this Doc View SourceGetOneFrameTrack(Double[,], Int32, Int32, Int32, Double, UnitConverters)
Declaration
public static Track GetOneFrameTrack(double[, ] peaks, int startRow, int startBin, int maxBin, double threshold, UnitConverters converter)
Parameters
Type | Name | Description |
---|---|---|
Double[,] | peaks | |
Int32 | startRow | |
Int32 | startBin | |
Int32 | maxBin | |
Double | threshold | |
Unit |
converter |
Returns
Type | Description |
---|---|
Track |
GetOneFrameTracks(SpectrogramStandard, OneframeTrackParameters, Nullable<Double>, TimeSpan, String)
Declaration
public static (List<EventCommon> Events, List<Plot> DecibelPlots) GetOneFrameTracks(SpectrogramStandard spectrogram, OneframeTrackParameters parameters, double? decibelThreshold, TimeSpan segmentStartOffset, string profileName)
Parameters
Type | Name | Description |
---|---|---|
Spectrogram |
spectrogram | |
Oneframe |
parameters | |
Nullable<Double> | decibelThreshold | |
Time |
segmentStartOffset | |
String | profileName |
Returns
Type | Description |
---|---|
(T1, T2)<List<Event |
GetOneFrameTracks(SpectrogramStandard, OneframeTrackParameters, TimeSpan, Double)
A one-frame track sounds like a click. A click is a sharp onset broadband sound of brief duration. Geometrically it is similar to a vertical whistle. THis method averages dB log values incorrectly but it is faster than doing many log conversions. This method is used to find acoustic events and is accurate enough for the purpose.
Declaration
public static (List<EventCommon> Events, double[] Intensity) GetOneFrameTracks(SpectrogramStandard sonogram, OneframeTrackParameters parameters, TimeSpan segmentStartOffset, double decibelThreshold)
Parameters
Type | Name | Description |
---|---|---|
Spectrogram |
sonogram | |
Oneframe |
parameters | |
Time |
segmentStartOffset | |
Double | decibelThreshold |
Returns
Type | Description |
---|---|
(T1, T2)<List<Event |
GetOneFrameTracks(Double[,], Int32, Int32, Double, Double, Double, UnitConverters)
Extracts click type tracks. A click occupies one frame. In a spectrogram it is equivalent to a vertical ridge. A click is a sudden onset event but may have a training echo.
Declaration
public static List<Track> GetOneFrameTracks(double[, ] peaks, int minBin, int maxBin, double minBandwidthHertz, double maxBandwidthHertz, double threshold, UnitConverters converter)
Parameters
Type | Name | Description |
---|---|---|
Double[,] | peaks | A matrix that identifies the location of sudden onset peaks. |
Int32 | minBin | Bottom of the frequency band to search. |
Int32 | maxBin | Top of the frequency band to search. |
Double | minBandwidthHertz | Minimum band width spanned by the click event. |
Double | maxBandwidthHertz | Maximum band width spanned by the click event. |
Double | threshold | The amplitude threshold to qualify as a sudden onset ridge. |
Unit |
converter | To do the time/freq scale conversions. |