Handles camera's frame data. More...
#include <hfl_frame.h>
Public Member Functions | |
Pixel & | atPixel (Col x, Row y) |
Frame (uint16_t height, uint16_t width, uint16_t returns_size, uint16_t slices_size) | |
size_t | getHeight () const |
size_t | getSize () const |
size_t | getSlicesSize () const |
size_t | getWidth () const |
Public Attributes | |
std::string | id_ |
Frame ID. More... | |
uint16_t | intensity_bits_ |
Frame intensity bits. More... | |
uint16_t | intensity_publish_bits_ |
Frame intensity bits. More... | |
uint16_t | range_bits_ |
Frame intensity bits. More... | |
uint16_t | range_precision_bits_ |
Frame intensity bits. More... | |
Private Attributes | |
size_t | height_ |
Number of rows. More... | |
std::vector< std::vector< Pixel > > | pixels |
Pixel data array. More... | |
size_t | returns_size_ |
Number of returns per pixel. More... | |
size_t | slices_size_ |
Number of slices per pixel. More... | |
size_t | width_ |
Number of columns. More... | |
Handles camera's frame data.
Definition at line 55 of file hfl_frame.h.
hfl::Frame::Frame | ( | uint16_t | height, |
uint16_t | width, | ||
uint16_t | returns_size, | ||
uint16_t | slices_size | ||
) |
Frame initializator constructor
height | Frame number of rows |
width | Frame number of columns |
returns_size | Number of returns per pixel |
slices_size | Number of slices per pixel |
Definition at line 42 of file hfl_frame.cpp.
Returns Pixel data structure at locatio (y,x)
x | Column position |
y | Row position |
Definition at line 49 of file hfl_frame.cpp.
|
inline |
|
inline |
Returns frame size (height*width)
Definition at line 118 of file hfl_frame.h.
|
inline |
Returns frame size (height*width)
Definition at line 128 of file hfl_frame.h.
|
inline |
Returns frame number of columns
Definition at line 108 of file hfl_frame.h.
|
private |
Number of rows.
Definition at line 135 of file hfl_frame.h.
std::string hfl::Frame::id_ |
Frame ID.
Definition at line 59 of file hfl_frame.h.
uint16_t hfl::Frame::intensity_bits_ |
Frame intensity bits.
Definition at line 62 of file hfl_frame.h.
uint16_t hfl::Frame::intensity_publish_bits_ |
Frame intensity bits.
Definition at line 71 of file hfl_frame.h.
|
private |
Pixel data array.
Definition at line 147 of file hfl_frame.h.
uint16_t hfl::Frame::range_bits_ |
Frame intensity bits.
Definition at line 65 of file hfl_frame.h.
uint16_t hfl::Frame::range_precision_bits_ |
Frame intensity bits.
Definition at line 68 of file hfl_frame.h.
|
private |
Number of returns per pixel.
Definition at line 141 of file hfl_frame.h.
|
private |
Number of slices per pixel.
Definition at line 144 of file hfl_frame.h.
|
private |
Number of columns.
Definition at line 138 of file hfl_frame.h.