hugin_base/panotools/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/PanoImage.h>
#include <panodata/PanoramaData.h>
#include <panodata/StandardImageVariableGroups.h>
Include dependency graph for PanoToolsInterface.cpp:

Namespaces | |
| namespace | HuginBase |
| namespace | HuginBase::PTools |
Defines | |
| #define | PT_SET_OPT(n, v) |
Functions | |
| int | CheckParams (AlignInfo *g) |
| 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 | createAdjustPrefs (aPrefs &p, TrformStr &transf) |
| create an empty aPrefs structure, suitable for transforming a input picture into an output picture. | |
| void | createAdjustTrform (TrformStr &trf) |
| prepare a Trform struct for the adjust operation, image -> pano see use createAdjustPrefs(), setAdjustSrcImg() and setAdjustDestImg() to specify the images and transformation options | |
| void | freeTrform (TrformStr &trf) |
| free the resources associated with a TrformStr. | |
| void | freeImage (Image &img) |
| free the pointer storage needed by Image | |
| void | setAdjustSrcImg (TrformStr &trf, aPrefs &ap, int width, int height, unsigned char *imageData, const VariableMap &vars, const Lens::LensProjectionFormat format, bool correctDistortions) |
| set a new input image for inserting into the panorama. | |
| void | setAdjustDestImg (TrformStr &trf, aPrefs &ap, int width, int height, unsigned char *imageData, const PanoramaOptions &opts) |
| set a new output image for the panorama | |
| void | setOptVars (optVars &opt, const std::set< std::string > &optvars) |
| set variables to optimize | |
Detailed Description
implementation of PanoToolsInterface Class
- Author:
- Pablo d'Angelo <pablo.dangelo@web.de>
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
Define Documentation
|
|
Value: { if (set_contains(optvec[imgNr], #v )) { \
if (set_contains(lens.variables, #v) \
&& const_map_get(lens.variables, #v ).isLinked()) {\
if (set_contains(linkAnchors, lensNr) \
&& linkAnchors[lensNr] != imgNr) \
{ \
gl.opt[imgNr]. n = linkAnchors[lensNr] + 2; \
}else { \
gl.opt[imgNr]. n = 1; \
linkAnchors[lensNr] = imgNr; \
} \
} else { \
gl.opt[imgNr]. n = 1; \
} \
} else { \
gl.opt[imgNr]. n = 0; \
} }
|
Function Documentation
|
|
|
|
||||||||||||
|
create an empty aPrefs structure, suitable for transforming a input picture into an output picture. the input/output pictures must be specified with: setAdjustSrcImg() and setAdjustDestImg() |
|
|
prepare a Trform struct for the adjust operation, image -> pano see use createAdjustPrefs(), setAdjustSrcImg() and setAdjustDestImg() to specify the images and transformation options
|
|
|
free the pointer storage needed by Image does NOT free the data referenced by image |
|
|
free the resources associated with a TrformStr.
createAdjustTrform() must have been used to create |
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
set a new output image for the panorama
|
|
||||||||||||||||||||||||||||||||||||
|
set a new input image for inserting into the panorama.
|
|
||||||||||||||||||||||||||||
|
set an output image, with properties from
|
|
||||||||||||||||||||||||||||
|
fills
|
|
||||||||||||
|
set variables to optimize
|
1.3.9.1