#include <iostream>
#include <Base/Image/ImageBase.hh>
#include <Base/Image/ImageConvert.hh>
#include <Base/Image/ImageIO.hh>
#include <Image/PMDImageProc.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[]) {
string PMDName = "img.tif";
string PMDNameXML = "";
cout<<"ExamplePMDImageIO:"<<endl;
if (argc>1) {
if (strstr(argv[1],".xml")!=NULL) {
PMDNameXML = argv[1];
} else if (strstr(argv[1],".tif")!=NULL) {
PMDName = argv[1];
} else if (strstr(argv[1],".bmp")!=NULL) {
im, dim, mcim, metad);
cerr << argv[1] << " <image>\n";
} else {
cout << "Read 2D-image:" << argv[1] << endl;
}
metadum = metad;
meta, metadum);
cout << "Wrote img.tif" << endl;
cout << "Metadata set: " << endl
} else {
cerr << argv[1] << " <image>\n";
} else {
cout << "Read 2D-image:" << argv[1] << endl;
}
cerr << argv[2] << " <image>\n";
} else {
cout << "Read depth-image:" << argv[2] << endl;
}
cerr << argv[3] << " <image>\n";
} else {
cout << "Read modulation-coefficients-image:" << argv[3] << endl;
}
cout << "Wrote img.tif" << endl;
cout << "Metadata set: " << endl
for (int i=0; i<4; i++) {
}
cout << endl;
}
}
if (PMDNameXML!="") {
#ifdef BIAS_HAVE_XML2
#else
BIASERR("USE_XML2 switched off, cannot parse xml-file!");
BIASABORT;
#endif
} else {
}
cout << "Read " << PMDNameXML << " or " << PMDName << endl;
cout << "Metadata read: " << endl
cout << "|";
for (int i=0; i<4; i++) {
}
cout << "|";
for (int i=0; i<3; i++) {
}
cout << "|";
for (int i=0; i<3; i++) {
}
cout << endl << "Metadata depth read: " << endl
cout << "|";
for (int i=0; i<4; i++) {
}
cout << "|";
for (int i=0; i<3; i++) {
}
cout << "|";
for (int i=0; i<3; i++) {
}
cout << endl;
}