Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stitcher1.cpp
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
26 #include "Stitcher.h"
27 
28 void HuginBase::Nona::stitchPanoGray_32_float(const PanoramaData & pano,
29  const PanoramaOptions & opts,
30  AppBase::ProgressDisplay* progress,
31  const std::string & basename,
32  const UIntSet & usedImgs,
33  const char * pixelType,
34  const AdvancedOptions& advOptions)
35 {
36  if (strcmp(pixelType, "UINT32") == 0 ) {
37  stitchPanoIntern<vigra::UInt32Image, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
38  } else if (strcmp(pixelType, "INT32") == 0 ) {
39  stitchPanoIntern<vigra::IImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
40  } else if (strcmp(pixelType, "FLOAT") == 0 ) {
41  stitchPanoIntern<vigra::FImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
42  } else if (strcmp(pixelType, "DOUBLE") == 0 ) {
43  stitchPanoIntern<vigra::DImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
44  } else {
45  UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
46  return;
47  }
48 }
49 
std::set< unsigned int > UIntSet
Definition: PanoramaData.h:51
#define UTILS_THROW(class, msg)
Definition: utils.h:83
void stitchPanoGray_32_float(const PanoramaData &pano, const PanoramaOptions &opts, AppBase::ProgressDisplay *progress, const std::string &basename, const UIntSet &usedImgs, const char *pixelType, const AdvancedOptions &advOptions)
Contains various routines used for stitching panoramas.
std::map< std::string, std::string > AdvancedOptions