PanoImage.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #ifndef _Hgn1_PANOIMAGE_H
00028 #define _Hgn1_PANOIMAGE_H
00029 
00030 #include <panodata/SrcPanoImage.h>
00031 
00032 namespace PT {
00033 
00034     using HuginBase::SrcPanoImage;
00035     
00036     inline bool initImageFromFile(SrcPanoImage & img, double & focalLength, double & cropFactor, bool applyExposureValue)
00037     {
00038         return img.readEXIF(focalLength, cropFactor, true, applyExposureValue);
00039     }
00040 
00041     inline double calcHFOV(SrcPanoImage::Projection proj, double fl, double crop, vigra::Size2D imageSize)
00042     {
00043         return HuginBase::SrcPanoImage::calcHFOV(proj,fl,crop,imageSize);
00044     }
00045 
00046     inline double calcFocalLength(SrcPanoImage::Projection proj, double hfov, double crop, vigra::Size2D imageSize)
00047     {
00048         return HuginBase::SrcPanoImage::calcFocalLength(proj,hfov,crop,imageSize);
00049     }
00050     
00051     inline double calcCropFactor(SrcPanoImage::Projection proj, double hfov, double focalLength, vigra::Size2D imageSize)
00052     {
00053         return HuginBase::SrcPanoImage::calcCropFactor(proj,hfov,focalLength,imageSize);
00054     }
00055     
00056 } // namespace
00057 
00058 #endif // PANOIMAGE_H

Generated on Tue Sep 2 01:25:40 2014 for Hugintrunk by  doxygen 1.3.9.1