gz/rendering/SegmentationCamera.hh
virtual void SetBackgroundLabel(int _label)=0
Set label for background & unlabeled items in the semantic map.
STL class.
@ ST_PANOPTIC
Pixels of same label from different items, have different color & id. 1 channel for label id & 2 chan...
Poseable Segmentation camera used for rendering the scene graph. This camera is designed to produce s...
Definition: gz/rendering/SegmentationCamera.hh:51
Posable camera used for rendering the scene graph.
Definition: gz/rendering/Camera.hh:49
virtual void SetBackgroundColor(const math::Color &_color)=0
Set color for background & unlabeled items in the colored map.
virtual ignition::common::ConnectionPtr ConnectNewSegmentationFrame(std::function< void(const uint8_t *, unsigned int, unsigned int, unsigned int, const std::string &)> _subscriber)=0
Connect to the new Segmentation image event.
virtual ~SegmentationCamera()
Destructor.
Definition: gz/rendering/SegmentationCamera.hh:55
virtual int BackgroundLabel() const =0
Get label for background & unlabeled items in the semantic map.
@ ST_SEMANTIC
Pixels of same label from different items have the same color & id.
virtual void CreateSegmentationTexture()=0
Create a texture which will hold the segmentation data.
virtual bool IsColoredMap() const =0
Check if color map mode is enabled.
virtual void EnableColoredMap(bool _enable)=0
Enable Color map mode to generate colored semantics.
virtual uint8_t * SegmentationData() const =0
Get the segmentation image data. If the segmentation type is panoptic, the first two channels are the...
SegmentationType
Segmentation types for Semantic / Panpoptic segmentation.
Definition: gz/rendering/SegmentationCamera.hh:34
virtual const math::Color & BackgroundColor() const =0
Get color for background & unlabeled items in the colored map.
virtual void SetSegmentationType(SegmentationType _type)=0
Set Segmentation Type.
virtual SegmentationType Type() const =0
Get Segmentation Type.
virtual void LabelMapFromColoredBuffer(uint8_t *_labelBuffer) const =0
Convert the colored map stored in the internal buffer to label IDs map, so users get both the colored...