Hugin trunk 0.1
Loading...
Searching...
No Matches
StitcherOptions.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
9/* This is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This software is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this software. If not, see
21 * <http://www.gnu.org/licenses/>.
22 *
23 */
24
25#ifndef _NONA_STITCHEROPTIONS_H
26#define _NONA_STITCHEROPTIONS_H
27
28#include <map>
29#include <string>
30#include <hugin_shared.h>
31
32namespace HuginBase
33{
34namespace Nona
35{
36
37typedef std::map<std::string, std::string> AdvancedOptions;
38
40IMPEX bool GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const bool defaultValue);
41IMPEX std::string GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const std::string& defaultValue = std::string(""));
42IMPEX float GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const float defaultValue);
43
45IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const bool value);
46IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const std::string& value);
47IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const float value);
48
49} // namespace Nona
50} // namespace HuginBase
51
52#endif // _NONA_STITCHEROPTIONS_H
#define IMPEX
std::map< std::string, std::string > AdvancedOptions
void SetAdvancedOption(AdvancedOptions &opts, const std::string &name, const bool value)
store the option with name in AdvancedOptions
bool GetAdvancedOption(const AdvancedOptions &opts, const std::string &name, const bool defaultValue)
check if given option is saved and return its boolean value, otherwise return defaultValue
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
Definition wxcms.cpp:39
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41