Hugintrunk
0.1
|
run the optimizer. More...
#include <OptimizePhotometricPanel.h>
Public Member Functions | |
OptimizePhotometricPanel () | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel")) |
void | Init (HuginBase::Panorama *pano) |
virtual | ~OptimizePhotometricPanel () |
virtual void | panoramaChanged (HuginBase::Panorama &pano) |
receives notification about panorama changes More... | |
virtual void | panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr) |
receives notification about panorama changes More... | |
void | OnOptimizeButton (wxCommandEvent &e) |
run the optimizer More... | |
void | SetGuiLevel (GuiLevel newGuiLevel) |
void | SetOnlyActiveImages (const bool onlyActive) |
for external setting of "only active image" checkbox More... | |
Public Member Functions inherited from HuginBase::PanoramaObserver | |
virtual | ~PanoramaObserver () |
Protected Member Functions | |
void | OnClose (wxCloseEvent &e) |
void | OnReset (wxCommandEvent &e) |
void | OnCheckOnlyActiveImages (wxCommandEvent &e) |
handle "only active images" checkbox More... | |
void | runOptimizer (const HuginBase::UIntSet &img) |
Protected Attributes | |
wxCheckBox * | m_only_active_images_cb |
ImagesTreeCtrl * | m_images_tree |
ImagesTreeCtrl * | m_lens_tree |
HuginBase::Panorama * | m_pano |
run the optimizer.
this is tied into the wxWindows hugin
it will emit an event that
Definition at line 37 of file OptimizePhotometricPanel.h.
OptimizePhotometricPanel::OptimizePhotometricPanel | ( | ) |
Definition at line 60 of file OptimizePhotometricPanel.cpp.
|
virtual |
Definition at line 115 of file OptimizePhotometricPanel.cpp.
References DEBUG_TRACE, m_pano, and HuginBase::Panorama::removeObserver().
bool OptimizePhotometricPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL , |
||
const wxString & | name = wxT("panel") |
||
) |
Definition at line 64 of file OptimizePhotometricPanel.cpp.
References DEBUG_ASSERT, DEBUG_TRACE, m_images_tree, m_lens_tree, and m_only_active_images_cb.
void OptimizePhotometricPanel::Init | ( | HuginBase::Panorama * | pano | ) |
Definition at line 93 of file OptimizePhotometricPanel.cpp.
References HuginBase::Panorama::addObserver(), ImagesTreeCtrl::DISPLAY_PHOTOMETRICS_IMAGES, ImagesTreeCtrl::DISPLAY_PHOTOMETRICS_LENSES, ImagesTreeCtrl::GROUP_LENS, ImagesTreeCtrl::Init(), m_images_tree, m_lens_tree, m_pano, ImagesTreeCtrl::SetDisplayMode(), ImagesTreeCtrl::SetGroupMode(), and ImagesTreeCtrl::SetOptimizerMode().
Referenced by MainFrame::MainFrame().
|
protected |
handle "only active images" checkbox
Definition at line 123 of file OptimizePhotometricPanel.cpp.
References MainFrame::Get(), and MainFrame::SetOptimizeOnlyActiveImages().
|
protected |
Definition at line 409 of file OptimizePhotometricPanel.cpp.
References DEBUG_DEBUG, and DEBUG_TRACE.
void OptimizePhotometricPanel::OnOptimizeButton | ( | wxCommandEvent & | e | ) |
run the optimizer
Definition at line 135 of file OptimizePhotometricPanel.cpp.
References DEBUG_TRACE, fill_set(), HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_only_active_images_cb, m_pano, and runOptimizer().
Referenced by MainFrame::OnPhotometricOptimize().
|
protected |
Definition at line 426 of file OptimizePhotometricPanel.cpp.
References PanoCommand::CommandHistory::addCommand(), MainFrame::Get(), PanoOperation::PanoOperation::GetCommand(), MainFrame::GetGuiLevel(), PanoCommand::GlobalCmdHist::getInstance(), ImagesTreeCtrl::GetSelectedImages(), m_images_tree, m_pano, and PanoOperation::ResetOperation::RESET_DIALOG_PHOTOMETRICS.
|
virtual |
receives notification about panorama changes
Implements HuginBase::PanoramaObserver.
Definition at line 166 of file OptimizePhotometricPanel.cpp.
References HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_images_tree, m_lens_tree, and m_pano.
|
virtual |
receives notification about panorama changes
Implements HuginBase::PanoramaObserver.
Definition at line 172 of file OptimizePhotometricPanel.cpp.
References HuginBase::Panorama::getNrOfImages().
|
protected |
Definition at line 179 of file OptimizePhotometricPanel.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::CalculateMeanExposure::calcMeanExposure(), HuginBase::PanoramaOptions::colorReferenceImage, DEBUG_DEBUG, DEBUG_TRACE, vigra_ext::destImage(), HuginBase::PointSampler::execute(), HuginBase::Panorama::getImage(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::ConstStandardImageVariableGroups::getLenses(), HuginBase::Panorama::getNrOfImages(), HuginBase::ConstImageVariableGroup::getNumberOfParts(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), HuginBase::PointSampler::getResultPoints(), HuginBase::Panorama::getSubset(), HuginBase::Panorama::getVariables(), HuginBase::ConstImageVariableGroup::getVarLinkedInPart(), HUGIN_PHOTOMETRIC_OPTIMIZER_NRPOINTS, HuginBase::LimitIntensity::LIMIT_FLOAT, HuginBase::LimitIntensity::LIMIT_UINT16, HuginBase::LimitIntensity::LIMIT_UINT8, m_pano, vigra_ext::FindComponentsMinMax< VALUETYPE >::max, celeste::min(), vigra_ext::FindComponentsMinMax< VALUETYPE >::min, HuginBase::OPT_EXPOSURE, HuginBase::SmartPhotometricOptimizer::OPT_PHOTOMETRIC_HDR, HuginBase::SmartPhotometricOptimizer::OPT_PHOTOMETRIC_HDR_WB, HuginBase::SmartPhotometricOptimizer::OPT_PHOTOMETRIC_LDR, HuginBase::SmartPhotometricOptimizer::OPT_PHOTOMETRIC_LDR_WB, HuginBase::OPT_RESPONSE, HuginBase::OPT_VIGNETTING, HuginBase::OPT_WHITEBALANCE, HuginBase::PhotometricOptimizer::optimizePhotometric(), HuginBase::PanoramaOptions::outputExposureValue, vigra_ext::reduceToNextLevel(), set_contains(), HuginBase::Panorama::setOptions(), HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric(), vigra_ext::srcImage(), vigra_ext::srcImageRange(), and vigra::omp::transformImage().
Referenced by OnOptimizeButton().
void OptimizePhotometricPanel::SetGuiLevel | ( | GuiLevel | newGuiLevel | ) |
Definition at line 109 of file OptimizePhotometricPanel.cpp.
References m_images_tree, m_lens_tree, and ImagesTreeCtrl::SetGuiLevel().
Referenced by MainFrame::SetGuiLevel().
void OptimizePhotometricPanel::SetOnlyActiveImages | ( | const bool | onlyActive | ) |
for external setting of "only active image" checkbox
Definition at line 128 of file OptimizePhotometricPanel.cpp.
References m_images_tree, m_lens_tree, m_only_active_images_cb, and ImagesTreeCtrl::MarkActiveImages().
Referenced by MainFrame::SetOptimizeOnlyActiveImages().
|
protected |
Definition at line 72 of file OptimizePhotometricPanel.h.
Referenced by Create(), Init(), OnReset(), panoramaChanged(), SetGuiLevel(), and SetOnlyActiveImages().
|
protected |
Definition at line 73 of file OptimizePhotometricPanel.h.
Referenced by Create(), Init(), panoramaChanged(), SetGuiLevel(), and SetOnlyActiveImages().
|
protected |
Definition at line 70 of file OptimizePhotometricPanel.h.
Referenced by Create(), OnOptimizeButton(), and SetOnlyActiveImages().
|
protected |
Definition at line 75 of file OptimizePhotometricPanel.h.
Referenced by Init(), OnOptimizeButton(), OnReset(), panoramaChanged(), runOptimizer(), and ~OptimizePhotometricPanel().