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
32namespace firevision {
33
34class RectificationInfoBlock;
35
37{
38public:
40 RectificationInfoFile(uint64_t cam_guid, const char *model);
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:
51 };
52
53 uint64_t guid();
54 const char *model();
55
57
59
60 virtual void read(const char *filename);
61
62private:
63 rectinfo_header_t *_header;
64 uint64_t _cam_guid;
65 char * _model;
66};
67
68} // end namespace firevision
69
70#endif
FireVision File Format for data files.
Definition: fvfile.h:36
Rectification info block.
Vector that is used for maintaining the rectification info blocks.
Definition: rectfile.h:48
Rectification Info File.
Definition: rectfile.h:37
virtual void read(const char *filename)
Read file.
Definition: rectfile.cpp:146
RectInfoBlockVector * rectinfo_blocks()
Get all rectification info blocks.
Definition: rectfile.cpp:128
const char * model()
Get the model of the camera.
Definition: rectfile.cpp:108
uint64_t guid()
Get the GUID of camera.
Definition: rectfile.cpp:99
void add_rectinfo_block(RectificationInfoBlock *block)
Add a rectification info block.
Definition: rectfile.cpp:119
Header for a rectification information file (rectinfo).
Definition: rectinfo.h:87