Public Member Functions | Public Attributes | Private Attributes | List of all members
hfl::Frame Class Reference

Handles camera's frame data. More...

#include <hfl_frame.h>

Public Member Functions

PixelatPixel (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...
 

Detailed Description

Handles camera's frame data.

Definition at line 55 of file hfl_frame.h.

Constructor & Destructor Documentation

hfl::Frame::Frame ( uint16_t  height,
uint16_t  width,
uint16_t  returns_size,
uint16_t  slices_size 
)

Frame initializator constructor

Parameters
heightFrame number of rows
widthFrame number of columns
returns_sizeNumber of returns per pixel
slices_sizeNumber of slices per pixel

Definition at line 42 of file hfl_frame.cpp.

Member Function Documentation

Pixel & hfl::Frame::atPixel ( Col  x,
Row  y 
)

Returns Pixel data structure at locatio (y,x)

Parameters
xColumn position
yRow position
Returns
Pixel data

Definition at line 49 of file hfl_frame.cpp.

size_t hfl::Frame::getHeight ( ) const
inline

Returns frame number of rows

Returns
size_t frame height

Definition at line 98 of file hfl_frame.h.

size_t hfl::Frame::getSize ( ) const
inline

Returns frame size (height*width)

Returns
size_t frame width

Definition at line 118 of file hfl_frame.h.

size_t hfl::Frame::getSlicesSize ( ) const
inline

Returns frame size (height*width)

Returns
size_t frame width

Definition at line 128 of file hfl_frame.h.

size_t hfl::Frame::getWidth ( ) const
inline

Returns frame number of columns

Returns
size_t frame width

Definition at line 108 of file hfl_frame.h.

Member Data Documentation

size_t hfl::Frame::height_
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.

std::vector<std::vector<Pixel> > hfl::Frame::pixels
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.

size_t hfl::Frame::returns_size_
private

Number of returns per pixel.

Definition at line 141 of file hfl_frame.h.

size_t hfl::Frame::slices_size_
private

Number of slices per pixel.

Definition at line 144 of file hfl_frame.h.

size_t hfl::Frame::width_
private

Number of columns.

Definition at line 138 of file hfl_frame.h.


The documentation for this class was generated from the following files:


hfl_driver
Author(s): Evan Flynn , Maxton Ginier , Gerardo Bravo , Moises Diaz
autogenerated on Sat Mar 20 2021 02:27:31