-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.c
executable file
·51 lines (36 loc) · 1010 Bytes
/
test.c
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
#include <iostream>
#include <algorithm>
#include <fstream>
#include <vector>
#include "Base/color.h"
#include "Base/pixel.h"
#include "Base/image.h"
#include "composite_image.h"
#include "noise_image.h"
#include "binary_image.h"
#include "cc_image.h"
using namespace std;
int main(int argc, char** argv) {
// std::string img_file(argv[1]);
// Image i;
// std::ifstream f_ptr(img_file);
// f_ptr >> i;
// noise_image n(i.get_w(), i.get_h());
// composite_image c(i, n, 0.5);
// cc_image b(i);
// std::ofstream o_ptr("cc_output.ppm");
// o_ptr << b;
// float a = atof(argv[2]);
// int treshold = atoi(argv[3]);
// Image i;
// std::ifstream f_ptr(img_file);
// f_ptr >> i;
// noise_image n(i.get_w(), i.get_h());
// composite_image c(i, n, a);
// std::ofstream o_ptr("output.ppm");
// o_ptr << c;
// std::ofstream o_ptr_b("bin_output.ppm");
// binary_image b(c, treshold);
// o_ptr_b << b;
return 0;
}