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

represents a control point More...

#include <ControlPoint.h>

Public Types

enum  OptimizeMode { X_Y = 0, X, Y }
 minimize x,y or both. More...
 

Public Member Functions

 ControlPoint ()
 
 ControlPoint (unsigned int img1, double sX, double sY, unsigned int img2, double dX, double dY, int mode=X_Y)
 
bool operator== (const ControlPoint &o) const
 
const std::string getCPString () const
 returns string which contains all features of a control point used for detecting duplicate control points in the string the image numbers are sorted ascending to cover also mirrored control points More...
 
void mirror ()
 swap (image1Nr,x1,y1) with (image2Nr,x2,y2) More...
 

Public Attributes

unsigned int image1Nr
 
unsigned int image2Nr
 
double x1
 
double y1
 
double x2
 
double y2
 
double error
 
int mode
 

Detailed Description

represents a control point

Definition at line 38 of file ControlPoint.h.

Member Enumeration Documentation

minimize x,y or both.

higher numbers mean multiple line control points

Enumerator
X_Y 

evaluate x,y

X 

evaluate x, points are on a vertical line

Y 

evaluate y, points are on a horizontal line

Definition at line 45 of file ControlPoint.h.

Constructor & Destructor Documentation

HuginBase::ControlPoint::ControlPoint ( )
inline

Definition at line 54 of file ControlPoint.h.

HuginBase::ControlPoint::ControlPoint ( unsigned int  img1,
double  sX,
double  sY,
unsigned int  img2,
double  dX,
double  dY,
int  mode = X_Y 
)
inline

Definition at line 62 of file ControlPoint.h.

Member Function Documentation

const std::string HuginBase::ControlPoint::getCPString ( ) const

returns string which contains all features of a control point used for detecting duplicate control points in the string the image numbers are sorted ascending to cover also mirrored control points

Definition at line 51 of file ControlPoint.cpp.

References image1Nr, image2Nr, mode, x1, x2, y1, and y2.

Referenced by PanoDetector::FilterMatchesInPair().

void HuginBase::ControlPoint::mirror ( )

swap (image1Nr,x1,y1) with (image2Nr,x2,y2)

Definition at line 42 of file ControlPoint.cpp.

References image1Nr, image2Nr, x1, x2, y1, and y2.

Referenced by HuginBase::Panorama::getCtrlPointsVectorForImage(), PanoCommand::AddCtrlPointCmd::processPanorama(), and CPEditorPanel::UpdateDisplay().

bool HuginBase::ControlPoint::operator== ( const ControlPoint o) const

Definition at line 31 of file ControlPoint.cpp.

References error, image1Nr, image2Nr, mode, x1, x2, y1, and y2.

Member Data Documentation

double HuginBase::ControlPoint::error
unsigned int HuginBase::ControlPoint::image1Nr
unsigned int HuginBase::ControlPoint::image2Nr
int HuginBase::ControlPoint::mode
double HuginBase::ControlPoint::x1
double HuginBase::ControlPoint::x2
double HuginBase::ControlPoint::y1
double HuginBase::ControlPoint::y2

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