Hugin trunk 0.1
Loading...
Searching...
No Matches
GenerateSequenceDialog.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
10/* This is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This software is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this software. If not, see
22 * <http://www.gnu.org/licenses/>.
23 *
24 */
25
26#ifndef _GENERATESEQUENCEDIALOG_H
27#define _GENERATESEQUENCEDIALOG_H
28
29#include <vector>
30#include "panoinc_WX.h"
31#include "panoinc.h"
32#include "BatchFrame.h"
33
34extern "C"
35{
36#include "tiff.h"
37#include "tiffio.h"
38}
39
43class GenerateSequenceDialog : public wxDialog
44{
45public:
51 bool IsValidPanorama() const;
52
53protected:
55 void OnSelectBasePath(wxCommandEvent& e);
57 void OnSelectSubDir(wxCommandEvent& e);
61 void OnUpdateImageTemplate(wxCommandEvent& e);
63 void OnUpdateAllImagesTemplate(wxCommandEvent& e);
67 void OnGeneratePreview(wxCommandEvent& e);
69 void OnGenerateStitchingPanorama(wxCommandEvent& e);
71 void OnGenerateAssistantPanorama(wxCommandEvent& e);
72
73private:
75 void ReadPTOFile();
77 void FillImagesList();
79 void UpdateCounters();
81 void GenerateFileList(wxArrayString& panoSubDirs, std::vector<wxArrayString>& fileList);
83 void DoGeneratePanorama(const Project::Target target);
84
88 bool m_validPTO{ false };
89 wxTextCtrl* m_basepath;
91 wxTextCtrl* m_subDirTextCtrl;
98 wxListCtrl* m_imagesListCtrl;
100 wxTextCtrl* m_imageTemplate;
103};
104
105
106#endif //_GENERATESEQUENCEDIALOG_H
Batch processor for Hugin with GUI.
Dialog for generate panoramas from a sequence of images.
~GenerateSequenceDialog()
destructor, saves size and position
void FillImagesList()
fill the images list with current values
void ReadPTOFile()
read pto template from file
void OnUpdateCounters(wxSpinEvent &e)
update all spin controls with current numbers
void OnImageListSelected(wxListEvent &e)
image in list ctrl selected
void OnGenerateAssistantPanorama(wxCommandEvent &e)
generate assistant sequence button
void OnUpdateAllImagesTemplate(wxCommandEvent &e)
update images filename template for all images
void OnGeneratePreview(wxCommandEvent &e)
generate preview
void GenerateFileList(wxArrayString &panoSubDirs, std::vector< wxArrayString > &fileList)
generate a list of all panorama and images in panoramas
void OnGenerateStitchingPanorama(wxCommandEvent &e)
generate stitching sequence button
void DoGeneratePanorama(const Project::Target target)
generates all panoramas and add them to the batch queue with given queue target
void OnSelectBasePath(wxCommandEvent &e)
show select directory dialog
void OnUpdateImageTemplate(wxCommandEvent &e)
update image filename template on selected image
void OnSelectSubDir(wxCommandEvent &e)
select which sub-directory should be used
bool IsValidPanorama() const
return true if given template is a valid pto file, if not the dialog should not be used
void UpdateCounters()
update all counters, enable/disable end value and calculate end values
Model for a panorama.
Definition Panorama.h:153
include file for the hugin project
include file for the hugin project
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