Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::color_map Class Reference

#include <colorizer.h>

Public Member Functions

 color_map (std::map< float, float3 > map, int steps=4000)
 
 color_map (const std::vector< float3 > &values, int steps=4000)
 
 color_map ()
 
float3 get (float value) const
 
const std::vector< float3 > & get_cache () const
 
float max_key () const
 
float min_key () const
 

Private Member Functions

float3 calc (float value) const
 
void initialize (int steps)
 
float3 lerp (const float3 &a, const float3 &b, float t) const
 

Private Attributes

std::vector< float3_cache
 
float3_data
 
std::map< float, float3_map
 
float _max
 
float _min
 
size_t _size
 

Detailed Description

Definition at line 16 of file colorizer.h.

Constructor & Destructor Documentation

librealsense::color_map::color_map ( std::map< float, float3 map,
int  steps = 4000 
)
inline

Definition at line 19 of file colorizer.h.

librealsense::color_map::color_map ( const std::vector< float3 > &  values,
int  steps = 4000 
)
inline

Definition at line 24 of file colorizer.h.

librealsense::color_map::color_map ( )
inline

Definition at line 33 of file colorizer.h.

Member Function Documentation

float3 librealsense::color_map::calc ( float  value) const
inlineprivate

Definition at line 54 of file colorizer.h.

float3 librealsense::color_map::get ( float  value) const
inline

Definition at line 35 of file colorizer.h.

const std::vector<float3>& librealsense::color_map::get_cache ( ) const
inline

Definition at line 46 of file colorizer.h.

void librealsense::color_map::initialize ( int  steps)
inlineprivate

Definition at line 72 of file colorizer.h.

float3 librealsense::color_map::lerp ( const float3 a,
const float3 b,
float  t 
) const
inlineprivate

Definition at line 49 of file colorizer.h.

float librealsense::color_map::max_key ( ) const
inline

Definition at line 44 of file colorizer.h.

float librealsense::color_map::min_key ( ) const
inline

Definition at line 43 of file colorizer.h.

Member Data Documentation

std::vector<float3> librealsense::color_map::_cache
private

Definition at line 93 of file colorizer.h.

float3* librealsense::color_map::_data
private

Definition at line 95 of file colorizer.h.

std::map<float, float3> librealsense::color_map::_map
private

Definition at line 92 of file colorizer.h.

float librealsense::color_map::_max
private

Definition at line 94 of file colorizer.h.

float librealsense::color_map::_min
private

Definition at line 94 of file colorizer.h.

size_t librealsense::color_map::_size
private

Definition at line 95 of file colorizer.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:37