28#include <wx/translation.h>
29#include <wx/fileconf.h>
30#include <wx/wfstream.h>
87 args,
_(
"Removing control points in clouds...")));
127 wxString label(
_(
"Searching for best crop..."));
132 label = wxString::Format(
"Setting options from %s",
iniFilename.GetFullName().c_str());
155 errStream <<
"ERROR: Project contains no images. Nothing to do." << std::endl;
167 settings.Read(
"/General/StepCount", &
stepCount, 0);
170 errStream <<
"ERROR: User-setting does not define any assistant steps." << std::endl;
200 errStream <<
"ERROR: Assistant specifies " <<
stepCount <<
" steps, but step " <<
i <<
" is missing in configuration." << std::endl;
227 errStream <<
"ERROR: Step " <<
i <<
" has no program name specified." << std::endl;
234#elif defined __WXMSW__
243 errStream <<
"ERROR: Step " <<
i <<
" has no arguments given." << std::endl;
create a CommandQueue for running the assistant using CLI tools
@ X
evaluate x, points are on a vertical line
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
std::size_t getNrOfCtrlPoints() const
number of control points
const CPVector & getCtrlPoints() const
get all control point of this Panorama
std::size_t getNrOfImages() const
number of images.
class to work with images graphs created from a HuginBase::Panorama class it creates a graph based on...
normal command for queue, processing is stopped if an error occurred in program
#define HUGIN_CELESTE_FILTER
#define HUGIN_ASS_LINEFIND
#define HUGIN_ASS_PANO_DOWNSIZE_FACTOR
#define HUGIN_ASS_AUTO_CPCLEAN
#define HUGIN_CELESTE_AUTO
#define HUGIN_CELESTE_THRESHOLD
std::vector< ControlPoint > CPVector
str wxEscapeFilename(const str &arg)
special escaping routine for CommandQueues
wxString GetExternalProgram(wxConfigBase *config, const wxString &bindir, const wxString &name)
return path and name of external program, which can be overwritten by the user
CommandQueue * GetAssistantCommandQueueUserDefined(const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &assistantSetting, wxArrayString &tempFilesDelete, std::ostream &errStream)
generates the command queue for running the assistant
void CleanQueue(CommandQueue *queue)
clean the queue, delete all entries, but not the queue itself
wxString wxStringFromCDouble(double val, int precision)
convert double to wxString, it is always using a '.
std::vector< NormalCommand * > CommandQueue
const wxString GetSettingStringTranslated(wxConfigBase *setting, const wxString &name, const wxString defaultValue)
read a translated string from settings and remove all whitespaces
wxString GetInternalProgram(const wxString &bindir, const wxString &name)
return path and name of external program, which comes bundled with Hugin
const wxString GetConfigTempDir(const wxConfigBase *config)
return the temp dir from the preferences, ensure that it ends with path separator
CommandQueue * GetAssistantCommandQueue(const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project)
generates the command queue for running the assistant
const wxString GetSettingString(wxConfigBase *setting, const wxString &name, const wxString defaultValue)
read a string from setting and remove all whitespaces
std::string GetUserAppDataDir()
returns the directory for user specific Hugin settings, e.g.
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.