Hugin trunk 0.1
Loading...
Searching...
No Matches
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
 
void mirror ()
 swap (image1Nr,x1,y1) with (image2Nr,x2,y2)
 

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

◆ OptimizeMode

minimize x,y or both.

higher numbers mean multiple line control points

Enumerator
X_Y 

evaluate x,y

evaluate x, points are on a vertical line

evaluate y, points are on a horizontal line

Definition at line 45 of file ControlPoint.h.

Constructor & Destructor Documentation

◆ ControlPoint() [1/2]

HuginBase::ControlPoint::ControlPoint ( )
inline

Definition at line 54 of file ControlPoint.h.

◆ ControlPoint() [2/2]

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

◆ getCPString()

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, threshold(), x1, x2, y1, and y2.

◆ mirror()

void HuginBase::ControlPoint::mirror ( )

◆ operator==()

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

◆ error

double HuginBase::ControlPoint::error

◆ image1Nr

unsigned int HuginBase::ControlPoint::image1Nr

◆ image2Nr

unsigned int HuginBase::ControlPoint::image2Nr

◆ mode

int HuginBase::ControlPoint::mode

◆ x1

double HuginBase::ControlPoint::x1

◆ x2

double HuginBase::ControlPoint::x2

◆ y1

double HuginBase::ControlPoint::y1

◆ y2

double HuginBase::ControlPoint::y2

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