Stitcher3.cpp

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00026 #include "Stitcher.h"
00027 
00028 void HuginBase::Nona::stitchPanoRGB_8_16(const PanoramaData & pano,
00029                             const PanoramaOptions & opts,
00030                             AppBase::ProgressDisplay* progress,
00031                             const std::string & basename,
00032                             const UIntSet & usedImgs,
00033                             const char * pixelType,
00034                             const AdvancedOptions& advOptions)
00035 {
00036     if (strcmp(pixelType, "UINT8") == 0 ) {
00037         stitchPanoIntern<vigra::BRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00038     } else if (strcmp(pixelType, "INT16") == 0 ) {
00039         stitchPanoIntern<vigra::SRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00040     } else if (strcmp(pixelType, "UINT16") == 0 ) {
00041         stitchPanoIntern<vigra::UInt16RGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
00042     } else {
00043         UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
00044         return;
00045     }
00046 }
00047 
00048 

Generated on 25 Jul 2016 for Hugintrunk by  doxygen 1.4.7