34 #include <Base/Image/ImageIO.hh>
35 #include <Base/Image/ImageConvert.hh>
36 #include <Image/CalibratedPyramid.hh>
37 #include <Image/Camera.hh>
42 int main(
int argc,
char *argv[])
45 cerr << argv[0] <<
" <image>"<<endl;
54 cerr <<
"error loading image \""<<argv[1]<<
"\"\n";
75 cp.
Init(ci, size, rescale);
77 cout<<
"Size:"<<cp.
Size()<<endl;
This class takes care of consisiten re-sampling of images and associated ProjectionParameters.
unsigned Size() const
returns the number of images stored in the pyramid
virtual ProjectionParametersBase * Clone() const =0
Covariant virtual copy constructor used in BIAS::Projection.
pointer with reference count and automatic deletion
const ProjectionParametersBase * GetParameters(unsigned int cam=0) const
const parameter access function
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
unsigned RefCount(const SharedPtr< T > &t)
SharedPtr< Image< StorageType > > image
helper class holding image and associated calibration
SharedPtr< ProjectionParametersBase > projection
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 Init(const CalibratedImage< StorageType > &image, const unsigned pyramid_size=2, const double rescale_factor=4.0)
initialization with original image, total number of images in the pyramid and a rescale factor...
const BIAS::Projection & GetProj() const
int ParseMetaData(bool bUse2x64bitTS=true)
After ImageIO::Load() operated on AppData_, this method fills P_, Timestamp, DC_*, ...
static int ToGrey(const ImageBase &source, ImageBase &dest)
wrapper for the templated function ToGrey