38 #include <Base/Image/Image.hh>
39 #include <Base/Image/ImageIO.hh>
44 int main(
int argc,
char** argv )
49 bool darttestNoGui=
false;
50 bool darttestGui=
false;
52 string filename( BIAS_TESTS_DATA
"r4.jpg" );
54 if ((strcmp(argv[1],
"-darttest")==0)
55 || (strcmp(argv[1],
"-darttestnogui")==0) )
58 std::cout<<
"started dart test (no gui): "<<argv[0]<<std::endl;
59 }
else if (strcmp(argv[1],
"-darttestgui")==0) {
62 std::cout<<
"started dart test (with gui): "<<argv[0]<<std::endl;
66 if (!darttestNoGui && !darttestGui && (argc>1)) filename=argv[1];
70 cout<<
"error loading image "<<filename<<endl;
80 img.
Display(
"Display",
true,
true,
true, delay );
int Display(const std::string &DestWin, const bool &autoresize, const bool &moveToTopLeft, const bool &waitForKey, const unsigned int &delayMsec=DEFAULT_Display_delay, const float &scale=DEFAULT_32to8_scale, const bool &allowAlphaWindow=false) const
OpenCV onscreen popup display, very useful for fast debugging. (JW)
unsigned int GetWidth() const
unsigned int GetHeight() const
static int Load(const std::string &FileName, ImageBase &img)
first tries a call to Read MIP image and if that fails, tries to Import Image with all other availabl...