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:

Go to the source code of this file.




static void usage (const char *name)
static bool initGPU (int *argcp, char **argv)
 Try to initalise GLUT and GLEW, and create an OpenGL context for GPU stitching.
static 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

static bool initGPU ( int *  argcp,
char **  argv 
) [static]

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 HuginBase::PanoramaOptions::BIPLANE, cerr, cout, DEBUG_DEBUG, HuginBase::PanoramaOptions::EQUI_PANINI, HuginBase::PanoramaOptions::GENERAL_PANINI, vigra_ext::ThreadManager::get(), HuginBase::Panorama::getActiveImages(), hugin_utils::getCPUCount(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), HuginBase::PanoramaOptions::getProjection(), initGPU(), HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputMode, HuginBase::PanoramaOptions::outputPixelType, HuginBase::PanoramaOptions::PANINI, 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(), AppBase::DocumentData::SUCCESSFUL, HuginBase::PanoramaOptions::tiffCompression, HuginBase::PanoramaOptions::TRIPLANE, usage(), and wrapupGPU().

static void usage ( const char *  name  )  [static]

Definition at line 69 of file nona.cpp.

References cerr.

static 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 28 Feb 2015 for Hugintrunk by  doxygen 1.4.7