Class Image_MultiTrack
Inheritance
Image_MultiTrack
Assembly: AudioAnalysisTools.dll
public class Image_MultiTrack : IDisposable
Constructors
|
Improve this Doc
View Source
Declaration
public Image_MultiTrack(Image<Rgb24> image)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
image |
|
Properties
|
Improve this Doc
View Source
Declaration
public IEnumerable<AcousticEvent> EventList { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public List<PointOfInterest> Points { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public Image<Rgb24> SonogramImage { get; }
Property Value
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public List<Track> SpectralTracks { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int[, ] SuperimposedDiscreteColorMatrix { get; set; }
Property Value
Type |
Description |
Int32[,] |
|
|
Improve this Doc
View Source
Declaration
public double[, ] SuperimposedMatrix { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double[, ] SuperimposedRainbowTransparency { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double[, ] SuperimposedRedTransparency { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public IEnumerable<ImageTrack> Tracks { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public void AddEvents(IEnumerable<AcousticEvent> list, int nyquist, int freqBinCount, double framesPerSecond)
Parameters
|
Improve this Doc
View Source
Declaration
public void AddFreqHitValues(int[] f, int nyquist)
Parameters
|
Improve this Doc
View Source
Declaration
public void AddPoints(IEnumerable<PointOfInterest> points)
Parameters
|
Improve this Doc
View Source
Declaration
public void AddTrack(ImageTrack track)
Parameters
|
Improve this Doc
View Source
Declaration
public void AddTracks(List<Track> tracks, double framesPerSecond, double freqBinWidth)
Parameters
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
DrawFreqHits(IImageProcessingContext)
Declaration
public void DrawFreqHits(IImageProcessingContext g)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Processing.IImageProcessingContext |
g |
|
|
Improve this Doc
View Source
WARNING: graphics.DrawImage() or GDI cannot draw an image that is too big, typically
with an area larger than 10,385,000 pixels (Jiro estimated > 40000 pixels).
This means it cannot handle recording sonograms longer than 2 minutes.
Therefore call a recursive method to draw the image.
Declaration
public Image<Rgb24> GetImage()
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public void OverlayDiscreteColorMatrix(int[, ] m)
Parameters
Type |
Name |
Description |
Int32[,] |
m |
|
|
Improve this Doc
View Source
superimposes a matrix of scores on top of a sonogram.
Only draws lines on every second row so that the underling sonogram can be discerned.
Declaration
public Image<Rgb24> OverlayMatrix(Image<Rgb24> bmp)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
OverlayMatrix(IImageProcessingContext)
superimposes a matrix of scores on top of a sonogram.
Only draws lines on every second row so that the underling sonogram can be discerned.
Declaration
public void OverlayMatrix(IImageProcessingContext g)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Processing.IImageProcessingContext |
g |
|
|
Improve this Doc
View Source
OverlayRainbowTransparency(IImageProcessingContext, Image<Rgb24>)
WARNING: THis method is yet to be debugged and tested following move to SixLabors drawing libraries.
superimposes a matrix of scores on top of a sonogram.
USES A PALLETTE of ten RAINBOW colours.
ASSUME MATRIX is NORMALIZED IN [0,1].
Declaration
public void OverlayRainbowTransparency(IImageProcessingContext g, Image<Rgb24> bmp)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Processing.IImageProcessingContext |
g |
|
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp |
|
|
Improve this Doc
View Source
Declaration
public void OverlayRainbowTransparency(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
|
Improve this Doc
View Source
Declaration
public void OverlayRedMatrix(double[, ] m, double maxScore)
Parameters
|
Improve this Doc
View Source
superimposes a matrix of scores on top of a sonogram.
Declaration
public Image<Rgb24> OverlayRedTransparency(Image<Rgb24> bmp)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public void OverlayRedTransparency(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
|
Improve this Doc
View Source
It is assumed that the spectrogram image is grey scale.
NOTE: The score matrix must consist of reals in [0.0, 1.0].
NOTE: The image and the score matrix must have the same number of rows and columns.
In case of a spectrogram, it is assumed that the rows are frequency bins and the columns are individual spectra.
Declaration
public static Image<Rgb24> OverlayScoresAsRedTransparency(Image<Rgb24> bmp, double[, ] hits)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp |
the spectrogram image.
|
Double[,] |
hits |
the matrix of scores or hits.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Overlays a matrix of scores on an image, typically a spectrogram image.
It is assumed that the spectrogram image is grey scale.
NOTE: The score matrix must consist of integers from 0 to 255.
NOTE: The image and the score matrix must have the same number of rows and columns.
In case of a spectrogram, it is assumed that the rows are frequency bins and the columns are individual spectra.
Declaration
public static Image<Rgb24> OverlayScoresAsRedTransparency(Image<Rgb24> bmp, int[, ] hits)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp |
the spectrogram image.
|
Int32[,] |
hits |
the matrix of scores or hits.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
The new image with overlay of scores as red transparency.
|
|
Improve this Doc
View Source
WARNING: This method calls Image_MultiTrack.GetImage().
In some circumstances GetImage() cannot manage images with an area larger than 10,385,000 pixels.
This means it cannot handle recording sonograms longer than 2 minutes.
Declaration
public void Save(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Implements
Extension Methods