8#ifndef SE_DATA_COLOUR_HPP
9#define SE_DATA_COLOUR_HPP
30 std::uint8_t weight = 0;
53#include "impl/data_colour_impl.hpp"
Helper wrapper to allocate and de-allocate octants in the octree.
Definition bounded_vector.hpp:14
std::ostream & operator<<(std::ostream &os, const ColourData< Colour::Off >::Config &c)
Colour
Definition setup_util.hpp:19
Definition data_colour.hpp:20
void readYaml(const std::string &)
Definition data_colour.hpp:21
void readYaml(const std::string &yaml_file)
Reads the struct members from the "data" node of a YAML file.
bool update(const colour_t colour, const std::uint8_t max_weight)
Perform a weighted averge colour update using colour, while ensuring the weight doesn't exceed max_we...
colour_t colour
Definition data_colour.hpp:29
void setToMean(const BoundedVector< ColourData, 8 > &child_data)
Set to the mean of the data in child_data.
Definition data_colour.hpp:19
Definition config.hpp:105
A colour represented as a Red-Green-Blue tuple with 8-bits per channel.
Definition rgb.hpp:18