Hugin trunk 0.1
Loading...
Searching...
No Matches
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
35 const PanoramaOptions & opts,
37 const std::string & basename,
38 const UIntSet & usedImgs,
39 const char * pixelType,
41{
42 if (strcmp(pixelType, "INT32") == 0 ) {
44 } else if (strcmp(pixelType, "UINT32") == 0 ) {
46 } else if (strcmp(pixelType, "FLOAT") == 0 ) {
48 } else if (strcmp(pixelType, "DOUBLE") == 0 ) {
50 } else {
51 UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
52 return;
53 }
54}
55
56
Contains various routines used for stitching panoramas.
Model for a panorama.
Panorama image options.
#define UTILS_THROW(class, msg)
Definition utils.h:83
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)
Definition Stitcher4.cpp:34
std::map< std::string, std::string > AdvancedOptions
std::set< unsigned int > UIntSet
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41