123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // Beispielhafter Aufruf: BUILD_x86_64/progs/testSemanticSegmentation -config <CONFIGFILE>
- /**
- * @file test.cpp
- * @brief simple test program for everything
- * @author Björn Fröhlich
- * @date 03/10/2010
- */
- #ifdef NICE_USELIB_OPENMP
- #include <omp.h>
- #endif
- #include <iostream>
- #include <fstream>
- #include "objrec/segmentation/RSMeanShift.h"
- #include "objrec/segmentation/RSCache.h"
- #include "objrec/baselib/Globals.h"
- using namespace std;
- using namespace OBJREC;
- int main(int argc, char **argv)
- {
-
- Image tmp(101,195);
- tmp.set(0);
- string infile = "/home/froehlich/Desktop/wichtiges/coind/out.txt";
- ifstream in(infile.c_str());
-
- while(!in.eof())
- {
- int x,y,v;
- in >> x;
- in >> y;
- in >> v;
- if(v == 0)
- v = 1;
- tmp.setPixel(x,y,v);
- }
- tmp.write("/home/froehlich/Desktop/wichtiges/coind/out.pgm");
-
-
- return 0;
- }
|