supereight
Namespaces | Functions | Variables
colour_utils.hpp File Reference
#include <Eigen/Dense>
#include <cstdint>
#include <vector>
#include "impl/colour_utils_impl.hpp"

Go to the source code of this file.

Namespaces

 se
 Helper wrapper to allocate and de-allocate octants in the octree.
 
 se::colours
 

Functions

static uint32_t se::pack_rgba (const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t a)
 Pack the individual RGBA channels into a single 32-bit unsigned integer. More...
 
static uint32_t se::pack_rgba (const Eigen::Vector4f &color)
 Pack a color stored in an Eigen vector into a single 32-bit unsigned integer. More...
 
static uint32_t se::pack_rgba (const Eigen::Vector3f &color)
 Pack a color stored in an Eigen vector into a single 32-bit unsigned integer. More...
 
static uint32_t se::pack_rgba (const Eigen::Vector4i &color)
 Pack a color stored in an Eigen vector into a single 32-bit unsigned integer. More...
 
static uint32_t se::pack_rgba (const Eigen::Vector3i &color)
 Pack a color stored in an Eigen vector into a single 32-bit unsigned integer. More...
 
static uint8_t se::r_from_rgba (const uint32_t rgba)
 Get the value of the red channel from a 32-bit packed RGBA value. More...
 
static uint8_t se::g_from_rgba (const uint32_t rgba)
 Get the value of the green channel from a 32-bit packed RGBA value. More...
 
static uint8_t se::b_from_rgba (const uint32_t rgba)
 Get the value of the blue channel from a 32-bit packed RGBA value. More...
 
static uint8_t se::a_from_rgba (const uint32_t rgba)
 Get the value of the alpha channel from a 32-bit packed RGBA value. More...
 
static uint32_t se::blend (const uint32_t rgba_1, const uint32_t rgba_2, const float alpha)
 Blend two RGBA colors based on the value of the blending parameter alpha. More...
 
static void se::rgb_to_rgba (const uint8_t *rgb, uint32_t *rgba, size_t num_pixels)
 
static void se::rgba_to_rgb (const uint32_t *rgba, uint8_t *rgb, size_t num_pixels)
 
void se::depth_to_rgba (uint32_t *depth_RGBA_image_data, const float *depth_image_data, const Eigen::Vector2i &depth_image_res, const float min_depth, const float max_depth)
 Convert a depth image to an RGBA image to allow visualizing it. More...
 

Variables

static const std::vector< Eigen::Vector3f, Eigen::aligned_allocator< Eigen::Vector3f > > se::colours::scale
 The colours used for the various integration scales. More...