17 #ifndef GZ_RENDERING_SEGMENTATIONCAMERA_HH_
18 #define GZ_RENDERING_SEGMENTATIONCAMERA_HH_
23 #include <gz/common/Event.hh>
24 #include <gz/math/Color.hh>
45 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
58 public:
virtual void CreateSegmentationTexture() = 0;
64 public:
virtual uint8_t *SegmentationData()
const = 0;
72 ConnectNewSegmentationFrame(
73 std::function<
void(
const uint8_t *,
unsigned int,
unsigned int,
74 unsigned int,
const std::string &)> _subscriber) = 0;
87 public:
virtual void EnableColoredMap(
bool _enable) = 0;
91 public:
virtual bool IsColoredMap()
const = 0;
95 public:
virtual void SetBackgroundColor(
const math::Color &_color) = 0;
99 public:
virtual void SetBackgroundLabel(
int _label) = 0;
103 public:
virtual const math::Color &BackgroundColor()
const = 0;
107 public:
virtual int BackgroundLabel()
const = 0;
116 public:
virtual void LabelMapFromColoredBuffer(
117 uint8_t *_labelBuffer)
const = 0;