// Beispielhafter Aufruf: BUILD_x86_64/progs/testSemanticSegmentation -config /** * @file test.cpp * @brief simple test program for everything * @author Björn Fröhlich * @date 03/10/2010 */ #ifdef NICE_USELIB_OPENMP #include #endif #include #include #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; }