Fawkes API
Fawkes Development Version
rectinfo_lut_block.h
1
2
/***************************************************************************
3
* rectinfo_lut_block.h - Rectification info block for 16x16 LUT
4
*
5
* Created: Wed Oct 31 14:41:10 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_LUT_BLOCK_H_
25
#define __FIREVISION_FVUTILS_RECTIFICATION_RECTINFO_LUT_BLOCK_H_
26
27
#include <fvutils/rectification/rectinfo_block.h>
28
29
namespace
firevision
{
30
#if 0
/* just to make Emacs auto-indent happy */
31
}
32
#endif
33
34
class
RectificationLutInfoBlock
:
public
RectificationInfoBlock
35
{
36
public
:
37
RectificationLutInfoBlock
(uint16_t width, uint16_t height,
38
uint8_t
camera
);
39
RectificationLutInfoBlock
(
FireVisionDataFileBlock
*block);
40
41
void
set_mapping
(uint16_t x, uint16_t y,
42
uint16_t to_x, uint16_t to_y);
43
virtual
void
mapping
(uint16_t x, uint16_t y,
44
uint16_t *to_x, uint16_t *to_y);
45
46
uint16_t
pixel_width
();
47
uint16_t
pixel_height
();
48
49
rectinfo_lut_16x16_entry_t
*
lut_data
();
50
51
private
:
52
rectinfo_lut_16x16_block_header_t
*_lut_block_header;
53
rectinfo_lut_16x16_entry_t
*_lut_data;
54
55
};
56
57
}
// end namespace firevision
58
59
#endif
firevision::RectificationLutInfoBlock::pixel_width
uint16_t pixel_width()
Get width of the LUT.
Definition:
rectinfo_lut_block.cpp:126
firevision::RectificationLutInfoBlock
Recitification Lookup Table Block.
Definition:
rectinfo_lut_block.h:34
firevision::_rectinfo_lut_16x16_block_header_t
Block header for rectification LUTs wit 16-bit values.
Definition:
rectinfo.h:128
firevision::FireVisionDataFileBlock
FireVision File Format data block.
Definition:
fvfile_block.h:35
firevision::RectificationLutInfoBlock::RectificationLutInfoBlock
RectificationLutInfoBlock(uint16_t width, uint16_t height, uint8_t camera)
Constructor.
Definition:
rectinfo_lut_block.cpp:47
firevision
Definition:
vision_master.h:32
firevision::_rectinfo_lut_16x16_entry_t
Data type used to build a rectification LUT.
Definition:
rectinfo.h:142
firevision::RectificationLutInfoBlock::mapping
virtual void mapping(uint16_t x, uint16_t y, uint16_t *to_x, uint16_t *to_y)
Get mapping (to_x, to_y) for (x, y).
Definition:
rectinfo_lut_block.cpp:79
firevision::RectificationLutInfoBlock::pixel_height
uint16_t pixel_height()
Get height the LUT.
Definition:
rectinfo_lut_block.cpp:136
firevision::RectificationInfoBlock
Rectification info block.
Definition:
rectinfo_block.h:36
firevision::RectificationLutInfoBlock::set_mapping
void set_mapping(uint16_t x, uint16_t y, uint16_t to_x, uint16_t to_y)
Set mapping.
Definition:
rectinfo_lut_block.cpp:101
firevision::RectificationLutInfoBlock::lut_data
rectinfo_lut_16x16_entry_t * lut_data()
Get raw LUT data.
Definition:
rectinfo_lut_block.cpp:147
firevision::RectificationInfoBlock::camera
uint8_t camera() const
Get block camera identifier.
Definition:
rectinfo_block.cpp:120
src
libs
fvutils
rectification
rectinfo_lut_block.h
Generated by
1.8.13