CARLA
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
carla::image::CityScapesPalette Class Reference

#include <CityScapesPalette.h>

Static Public Member Functions

static constexpr auto GetColor (uint8_t tag)
 Return an RGB uint8_t array.
 
static constexpr auto GetNumberOfTags ()
 

Detailed Description

Definition at line 57 of file CityScapesPalette.h.

Member Function Documentation

◆ GetColor()

static constexpr auto carla::image::CityScapesPalette::GetColor ( uint8_t  tag)
inlinestaticconstexpr

Return an RGB uint8_t array.

Warning
It overflows if tag is greater than GetNumberOfTags().

Definition at line 68 of file CityScapesPalette.h.

References carla::image::detail::CITYSCAPES_PALETTE_MAP, and GetNumberOfTags().

Referenced by carla::image::ColorConverter::CityScapesPalette::operator()().

◆ GetNumberOfTags()

static constexpr auto carla::image::CityScapesPalette::GetNumberOfTags ( )
inlinestaticconstexpr

Definition at line 60 of file CityScapesPalette.h.

References carla::image::detail::CITYSCAPES_PALETTE_MAP.

Referenced by GetColor().


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