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

#include <CalculateOptimalROI.h>

Inheritance diagram for HuginBase::CalculateOptimalROIOutside:
Inheritance graph

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::ProgressDisplaygetProgressDisplay () 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
PanoramaDatao_panorama
 
bool o_successful
 

Detailed Description

Definition at line 111 of file CalculateOptimalROI.h.

Constructor & Destructor Documentation

HuginBase::CalculateOptimalROIOutside::CalculateOptimalROIOutside ( PanoramaData panorama,
AppBase::ProgressDisplay progress 
)
inline

constructor

Definition at line 115 of file CalculateOptimalROI.h.

Member Function Documentation

bool HuginBase::CalculateOptimalROIOutside::CalcOutsideCrop ( PanoramaData pano,
AppBase::ProgressDisplay progress 
)
private
vigra::Rect2D HuginBase::CalculateOptimalROIOutside::getResultOptimalROI ( )
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().

virtual bool HuginBase::CalculateOptimalROIOutside::modifiesPanoramaData ( ) const
inlinevirtual

returns true if the algorithm changes the PanoramaData.

Implements HuginBase::PanoramaAlgorithm.

Definition at line 116 of file CalculateOptimalROI.h.

virtual bool HuginBase::CalculateOptimalROIOutside::runAlgorithm ( )
inlinevirtual

runs the outside crop finding algorithm

Implements HuginBase::PanoramaAlgorithm.

Definition at line 121 of file CalculateOptimalROI.h.

Member Data Documentation

vigra::Rect2D HuginBase::CalculateOptimalROIOutside::m_bestRect
private

Definition at line 131 of file CalculateOptimalROI.h.

Referenced by CalcOutsideCrop(), and getResultOptimalROI().


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