25 #include <Image/Camera.hh>
27 #include <Base/Image/ImageIO.hh>
28 #include <Base/Image/ImageConvert.hh>
41 int main(
int argc,
char *argv[])
44 cout<<
"Usage: biassetrefuuid <image> [<ref-image>]"<<endl;
49 if (argc>2) SetID=
true;
56 newrefid = LoadRefImg.
GetUID();
63 oldrefid = cam.GetReferenceUUID();
65 cam.SetReferenceUUID(newrefid);
74 cam.SetDebugLevel(D_CAMERA_METADATA);
76 oldrefid = cam.GetReferenceUUID();
78 cam.SetReferenceUUID(newrefid);
79 cout <<
"Check: "<<cam.GetReferenceUUID()<<endl;
87 cout <<
"Old RefUUID: "<<oldrefid<<endl;
88 cout <<
"New RefUUID: "<<newrefid<<endl;
91 cout <<
"Current RefUUID: "<<oldrefid<<endl;
const BIAS::UUID & GetUID() const
returns the UUID of the 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.
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...
enum EStorageType GetStorageType() const
(8bit) unsigned char image storage type
interface class for producing/storing Universally Unique IDentifiers
This is the base class for images in BIAS.