00001
00026 #include "Stitcher.h"
00027
00028 using namespace std;
00029 using namespace vigra;
00030
00031 void HuginBase::Nona::stitchPanoGray_32_float(const PanoramaData & pano,
00032 const PanoramaOptions & opts,
00033 AppBase::MultiProgressDisplay & progress,
00034 const std::string & basename,
00035 const UIntSet & usedImgs,
00036 const char * pixelType)
00037 {
00038 if (strcmp(pixelType, "UINT32") == 0 ) {
00039 stitchPanoIntern<UInt32Image,BImage>(pano, opts, progress, basename, usedImgs);
00040 } else if (strcmp(pixelType, "INT32") == 0 ) {
00041 stitchPanoIntern<IImage,BImage>(pano, opts, progress, basename, usedImgs);
00042 } else if (strcmp(pixelType, "FLOAT") == 0 ) {
00043 stitchPanoIntern<FImage,BImage>(pano, opts, progress, basename, usedImgs);
00044 } else if (strcmp(pixelType, "DOUBLE") == 0 ) {
00045 stitchPanoIntern<DImage,BImage>(pano, opts, progress, basename, usedImgs);
00046 } else {
00047 UTILS_THROW(std::runtime_error, "Unsupported pixel type: " << pixelType );
00048 return;
00049 }
00050 }
00051