Fawkes API
Fawkes Development Version
rectinfo_block.h
1
2
/***************************************************************************
3
* rectinfo_block.h - Rectification info block encapsulation
4
*
5
* Created: Wed Oct 31 14:26:34 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_RECTINFO_BLOCK_H_
25
#define _FIREVISION_FVUTILS_RECTIFICATION_RECTINFO_BLOCK_H_
26
27
#include <fvutils/fileformat/fvfile_block.h>
28
#include <fvutils/rectification/rectinfo.h>
29
#include <sys/types.h>
30
31
namespace
firevision {
32
33
class
RectificationInfoBlock :
public
FireVisionDataFileBlock
34
{
35
public
:
36
RectificationInfoBlock
(uint8_t block_type, uint8_t
camera
,
size_t
block_size
);
37
RectificationInfoBlock
(
FireVisionDataFileBlock
*block);
38
virtual
~RectificationInfoBlock
();
39
40
uint8_t
camera
()
const
;
41
42
virtual
void
mapping
(uint16_t x, uint16_t y, uint16_t *to_x, uint16_t *to_y) = 0;
43
44
protected
:
45
rectinfo_block_header_t
*
_block_header
;
46
};
47
48
}
// end namespace firevision
49
50
#endif
firevision::_rectinfo_block_header_t
The per-image rectification info block header.
Definition:
rectinfo.h:108
firevision::FireVisionDataFileBlock::block_size
size_t block_size() const
Size of blocks.
Definition:
fvfile_block.cpp:203
firevision::RectificationInfoBlock::mapping
virtual void mapping(uint16_t x, uint16_t y, uint16_t *to_x, uint16_t *to_y)=0
firevision::RectificationInfoBlock::camera
uint8_t camera() const
Get block camera identifier.
Definition:
rectinfo_block.cpp:119
firevision::RectificationInfoBlock::~RectificationInfoBlock
virtual ~RectificationInfoBlock()
Destructor.
Definition:
rectinfo_block.cpp:109
firevision::RectificationInfoBlock::RectificationInfoBlock
RectificationInfoBlock(uint8_t block_type, uint8_t camera, size_t block_size)
Recommended constructor.
Definition:
rectinfo_block.cpp:78
firevision::RectificationInfoBlock::_block_header
rectinfo_block_header_t * _block_header
Definition:
rectinfo_block.h:57
firevision::FireVisionDataFileBlock::FireVisionDataFileBlock
FireVisionDataFileBlock(unsigned int type, size_t data_size, void *spec_header, size_t spec_header_size)
Constructor.
Definition:
fvfile_block.cpp:61
src
libs
fvutils
rectification
rectinfo_block.h
Generated by
1.8.17