Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OptimizePhotometricPanel Class Reference

run the optimizer. More...

#include <OptimizePhotometricPanel.h>

Inheritance diagram for OptimizePhotometricPanel:
Inheritance graph

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
 
ImagesTreeCtrlm_images_tree
 
ImagesTreeCtrlm_lens_tree
 
HuginBase::Panoramam_pano
 

Detailed Description

run the optimizer.

this is tied into the wxWindows hugin

it will emit an event that

Definition at line 37 of file OptimizePhotometricPanel.h.

Constructor & Destructor Documentation

OptimizePhotometricPanel::OptimizePhotometricPanel ( )

Definition at line 60 of file OptimizePhotometricPanel.cpp.

OptimizePhotometricPanel::~OptimizePhotometricPanel ( )
virtual

Member Function Documentation

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") 
)
void OptimizePhotometricPanel::Init ( HuginBase::Panorama pano)
void OptimizePhotometricPanel::OnCheckOnlyActiveImages ( wxCommandEvent &  e)
protected

handle "only active images" checkbox

Definition at line 123 of file OptimizePhotometricPanel.cpp.

References MainFrame::Get(), and MainFrame::SetOptimizeOnlyActiveImages().

void OptimizePhotometricPanel::OnClose ( wxCloseEvent &  e)
protected

Definition at line 407 of file OptimizePhotometricPanel.cpp.

References DEBUG_DEBUG, and DEBUG_TRACE.

void OptimizePhotometricPanel::OnOptimizeButton ( wxCommandEvent &  e)
void OptimizePhotometricPanel::OnReset ( wxCommandEvent &  e)
protected
void OptimizePhotometricPanel::panoramaChanged ( HuginBase::Panorama pano)
virtual

receives notification about panorama changes

Implements HuginBase::PanoramaObserver.

Definition at line 164 of file OptimizePhotometricPanel.cpp.

References HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_images_tree, m_lens_tree, and m_pano.

void OptimizePhotometricPanel::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet imgNr 
)
virtual

receives notification about panorama changes

Implements HuginBase::PanoramaObserver.

Definition at line 170 of file OptimizePhotometricPanel.cpp.

References HuginBase::Panorama::getNrOfImages().

void OptimizePhotometricPanel::runOptimizer ( const HuginBase::UIntSet img)
protected

Definition at line 177 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)
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().

Member Data Documentation

ImagesTreeCtrl* OptimizePhotometricPanel::m_images_tree
protected
ImagesTreeCtrl* OptimizePhotometricPanel::m_lens_tree
protected
wxCheckBox* OptimizePhotometricPanel::m_only_active_images_cb
protected

Definition at line 70 of file OptimizePhotometricPanel.h.

Referenced by Create(), OnOptimizeButton(), and SetOnlyActiveImages().

HuginBase::Panorama* OptimizePhotometricPanel::m_pano
protected

The documentation for this class was generated from the following files: