Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
ccd_cam.cpp
1
/***************************************************************************
2
* ccd_cam.cpp - Class defining a ccd camera model
3
*
4
* Created: Thu May 08 16:08:00 2008
5
* Copyright 2008 Christof Rath <c.rath@student.tugraz.at>
6
*
7
****************************************************************************/
8
9
/* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version. A runtime exception applies to
13
* this software (see LICENSE.GPL_WRE file mentioned below for details).
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
21
*/
22
23
#include <fvmodels/camera/ccd_cam.h>
24
25
using namespace
fawkes;
26
27
namespace
firevision {
28
#if 0
/* just to make Emacs auto-indent happy */
29
}
30
#endif
31
32
/** @class CCDCam <fvmodels/camera/ccd_cam.h>
33
* A class for a ccd camera model.
34
* @author Christof Rath
35
*/
36
37
/** Constructor.
38
* @param cal Calibration matrix of the camera
39
* @param loc Location of the camera (= translation + rotation)
40
*/
41
CCDCam::CCDCam(
const
CCDCalibration
&cal,
const
HomTransform
*loc)
42
:
ProjectiveCam
(cal, loc)
43
{
44
}
45
46
/** Constructor.
47
* @param ax is the scale factor in the x-coordinate direction
48
* @param ay is the scale factor in the y-coordinate direction
49
* @param x0 is the x-coordinate of the principal point
50
* @param y0 is the y-coordinate of the principal point
51
* @param loc Location of the camera (= translation + rotation)
52
*/
53
CCDCam::CCDCam
(
const
float
ax,
const
float
ay,
const
float
x0,
const
float
y0,
const
HomTransform
*loc)
54
:
ProjectiveCam
(
CCDCalibration
(ax, ay, x0, y0), loc)
55
{
56
}
57
58
/** Copy constructor
59
* @param cp the CCDCam to copy
60
*/
61
CCDCam::CCDCam
(
const
CCDCam
& cp) :
ProjectiveCam
(cp)
62
{
63
}
64
65
66
/** Destructor.
67
*/
68
CCDCam::~CCDCam
()
69
{
70
}
71
72
}
// end namespace firevision
src
libs
fvmodels
camera
ccd_cam.cpp
Generated by
1.8.1.1