PanoToolsInterface.cpp File Reference

implementation of PanoToolsInterface Class More...

#include <hugin_config.h>
#include <stdlib.h>
#include "PanoToolsInterface.h"
#include <vector>
#include <set>
#include <hugin_utils/utils.h>
#include <hugin_utils/stl_utils.h>
#include <panodata/PanoramaData.h>
#include <panodata/StandardImageVariableGroups.h>

Include dependency graph for PanoToolsInterface.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  HuginBase
namespace  HuginBase::PTools

Functions

VariableMapVector GetAlignInfoVariables (const AlignInfo &gl)
CPVector GetAlignInfoCtrlPoints (const AlignInfo &gl)
void setDestImage (Image &image, vigra::Diff2D size, unsigned char *imageData, const PanoramaOptions::ProjectionFormat &format, const std::vector< double > &projParams, double destHFOV)
 set an output image, with properties from opts, that points to the bitmap data of imgData
void initCPrefs (cPrefs &p, const VariableMap &vars)
void setFullImage (Image &image, vigra::Diff2D size, unsigned char *imageData, const VariableMap &vars, const Lens::LensProjectionFormat format, bool correctDistortions)
 fills image with a complete input image, including distortion correction parameters if correctDistortions is set.
void createAdjustTrform (TrformStr &trf)
void freeImage (Image &img)
 free the pointer storage needed by Image


Detailed Description

implementation of PanoToolsInterface Class

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

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 PanoToolsInterface.cpp.


Function Documentation

void createAdjustTrform TrformStr &  trf  ) 
 

Definition at line 520 of file PanoToolsInterface.cpp.

IMPEX void HuginBase::PTools::freeImage Image &  img  ) 
 

free the pointer storage needed by Image

does NOT free the data referenced by image

Definition at line 535 of file PanoToolsInterface.cpp.

Referenced by HuginBase::PTools::Transform::updatePTData(), and HuginBase::PTools::Transform::~Transform().

IMPEX CPVector HuginBase::PTools::GetAlignInfoCtrlPoints const AlignInfo &  gl  ) 
 

Definition at line 319 of file PanoToolsInterface.cpp.

References HuginBase::CPVector.

Referenced by HuginBase::PTools::calcCtrlPointErrors(), and HuginBase::PTools::optimize().

IMPEX VariableMapVector HuginBase::PTools::GetAlignInfoVariables const AlignInfo &  gl  ) 
 

Definition at line 285 of file PanoToolsInterface.cpp.

References HuginBase::VariableMap, and HuginBase::VariableMapVector.

Referenced by HuginBase::PTools::optimize().

void initCPrefs cPrefs &  p,
const VariableMap vars
 

Definition at line 370 of file PanoToolsInterface.cpp.

References const_map_get().

Referenced by HuginBase::PTools::setFullImage().

IMPEX void HuginBase::PTools::setDestImage Image &  image,
vigra::Diff2D  size,
unsigned char *  imageData,
const PanoramaOptions::ProjectionFormat &  format,
const std::vector< double > &  projParams,
double  destHFOV
 

set an output image, with properties from opts, that points to the bitmap data of imgData

Definition at line 334 of file PanoToolsInterface.cpp.

References DEBUG_DEBUG, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

Referenced by HuginBase::PTools::Transform::updatePTData().

IMPEX void HuginBase::PTools::setFullImage Image &  image,
vigra::Diff2D  size,
unsigned char *  imageData,
const VariableMap vars,
const Lens::LensProjectionFormat  format,
bool  correctDistortions
 

fills image with a complete input image, including distortion correction parameters if correctDistortions is set.

Definition at line 444 of file PanoToolsInterface.cpp.

References const_map_get(), DEBUG_FATAL, HuginBase::PTools::initCPrefs(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

Referenced by HuginBase::PTools::Transform::updatePTData().


Generated on Fri Aug 1 01:25:45 2014 for Hugintrunk by  doxygen 1.3.9.1