Stitcher4.cpp

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00026 #include "Stitcher.h"
00027 // somehow these are still set after panorama.h has been included
00028 #undef DIFFERENCE
00029 #undef min
00030 #undef max
00031 #undef MIN
00032 #undef MAX
00033 
00034 
00035 using namespace std;
00036 using namespace vigra;
00037 
00038 void HuginBase::Nona::stitchPanoRGB_32_float(const PanoramaData & pano,
00039                                   const PanoramaOptions & opts,
00040                                   AppBase::ProgressDisplay* progress,
00041                                   const std::string & basename,
00042                                   const UIntSet & usedImgs,
00043                                   const char * pixelType,
00044                                   const AdvancedOptions& advOptions)
00045 {
00046     if (strcmp(pixelType, "INT32") == 0 ) {
00047         stitchPanoIntern<IRGBImage, BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00048     } else if (strcmp(pixelType, "UINT32") == 0 ) {
00049         stitchPanoIntern<UInt32RGBImage, BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00050     } else if (strcmp(pixelType, "FLOAT") == 0 ) {
00051         stitchPanoIntern<FRGBImage, BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00052     } else if (strcmp(pixelType, "DOUBLE") == 0 ) {
00053         stitchPanoIntern<DRGBImage, BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00054     } else {
00055         UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
00056         return;
00057     }
00058 }
00059 
00060 

Generated on 31 Aug 2015 for Hugintrunk by  doxygen 1.4.7