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 void HuginBase::Nona::stitchPanoRGB_32_float(const PanoramaData & pano,
00035                                   const PanoramaOptions & opts,
00036                                   AppBase::ProgressDisplay* progress,
00037                                   const std::string & basename,
00038                                   const UIntSet & usedImgs,
00039                                   const char * pixelType,
00040                                   const AdvancedOptions& advOptions)
00041 {
00042     if (strcmp(pixelType, "INT32") == 0 ) {
00043         stitchPanoIntern<vigra::IRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00044     } else if (strcmp(pixelType, "UINT32") == 0 ) {
00045         stitchPanoIntern<vigra::UInt32RGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00046     } else if (strcmp(pixelType, "FLOAT") == 0 ) {
00047         stitchPanoIntern<vigra::FRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00048     } else if (strcmp(pixelType, "DOUBLE") == 0 ) {
00049         stitchPanoIntern<vigra::DRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00050     } else {
00051         UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
00052         return;
00053     }
00054 }
00055 
00056 

Generated on 24 Aug 2016 for Hugintrunk by  doxygen 1.4.7