33 #include <bias_config.h>
35 #include <Image/CameraParam.hh>
36 #include <Image/UnVignette.hh>
37 #include <Base/Image/ImageIO.hh>
39 #include <Base/Debug/TimeMeasure.hh>
47 int main(
int argc,
char** argv )
50 cout <<
"Usage: ExampleUnVignette <image> <CameraParam.xml>"<<endl;
61 cout<<
"Reading of CameraParams failed!"<<endl;
73 cout<<
"Output image written to ExampleUnVignetted.mip."<<endl;
Unvignette algorithm for images.
class BIASImageBase_EXPORT Image
static int Save(const std::string &filename, const ImageBase &img, const enum TFileFormat FileFormat=FF_auto, const bool sync=BIAS_DEFAULT_SYNC, const int c_jpeg_quality=BIAS_DEFAULT_IMAGE_QUALITY, const bool forceNewID=BIAS_DEFAULT_FORCENEWID, const bool &writeMetaData=true)
Export image as file using extrnal libs.
int ReadCameraData(const std::string &Filename)
Add a camera sub-tree-structure to an allready created XML-tree and write the data from (*this) into ...
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...
void PrintUserTime(std::ostream &os=std::cout, const bool &verbose=true) const
print the user time (=system usage time)
class TimeMeasure contains functions for timing real time and cpu time.