Fawkes API
Fawkes Development Version
rectfile.h
1
2
/***************************************************************************
3
* rectfile.h - Rectification info file
4
*
5
* Created: Wed Oct 31 11:33:19 2007
6
* Copyright 2007 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#ifndef _FIREVISION_FVUTILS_RECTIFICATION_RECTFILE_H_
25
#define _FIREVISION_FVUTILS_RECTIFICATION_RECTFILE_H_
26
27
#include <fvutils/fileformat/fvfile.h>
28
#include <fvutils/rectification/rectinfo.h>
29
30
#include <vector>
31
32
namespace
firevision {
33
34
class
RectificationInfoBlock;
35
36
class
RectificationInfoFile :
public
FireVisionDataFile
37
{
38
public
:
39
RectificationInfoFile
();
40
RectificationInfoFile
(uint64_t cam_guid,
const
char
*
model
);
41
~RectificationInfoFile
();
42
43
/** Vector that is used for maintaining the rectification info blocks.
44
* For instance use RectificationInfoFile::RectInfoBlockVector::iterator as
45
* iterator to go through the blocks returned by blocks().
46
*/
47
class
RectInfoBlockVector
:
public
std::vector<RectificationInfoBlock *>
48
{
49
public
:
50
~
RectInfoBlockVector
();
51
};
52
53
uint64_t
guid
();
54
const
char
*
model
();
55
56
void
add_rectinfo_block
(
RectificationInfoBlock
*block);
57
58
RectInfoBlockVector
*
rectinfo_blocks
();
59
60
virtual
void
read
(
const
char
*filename);
61
62
private
:
63
rectinfo_header_t
*_header;
64
uint64_t _cam_guid;
65
char
* _model;
66
};
67
68
}
// end namespace firevision
69
70
#endif
firevision::RectificationInfoFile::RectificationInfoFile
RectificationInfoFile()
Constructor.
Definition:
rectfile.cpp:81
firevision::RectificationInfoFile::~RectificationInfoFile
~RectificationInfoFile()
Destructor.
Definition:
rectfile.cpp:96
firevision::RectificationInfoFile::read
virtual void read(const char *filename)
Read file.
Definition:
rectfile.cpp:152
firevision::_rectinfo_header_t
Header for a rectification information file (rectinfo).
Definition:
rectinfo.h:86
firevision::RectificationInfoBlock
Definition:
rectinfo_block.h:39
firevision::RectificationInfoFile::add_rectinfo_block
void add_rectinfo_block(RectificationInfoBlock *block)
Add a rectification info block.
Definition:
rectfile.cpp:125
firevision::RectificationInfoFile::RectInfoBlockVector
Vector that is used for maintaining the rectification info blocks.
Definition:
rectfile.h:53
firevision::RectificationInfoFile::rectinfo_blocks
RectInfoBlockVector * rectinfo_blocks()
Get all rectification info blocks.
Definition:
rectfile.cpp:134
firevision::RectificationInfoFile::model
const char * model()
Get the model of the camera.
Definition:
rectfile.cpp:114
firevision::RectificationInfoFile::guid
uint64_t guid()
Get the GUID of camera.
Definition:
rectfile.cpp:105
src
libs
fvutils
rectification
rectfile.h
Generated by
1.8.17