RectificationLutInfoBlock Class Reference
Recitification Lookup Table Block. More...
#include <fvutils/rectification/rectinfo_lut_block.h>

Public Member Functions | |
| RectificationLutInfoBlock (uint16_t width, uint16_t height, uint8_t camera) | |
| Constructor. | |
| RectificationLutInfoBlock (FireVisionDataFileBlock *block) | |
| Copy Constructor. | |
| void | set_mapping (uint16_t x, uint16_t y, uint16_t to_x, uint16_t to_y) |
| Set 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). | |
| uint16_t | pixel_width () |
| Get width of the LUT. | |
| uint16_t | pixel_height () |
| Get height the LUT. | |
| rectinfo_lut_16x16_entry_t * | lut_data () |
| Get raw LUT data. | |
Detailed Description
Recitification Lookup Table Block.This class defines a rectification lookup table info block that can be used to define a LUT that maps rectified to unrectified pixels.
Definition at line 29 of file rectinfo_lut_block.h.
Constructor & Destructor Documentation
| RectificationLutInfoBlock::RectificationLutInfoBlock | ( | uint16_t | width, | |
| uint16_t | height, | |||
| uint8_t | camera | |||
| ) |
Constructor.
- Parameters:
-
width width of the image height height of the image camera camera identifier, see rectinfo_camera_t
Definition at line 42 of file rectinfo_lut_block.cpp.
References FireVisionDataFileBlock::_data, _rectinfo_lut_16x16_block_header_t::height, and _rectinfo_lut_16x16_block_header_t::width.
| RectificationLutInfoBlock::RectificationLutInfoBlock | ( | FireVisionDataFileBlock * | block | ) |
Copy Constructor.
It is assumed that the block actually is a rectification LUT info block. Check that before calling this method.
- Parameters:
-
block block to copy
Definition at line 64 of file rectinfo_lut_block.cpp.
References FireVisionDataFileBlock::_data.
Member Function Documentation
| rectinfo_lut_16x16_entry_t * RectificationLutInfoBlock::lut_data | ( | ) |
Get raw LUT data.
Use this to access the LUT.
- Returns:
- pointer to raw LUT data
Definition at line 142 of file rectinfo_lut_block.cpp.
Referenced by FilterRectify::apply().
| void RectificationLutInfoBlock::mapping | ( | uint16_t | x, | |
| uint16_t | y, | |||
| uint16_t * | to_x, | |||
| uint16_t * | to_y | |||
| ) | [virtual] |
Get mapping (to_x, to_y) for (x, y).
This can be used as a general method to access the RectificationInfoBlock mapping. For many models there may be a better (faster) way to access the mapping information. It performance matters (and it most probably will) exploit this and use the provided shortcut.
- Parameters:
-
x X pixel coordinate to get mapping for y Y pixel coordinate to get mapping for to_x Upon return contains the X pixel coordinate of the unrectified image to_y Upon return contains the Y pixel coordinate of the unrectified image
Implements RectificationInfoBlock.
Definition at line 74 of file rectinfo_lut_block.cpp.
References _rectinfo_lut_16x16_block_header_t::height, _rectinfo_lut_16x16_block_header_t::width, _rectinfo_lut_16x16_entry_t::x, and _rectinfo_lut_16x16_entry_t::y.
Referenced by TriclopsStereoProcessor::verify_rectification_lut().
| uint16_t RectificationLutInfoBlock::pixel_height | ( | ) |
Get height the LUT.
- Returns:
- height of LUT.
Definition at line 131 of file rectinfo_lut_block.cpp.
References _rectinfo_lut_16x16_block_header_t::height.
Referenced by FilterRectify::apply().
| uint16_t RectificationLutInfoBlock::pixel_width | ( | ) |
Get width of the LUT.
- Returns:
- width of LUT.
Definition at line 121 of file rectinfo_lut_block.cpp.
References _rectinfo_lut_16x16_block_header_t::width.
Referenced by FilterRectify::apply().
| void RectificationLutInfoBlock::set_mapping | ( | uint16_t | x, | |
| uint16_t | y, | |||
| uint16_t | to_x, | |||
| uint16_t | to_y | |||
| ) |
Set mapping.
- Parameters:
-
x X pixel coordinate to get mapping for y Y pixel coordinate to get mapping for to_x X pixel coordinate of the unrectified image to_y Y pixel coordinate of the unrectified image
Definition at line 96 of file rectinfo_lut_block.cpp.
References _rectinfo_lut_16x16_block_header_t::height, _rectinfo_lut_16x16_block_header_t::width, _rectinfo_lut_16x16_entry_t::x, and _rectinfo_lut_16x16_entry_t::y.
Referenced by TriclopsStereoProcessor::generate_rectification_lut().
The documentation for this class was generated from the following files:
- src/firevision/fvutils/rectification/rectinfo_lut_block.h
- src/firevision/fvutils/rectification/rectinfo_lut_block.cpp

