Load an arbitrary format from disk trying all availbale libraries.
- Author
- woetzel
#include <Base/Image/ImageBase.hh>
#include <Base/Image/ImageIO.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
if (argc!=2){
cout<<"no image given\nusage: "<<argv[0]<<" <image-file>"<<endl;
return -1;
}
if (result!=0){
BIASERR("error loading \n"<<argv[1]<<" with result="<<result);
return result;
}
cout<<"successfully loaded \n"<<argv[1]<<" "<<endl
<<endl;
cout<<
"UID "<<im.
GetUID()<<
" ";
cout<<"invalid! ";
else
cout<<"valid ";
cout<<"(IsNil) ";
cout<<endl;
cout<<"done."<<endl;
return 0;
}