Stitcher2.cpp

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

Generated on 29 Jul 2015 for Hugintrunk by  doxygen 1.4.7