Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stitcher3.cpp
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
26 #include "Stitcher.h"
27 
28 void HuginBase::Nona::stitchPanoRGB_8_16(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, "UINT8") == 0 ) {
37  stitchPanoIntern<vigra::BRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
38  } else if (strcmp(pixelType, "INT16") == 0 ) {
39  stitchPanoIntern<vigra::SRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
40  } else if (strcmp(pixelType, "UINT16") == 0 ) {
41  stitchPanoIntern<vigra::UInt16RGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
42  } else {
43  UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
44  return;
45  }
46 }
47 
48 
void stitchPanoRGB_8_16(const PanoramaData &pano, const PanoramaOptions &opts, AppBase::ProgressDisplay *progress, const std::string &basename, const UIntSet &usedImgs, const char *pixelType, const AdvancedOptions &advOptions)
std::set< unsigned int > UIntSet
Definition: PanoramaData.h:51
#define UTILS_THROW(class, msg)
Definition: utils.h:83
Contains various routines used for stitching panoramas.
std::map< std::string, std::string > AdvancedOptions