#ifndef POLYTOQIMAGE_H #define POLYTOQIMAGE_H #include #include #include #include class PolyDumperParam { public: vcg::Color4b backgroundColor; int widthPx; int heightPx; int widthMm; int heightMm; int dpi; bool useDPI; PolyDumperParam() { backgroundColor = vcg::Color4b::Gray; widthPx=1024; heightPx=1024; dpi=72; widthMm = 100; heightMm = 100; useDPI=false; } }; void dumpPolySet(const char * imageName, std::vector< std::vector< std::vector > > &polyVecVec, std::vector &trVec, std::vector &labelVec, PolyDumperParam &pp); void dumpPolySet(const char * imageName, std::vector< std::vector > &polyVec, std::vector &trVec, PolyDumperParam &pp); void dumpPolySet(const char * imageName, std::vector< std::vector > &polyVec, PolyDumperParam &pp); void rectSetToPolySet(std::vector< vcg::Box2f > &rectVec, std::vector< std::vector > &polyVec); #endif // POLYTOQIMAGE_H