Ejemplo n.º 1
0
        public async Task LoadChartDataAsync()
        {
            var fourier = new FourierService(_pixelSource);

            var adding = Task.Factory.StartNew(() =>
            {
                foreach (var(idx, values) in fourier.Magnitudes)
                {
                    _chartService.AddLineValues(idx, values);
                    _imageService.AddLineValues(idx, values);
                }
            });

            await fourier.StartAnalysingAsync();
        }