Hugintrunk
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hugin_base
panodata
ControlPoint.cpp
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
25
#include "
ControlPoint.h
"
26
27
28
namespace
HuginBase {
29
30
31
bool
ControlPoint::operator==
(
const
ControlPoint
& o)
const
32
{
33
return
(
image1Nr
== o.
image1Nr
&&
34
image2Nr
== o.
image2Nr
&&
35
x1
== o.
x1
&&
y1
== o.
y1
&&
36
x2
== o.
x2
&&
y2
== o.
y2
&&
37
mode
== o.
mode
&&
38
error
== o.
error
);
39
}
40
41
42
void
ControlPoint::mirror
()
43
{
44
unsigned
int
ti;
45
double
td;
46
ti =
image1Nr
;
image1Nr
=
image2Nr
,
image2Nr
= ti;
47
td =
x1
;
x1
=
x2
;
x2
= td;
48
td =
y1
;
y1
=
y2
;
y2
= td;
49
}
50
51
const
std::string
ControlPoint::getCPString
()
const
52
{
53
std::ostringstream s;
54
s <<
mode
;
55
if
(
image1Nr
<=
image2Nr
)
56
{
57
s <<
" "
<<
image1Nr
<<
": "
<<
x1
<<
","
<<
y1
<<
"|"
<<
image2Nr
<<
": "
<<
x2
<<
","
<<
y2
;
58
}
59
else
60
{
61
s <<
" "
<<
image2Nr
<<
": "
<<
x2
<<
","
<<
y2
<<
"|"
<<
image1Nr
<<
": "
<<
x1
<<
","
<<
y1
;
62
}
63
return
s.str();
64
};
65
66
}
// namespace
HuginBase::ControlPoint::x2
double x2
Definition:
ControlPoint.h:93
HuginBase::ControlPoint::x1
double x1
Definition:
ControlPoint.h:92
HuginBase::ControlPoint::mode
int mode
Definition:
ControlPoint.h:95
HuginBase::ControlPoint
represents a control point
Definition:
ControlPoint.h:38
HuginBase::ControlPoint::getCPString
const std::string getCPString() const
returns string which contains all features of a control point used for detecting duplicate control po...
Definition:
ControlPoint.cpp:51
HuginBase::ControlPoint::image2Nr
unsigned int image2Nr
Definition:
ControlPoint.h:91
HuginBase::ControlPoint::operator==
bool operator==(const ControlPoint &o) const
Definition:
ControlPoint.cpp:31
HuginBase::ControlPoint::error
double error
Definition:
ControlPoint.h:94
ControlPoint.h
HuginBase::ControlPoint::y2
double y2
Definition:
ControlPoint.h:93
HuginBase::ControlPoint::image1Nr
unsigned int image1Nr
Definition:
ControlPoint.h:90
HuginBase::ControlPoint::mirror
void mirror()
swap (image1Nr,x1,y1) with (image2Nr,x2,y2)
Definition:
ControlPoint.cpp:42
HuginBase::ControlPoint::y1
double y1
Definition:
ControlPoint.h:92
Generated on Sun Nov 10 2024 01:25:47 for Hugintrunk by
1.8.5