-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
60 lines (51 loc) · 2.71 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using ImageProcessingModel;
using System;
using System.Windows.Forms;
using MathFunction;
using LinearAlgebra;
namespace ImageProcessing_v1 {
class Program {
/*static void Main(string[] args) {
var transformWalsh = new FourierWalshTransformation();
var transformHaart = new FourierHaartTransformation();
var transformFreq = new FastFourierTransformationByFrequency();
var arrayInput = new double[] { 36, -16, 0, -8, 0, 0, 0, -4};
//var arrayInput = new double[] { 1, 1, 1, 1};
//var arrayInput = new double[] { 1, 1};
//var arrayInput = new double[] { 1};
var vectorWalsh = new DoubleVector(transformWalsh.doAnalysis(arrayInput));
var vectorHaart = new DoubleVector(transformHaart.doAnalysis(arrayInput));
var vectorFreq = new DoubleVector(transformFreq.doAnalysis(arrayInput));
Console.WriteLine("\n#############################");
Console.WriteLine("####### INPUT ########");
Console.WriteLine("#############################\n");
Console.WriteLine(((DoubleVector) new DoubleVector(arrayInput)).ToString());
Console.WriteLine("\n#############################");
Console.WriteLine("####### COEFFS #######");
Console.WriteLine("#############################\n");
Console.WriteLine("Walsh coeefs:" + vectorWalsh.ToString());
Console.WriteLine("Haart coeefs:" + vectorHaart.ToString());
Console.WriteLine("Freq coeefs:" + vectorFreq.ToString());
Console.WriteLine("\n#############################");
Console.WriteLine("####### RESULTS ########");
Console.WriteLine("#############################\n");
/*vectorWalsh = new DoubleVector(transformWalsh.doSynthesis(vectorWalsh.ToArray()));
vectorHaart = new DoubleVector(transformHaart.doSynthesis(vectorHaart.ToArray()));
vectorFreq = new DoubleVector(transformFreq.doSynthesis(vectorFreq.ToArray()));
Console.WriteLine("Walsh values:" + vectorWalsh.ToString());
Console.WriteLine("Haart values:" + vectorHaart.ToString());
Console.WriteLine("Freq values:" + vectorFreq.ToString());
Console.ReadKey();
}*/
[STAThread]
static void Main(string[] args) {
Console.WriteLine("[STAThread] started");
IPresenter presenter = new Presenter();
var view = new ImageProcessingForm.View();
presenter.initView(view);
Application.EnableVisualStyles();
Application.Run(view);
Console.WriteLine("View was Run");
}
}
}