26#ifndef _FINDPANODIALOG_H
27#define _FINDPANODIALOG_H
33#include <wx/filepicker.h>
115typedef std::set<HuginBase::SrcPanoImage*, SortFilename>
ImageSet;
Batch processor for Hugin with GUI.
std::set< HuginBase::SrcPanoImage *, SortFilename > ImageSet
Dialog for finding panorama in given directory.
void OnSelectPossiblePano(wxCommandEvent &e)
event to populate information on the right
wxSpinCtrl * m_sc_minNumberImages
void SearchInDir(wxString dirstring, const bool includeSubdir, const bool loadDistortion, const bool loadVignetting, const size_t minNumberImages, const size_t maxTimeDiff)
wxStaticText * m_statustext
BatchFrame * m_batchframe
wxDirPickerCtrl * m_dirPicker
TIFFErrorHandler m_oldtiffwarning
void OnClose(wxCloseEvent &e)
prevents closing window when running detection
wxSpinCtrl * m_sc_maxTimeDiff
void OnButtonStart(wxCommandEvent &e)
start/stops detections
wxCheckListBox * m_list_pano
wxCheckBox * m_cb_createLinks
wxButton * m_button_start
void OnSplitPanos(wxCommandEvent &e)
event handler to split into 2 panos
void OnListMouseMove(wxMouseEvent &e)
mouse move handler for tooltips
std::vector< PossiblePano * > m_panos
void OnRemoveImage(wxCommandEvent &e)
event handler to remove selected image from list
void EnableButtons(const bool state)
wxListCtrl * m_thumbsList
wxCheckBox * m_cb_loadVignetting
wxButton * m_button_close
void OnButtonClose(wxCommandEvent &e)
closes window
void OnButtonSend(wxCommandEvent &e)
add selected projects to queue
wxCheckBox * m_cb_loadDistortion
void OnListItemRightClick(wxListEvent &e)
event handler for context menu
~FindPanoDialog()
destructor, saves size and position
BlendingMechanism
blenders
All variables of a source image.
void UpdateDateTimes()
updates the internal date/time representations
wxString GeneratePanorama(NamingConvention nc, bool createLinks, HuginBase::PanoramaOptions::BlendingMechanism defaultBlender)
generates the panorama file from this set of images
PossiblePano * SplitPano(const unsigned int index)
split pano into 2 subpanos, index is used as first image of second pano
wxString GetStartString()
return the start date/time as string
NamingConvention
enumeration for different naming conventions, must be match combobox in ressource
wxString GetFocalLength()
returns the focal length as string
bool GetNewProjectFilename(NamingConvention nc, const wxString basePath, wxFileName &projectFile)
returns a given filename, which does not already exists
const wxString GetFilestring(const wxString BasePath, const bool stripExtension=false) const
returns a string with the filename of the first and last file
wxString GetCameraName()
returns the camera name
void PopulateListCtrl(wxListCtrl *list, wxImageList *thumbs, wxArrayString &tooltips)
add all images to wxListCtrl
void RemoveImage(const unsigned int index)
removes the image at given index
~PossiblePano()
destructor, cleans up used variables
wxString GetDuration()
returns the duration as string
wxString GetLensName()
returns the lens name
void AddSrcPanoImage(HuginBase::SrcPanoImage *img)
adds the given SrcPanoImage to this pano-group
PossiblePano()
constructor, init values
const unsigned int GetImageCount() const
returns number of images in this group
bool BelongsTo(HuginBase::SrcPanoImage *img, const wxTimeSpan max_time_diff)
return true, if the image could belong to the given PossiblePano, it checks camera maker and model,...
const wxDateTime GetDateTime(const HuginBase::SrcPanoImage *img)
does some reformating date/time format
const wxString GetItemString(const wxString BasePath) const
returns a string which contains description of this pano
include file for the hugin project
include file for the hugin project
bool operator()(const HuginBase::SrcPanoImage *img1, const HuginBase::SrcPanoImage *img2) const
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.