nona.cpp File Reference

a simple test stitcher More...

#include <hugin_config.h>
#include <hugin_version.h>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <cctype>
#include <string>
#include <vigra/error.hxx>
#include <vigra/impex.hxx>
#include <unistd.h>
#include <hugin_basic.h>
#include <hugin_utils/platform.h>
#include <algorithms/nona/NonaFileStitcher.h>
#include <vigra_ext/MultiThreadOperations.h>
#include <vigra_ext/ImageTransformsGPU.h>
#include <tiffio.h>
#include <GL/glew.h>
#include <GL/glut.h>

Include dependency graph for nona.cpp:

Include dependency graph

Go to the source code of this file.




void usage (const char *name)
bool initGPU (int *argcp, char **argv)
 Try to initalise GLUT and GLEW, and create an OpenGL context for GPU stitching.
bool wrapupGPU ()
int main (int argc, char *argv[])


GLuint GlutWindowHandle

Detailed Description

a simple test stitcher

Pablo d'Angelo <>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file nona.cpp.

Define Documentation


Definition at line 53 of file nona.cpp.

Function Documentation

bool initGPU int *  argcp,
char **  argv

Try to initalise GLUT and GLEW, and create an OpenGL context for GPU stitching.

OpenGL extensions required by the GPU stitcher (-g option) are checked here.

true if everything went OK, false if we can't use GPGPU mode.

Definition at line 122 of file nona.cpp.

References cerr, cout, and GlutWindowHandle.

Referenced by main().

int main int  argc,
char *  argv[]

Definition at line 169 of file nona.cpp.

References cerr, cout, DEBUG_DEBUG, vigra_ext::ThreadManager::get(), HuginBase::Panorama::getActiveImages(), hugin_utils::getCPUCount(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getProjection(), makefile::ifstream, initGPU(), HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputMode, HuginBase::PanoramaOptions::outputPixelType, HuginBase::Panorama::readData(), HuginBase::PanoramaOptions::remapUsingGPU, HuginBase::PanoramaOptions::saveCoordImgs, set_contains(), HuginBase::Panorama::setFilePrefix(), vigra_ext::SetGPUDebugMessages(), HuginBase::Panorama::setImageFilename(), vigra_ext::ThreadManager::setNThreads(), HuginBase::Panorama::setOptions(), makefile::string, HuginBase::PanoramaOptions::tiffCompression, HuginBase::UIntSet, usage(), and wrapupGPU().

void usage const char *  name  )  [static]

Definition at line 69 of file nona.cpp.

References cerr.

bool wrapupGPU  )  [static]

Definition at line 164 of file nona.cpp.

References GlutWindowHandle.

Referenced by main().

Variable Documentation

GLuint GlutWindowHandle

Definition at line 67 of file nona.cpp.

Referenced by initGPU(), and wrapupGPU().

Generated on Tue Sep 23 01:25:47 2014 for Hugintrunk by  doxygen