Search Results for

    Show / Hide Table of Contents

    Class Image_MultiTrack

    Inheritance
    Object
    Image_MultiTrack
    Implements
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: AudioAnalysisTools.StandardSpectrograms
    Assembly: AudioAnalysisTools.dll
    Syntax
    public class Image_MultiTrack : IDisposable

    Constructors

    | Improve this Doc View Source

    Image_MultiTrack(Image<Rgb24>)

    Initializes a new instance of the Image_MultiTrack class. CONSTRUCTOR.

    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

    EventList

    Declaration
    public IEnumerable<AcousticEvent> EventList { get; set; }
    Property Value
    Type Description
    IEnumerable<AcousticEvent>
    | Improve this Doc View Source

    Points

    Declaration
    public List<PointOfInterest> Points { get; set; }
    Property Value
    Type Description
    List<PointOfInterest>
    | Improve this Doc View Source

    SonogramImage

    Declaration
    public Image<Rgb24> SonogramImage { get; }
    Property Value
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    SpectralTracks

    Declaration
    public List<Track> SpectralTracks { get; set; }
    Property Value
    Type Description
    List<Track>
    | Improve this Doc View Source

    SuperimposedDiscreteColorMatrix

    Declaration
    public int[, ] SuperimposedDiscreteColorMatrix { get; set; }
    Property Value
    Type Description
    Int32[,]
    | Improve this Doc View Source

    SuperimposedMatrix

    Declaration
    public double[, ] SuperimposedMatrix { get; set; }
    Property Value
    Type Description
    Double[,]
    | Improve this Doc View Source

    SuperimposedRainbowTransparency

    Declaration
    public double[, ] SuperimposedRainbowTransparency { get; set; }
    Property Value
    Type Description
    Double[,]
    | Improve this Doc View Source

    SuperimposedRedTransparency

    Declaration
    public double[, ] SuperimposedRedTransparency { get; set; }
    Property Value
    Type Description
    Double[,]
    | Improve this Doc View Source

    Tracks

    Declaration
    public IEnumerable<ImageTrack> Tracks { get; }
    Property Value
    Type Description
    IEnumerable<ImageTrack>

    Methods

    | Improve this Doc View Source

    AddEvents(IEnumerable<AcousticEvent>, Int32, Int32, Double)

    Declaration
    public void AddEvents(IEnumerable<AcousticEvent> list, int nyquist, int freqBinCount, double framesPerSecond)
    Parameters
    Type Name Description
    IEnumerable<AcousticEvent> list
    Int32 nyquist
    Int32 freqBinCount
    Double framesPerSecond
    | Improve this Doc View Source

    AddFreqHitValues(Int32[], Int32)

    Declaration
    public void AddFreqHitValues(int[] f, int nyquist)
    Parameters
    Type Name Description
    Int32[] f
    Int32 nyquist
    | Improve this Doc View Source

    AddPoints(IEnumerable<PointOfInterest>)

    Declaration
    public void AddPoints(IEnumerable<PointOfInterest> points)
    Parameters
    Type Name Description
    IEnumerable<PointOfInterest> points
    | Improve this Doc View Source

    AddTrack(ImageTrack)

    Declaration
    public void AddTrack(ImageTrack track)
    Parameters
    Type Name Description
    ImageTrack track
    | Improve this Doc View Source

    AddTracks(List<Track>, Double, Double)

    Declaration
    public void AddTracks(List<Track> tracks, double framesPerSecond, double freqBinWidth)
    Parameters
    Type Name Description
    List<Track> tracks
    Double framesPerSecond
    Double freqBinWidth
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | 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

    GetImage()

    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

    OverlayDiscreteColorMatrix(Int32[,])

    Declaration
    public void OverlayDiscreteColorMatrix(int[, ] m)
    Parameters
    Type Name Description
    Int32[,] m
    | Improve this Doc View Source

    OverlayMatrix(Image<Rgb24>)

    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

    OverlayRainbowTransparency(Double[,])

    Declaration
    public void OverlayRainbowTransparency(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    | Improve this Doc View Source

    OverlayRedMatrix(Double[,], Double)

    Declaration
    public void OverlayRedMatrix(double[, ] m, double maxScore)
    Parameters
    Type Name Description
    Double[,] m
    Double maxScore
    | Improve this Doc View Source

    OverlayRedTransparency(Image<Rgb24>)

    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

    OverlayRedTransparency(Double[,])

    Declaration
    public void OverlayRedTransparency(double[, ] m)
    Parameters
    Type Name Description
    Double[,] m
    | Improve this Doc View Source

    OverlayScoresAsRedTransparency(Image<Rgb24>, Double[,])

    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

    OverlayScoresAsRedTransparency(Image<Rgb24>, Int32[,])

    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

    Save(String)

    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

    System.IDisposable

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top