#include <iostream>
#include <string>
#include <Base/Image/Image.hh>
#include <Base/Image/ImageIO.hh>
#include <Base/ImageUtils/ImageDraw.hh>
#include <Base/Image/ColourRGB.hh>
using namespace std;
using namespace BIAS;
int main( int argc, char** argv ){
int result=0;
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;
};
cout<<
"loaded image "<<filename<<
" with dim: "<<img.
GetWidth()<<
"x"<<img.
GetHeight()<<endl;
{
5, CV_AA, 0 );
25,
CV_AA
);
,200,300
,150, 50
,45
,0, 270
,COLOR_WHITE
,20
);
100,100,
150,200,
COLOR_BLACK,
8
);
CV_FONT_HERSHEY_SIMPLEX, 1.5, 1.5, 0, 2, CV_AA);
CV_FONT_HERSHEY_PLAIN, 0.8, 1.2, 0, 1, CV_AA);
}
string outFn("out_ExampleIplImageDraw.jpg");
if (result==0) cout<<"wrote "<<outFn<<endl;
cout<<endl
<<"<DartMeasurementFile name=\"outputImage1\" type=\"image/jpeg\">"<<outFn<<"</DartMeasurementFile>"
<<endl;
return result;
}