コード例 #1
0
 public MainWindow()
 {
     InitializeComponent();
     byte[] InicialSequence = GenerateNumbers.Generate(size);
     DrawSequence.Draw(InitialPanel, InicialSequence);
     byte[] FilteredSequence = MedianFilterSequence.Filter(InicialSequence, 30);
     DrawSequence.Draw(FilteredPanel, FilteredSequence);
 }
コード例 #2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     InitialPanel.Children.Clear();
     FilteredPanel.Children.Clear();
     byte[] InicialSequence = GenerateNumbers.Generate(size);
     DrawSequence.Draw(InitialPanel, InicialSequence);
     byte[] FilteredSequence = MedianFilterSequence.Filter(InicialSequence, Convert.ToInt32(WindowSizeBox.Text));
     DrawSequence.Draw(FilteredPanel, FilteredSequence);
 }