34 #include <bias_config.h>
36 #include <Base/Debug/Error.hh>
37 #include <Base/Image/ImageBase.hh>
38 #include <Base/Image/ImageIO.hh>
39 #include <Base/Common/FileHandling.hh>
49 string fn = BIAS_TESTS_DATA
"r4_small.bmp";
55 int parseCmdLine(
int argc,
char** argv){
59 if (strcmp(argv[1],
"-darttest")==0){
73 int main(
int argc,
char** argv)
76 cout<<
"started "<<argv[0]<<endl;
78 parseCmdLine(argc, argv);
82 cout<<
"file "<<fn<<
" does not exists/is unreadable due to file system problems!";
88 int res = ImageIO::Import_BITMAP_winapi(fn, img );
91 cout<<
"successfully loaded "
94 cout<<
"could not load image from "<<fn<<endl
95 <<
"is it a simple BMP file?"<<endl;
98 #ifdef BIAS_HAVE_OPENCV
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
static bool FileReadable(const std::string &filename)
Checks if the given file exists and is readable on file system.
unsigned int GetHeight() const
This is the base class for images in BIAS.