#include <iostream>
#include <string>
#include <Base/Image/Image.hh>
#include <Base/Image/ImageIO.hh>
#include <Base/Image/WrapBias2Ipl.hh>
#include <bias_config.h>
#ifndef BIAS_HAVE_OPENCV
# error You need to enable OPENCV to compile this file. Please reconfigure BIAS with USE_OPENCV
#endif
#include "cv.h"
using namespace std;
using namespace BIAS;
int main( int argc, char** argv ){
bool darttest=false;
if (argc>=2) if (strcmp(argv[1],"-darttest")==0) {
darttest=true;
std::cout<<"started dart test: "<<argv[0]<<std::endl;
}
string filename( BIAS_TESTS_DATA "r4.jpg" );
if (!darttest && (argc>1)) filename=argv[1];
cout<<"error loading image "<<filename<<endl;
return -1;
};
{
cvPoint(-20,0),
cvPoint(200,200),
cvScalar(255, 0, 0),
1, 8, 0 );
cvPoint(50,100),
cvSize(20,40),
20,
0, 270,
cvScalar(0,255,0) );
string msg("Hello BIAS world! 1234567890");
int linetype=CV_AA;
CvFont font1, font2, font3;
cvInitFont( &font1, CV_FONT_HERSHEY_SIMPLEX,
1.0, 1.0,
0, 1, linetype);
cvInitFont( &font2, CV_FONT_HERSHEY_PLAIN,
1.0, 1.0,
0, 1, 0);
cvInitFont( &font3,
CV_FONT_HERSHEY_COMPLEX,
1.0,
1.0,
0,
2,
linetype
);
cvPoint(100,50), &font1, cvScalar(255,0,0) );
cvPoint(100,100), &font2, cvScalar(0,255,0) );
cvPoint(100,150), &font3, cvScalar(0,0,255) );
}
if (!darttest) wrap.
Display(
true, 2000);
return 0;
}