コード例 #1
0
        /// <summary>
        /// This method draws a spectrogram with other useful information attached.
        /// </summary>
        /// <param name="sonogram">of BaseSonogram class.</param>
        /// <param name="events">a list of acoustic events.</param>
        /// <param name="plots">a list of plots relevant to the spectrogram scores.</param>
        /// <param name="hits">not often used - can be null.</param>
        public static Image <Rgb24> GetSonogramPlusCharts(
            BaseSonogram sonogram,
            List <AcousticEvent> events,
            List <Plot> plots,
            double[,] hits)
        {
            // convert AcousticEvents to EventsCommon
            List <EventCommon> newEvents = EventConverters.ConvertAcousticEventsToSpectralEvents(events);
            var compositeImage           = GetSonogramPlusCharts(sonogram, newEvents, plots, hits);

            return(compositeImage);
        }