-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (27 loc) · 703 Bytes
/
main.cpp
File metadata and controls
33 lines (27 loc) · 703 Bytes
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
#include <iostream>
#include "Facade.h"
//#include "lib/CImg.h"
//using namespace cimg_library;
//typedef double pixel_type;
int main(int argc, char** argv) {
Facade f;
f.run(argc, argv);
// CImg<double> img("ref_image.jpg");
//
// pixel_type* luminance = NULL; //pointer to pixel size col*rows*depth, depth = 1
//
// int imgType = 0;
// int cols = img._width ;
// int rows = img._height;
//
// luminance = img.RGBtoYUV().data(0,0,0,0);
//
// for (int j = 100; j < 110; ++j) {
// for (int i = 100; i < 110; ++i) {
// std::cout << (int) (luminance[j*cols + i] * 254) << " ";
// }
// std::cout << std::endl;
// }
//
return 0;
}