24#ifndef _OPTIMIZE_PANEL_H
25#define _OPTIMIZE_PANEL_H
28#include <wx/xrc/xmlres.h>
72 void OnReset(wxCommandEvent& e);
declaration of helper for work with different GuiLevels
this handler class will receive change events from the Panorama.
the main images tree control, used on images and optimizer tabs
OptimizePanelXmlHandler()
virtual wxObject * DoCreateResource()
virtual bool CanHandle(wxXmlNode *node)
HuginBase::Panorama * m_pano
void SetGuiLevel(GuiLevel newGuiLevel)
bool AskApplyResult(wxWindow *activeWindow, const HuginBase::Panorama &pano)
virtual void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
receives notification about panorama changes
void OnCheckOnlyActiveImages(wxCommandEvent &e)
handle "only active images" checkbox
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
Delayed creation.
void OnClose(wxCloseEvent &e)
void SetOnlyActiveImages(const bool onlyActive)
for external setting of "only active image" checkbox
void OnOptimizeButton(wxCommandEvent &e)
run the optimizer
void Init(HuginBase::Panorama *pano)
void runOptimizer(const HuginBase::UIntSet &img, const bool ignoreLineCp)
wxCheckBox * m_ignore_line_cp
virtual void panoramaChanged(HuginBase::Panorama &pano)
receives notification about panorama changes
wxCheckBox * m_only_active_images_cb
ImagesTreeCtrl * m_images_tree_list
void OnCheckIgnoreLineCP(wxCommandEvent &e)
handle "ignore line cp" checkbox
void SetIgnoreLineCP(const bool noLineCp)
for external setting of "ignore line cp" checkbox
ImagesTreeCtrl * m_lens_tree_list
void OnReset(wxCommandEvent &e)
std::set< unsigned int > UIntSet
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.