with-gui.patch (944B)
1 diff --git i/src/main.cpp w/src/main.cpp 2 index 5ccdfa9..1d04516 100644 3 --- i/src/main.cpp 4 +++ w/src/main.cpp 5 @@ -1,6 +1,6 @@ 6 #include "stdafx.h" 7 #define WITH_GUI 1 8 -#ifdef _WIN32 9 +#if 1 10 #include <QtCore/QCoreApplication> 11 #include "mainwindow.h" 12 #include <QElapsedTimer> 13 @@ -263,7 +263,7 @@ std::string type2str(int type) { 14 15 int main(int argc, char *argv[]) 16 { 17 -#ifdef _WIN32 18 +#if 1 19 QApplication a(argc, argv); 20 #endif 21 using namespace cv; 22 @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) 23 bwImg = Scalar(255) - bwImg; 24 m = bwImg.rows; n = bwImg.cols; //m: height, n: width 25 26 -#ifdef _WIN32 27 +#if 1 28 QElapsedTimer timer; 29 timer.start(); 30 #else 31 @@ -548,7 +548,7 @@ int main(int argc, char *argv[]) 32 #ifdef WITH_GUI 33 mw.setVectorization("Final", newVectorization); 34 #endif 35 -#ifdef _WIN32 36 +#if 1 37 std::cout << "Total time: " << timer.elapsed()/1000 << " s" << std::endl; 38 #endif 39 svg::Image bgImg(filename, n, m, -0.5, 0, 0.6);