Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stitcher4.cpp
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
26 #include "Stitcher.h"
27 // somehow these are still set after panorama.h has been included
28 #undef DIFFERENCE
29 #undef min
30 #undef max
31 #undef MIN
32 #undef MAX
33 
34 void HuginBase::Nona::stitchPanoRGB_32_float(const PanoramaData & pano,
35  const PanoramaOptions & opts,
36  AppBase::ProgressDisplay* progress,
37  const std::string & basename,
38  const UIntSet & usedImgs,
39  const char * pixelType,
40  const AdvancedOptions& advOptions)
41 {
42  if (strcmp(pixelType, "INT32") == 0 ) {
43  stitchPanoIntern<vigra::IRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
44  } else if (strcmp(pixelType, "UINT32") == 0 ) {
45  stitchPanoIntern<vigra::UInt32RGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
46  } else if (strcmp(pixelType, "FLOAT") == 0 ) {
47  stitchPanoIntern<vigra::FRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
48  } else if (strcmp(pixelType, "DOUBLE") == 0 ) {
49  stitchPanoIntern<vigra::DRGBImage, vigra::BImage>(pano, opts, progress, basename, usedImgs, advOptions);
50  } else {
51  UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
52  return;
53  }
54 }
55 
56 
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.
void stitchPanoRGB_32_float(const PanoramaData &pano, const PanoramaOptions &opts, AppBase::ProgressDisplay *progress, const std::string &basename, const UIntSet &usedImgs, const char *pixelType, const AdvancedOptions &advOptions)
std::map< std::string, std::string > AdvancedOptions