Example for creating a calibrated pyramid object with automatic adaption of BIAS::Projection to pyramid layers
- Author
- MIP
#include <Base/Image/ImageIO.hh>
#include <Base/Image/ImageConvert.hh>
#include <Image/CalibratedPyramid.hh>
#include <Image/Camera.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
if (argc<2){
cerr << argv[0] << " <image>"<<endl;
return -1;
}
cerr << "error loading image \""<<argv[1]<<"\"\n";
return -2;
}
return -3;
}
cam = tmp;
}
double rescale = 4.0;
unsigned size = 2;
cp.
Init(ci, size, rescale);
cout<<
"Size:"<<cp.
Size()<<endl;
return 0;
}