Hugintrunk
0.1
|
#include <CalculateOptimalROI.h>
Public Member Functions | |
CalculateOptimalROIOutside (PanoramaData &panorama, AppBase::ProgressDisplay *progress) | |
constructor More... | |
virtual bool | modifiesPanoramaData () const |
returns true if the algorithm changes the PanoramaData. More... | |
virtual bool | runAlgorithm () |
runs the outside crop finding algorithm More... | |
virtual vigra::Rect2D | getResultOptimalROI () |
returns the found crop rect More... | |
Public Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm | |
virtual | ~TimeConsumingPanoramaAlgorithm () |
virtual bool | wasCancelled () const |
Public Member Functions inherited from HuginBase::PanoramaAlgorithm | |
virtual | ~PanoramaAlgorithm () |
virtual bool | hasRunSuccessfully () |
virtual void | run () |
runs the algorithm. More... | |
Private Member Functions | |
bool | CalcOutsideCrop (PanoramaData &pano, AppBase::ProgressDisplay *progress) |
the main crop finding algorithm More... | |
Private Attributes | |
vigra::Rect2D | m_bestRect |
Additional Inherited Members | |
Protected Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm | |
TimeConsumingPanoramaAlgorithm (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay=NULL) | |
[Warning! it keeps the reference to the panorama data!] More... | |
virtual AppBase::ProgressDisplay * | getProgressDisplay () const |
virtual bool | hasProgressDisplay () const |
virtual void | cancelAlgorithm () |
Call this when the algorithm is cancelled. More... | |
virtual void | algorithmCancelled () |
Called when the algorithm got cancelled; override with cleaning up process etc. More... | |
Protected Member Functions inherited from HuginBase::PanoramaAlgorithm | |
PanoramaAlgorithm (PanoramaData &panorama) | |
Protected Attributes inherited from HuginBase::PanoramaAlgorithm | |
PanoramaData & | o_panorama |
bool | o_successful |
Definition at line 111 of file CalculateOptimalROI.h.
|
inline |
constructor
Definition at line 115 of file CalculateOptimalROI.h.
|
private |
the main crop finding algorithm
Definition at line 394 of file CalculateOptimalROI.cpp.
References HuginBase::estimateOutputROI(), HuginBase::PanoramaData::getActiveImages(), HuginBase::PanoramaData::getOptions(), HuginBase::PanoramaOptions::getSize(), m_bestRect, AppBase::ProgressDisplay::setMaximum(), HuginBase::PanoramaOptions::setROI(), AppBase::ProgressDisplay::updateDisplayValue(), and AppBase::ProgressDisplay::wasCancelled().
|
virtual |
returns the found crop rect
Definition at line 382 of file CalculateOptimalROI.cpp.
References HuginBase::PanoramaAlgorithm::hasRunSuccessfully(), and m_bestRect.
Referenced by main(), GLPreviewFrame::OnAutocropOutside(), and SetCrop().
|
inlinevirtual |
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm.
Definition at line 116 of file CalculateOptimalROI.h.
|
inlinevirtual |
runs the outside crop finding algorithm
Implements HuginBase::PanoramaAlgorithm.
Definition at line 121 of file CalculateOptimalROI.h.
|
private |
Definition at line 131 of file CalculateOptimalROI.h.
Referenced by CalcOutsideCrop(), and getResultOptimalROI().