gz/rendering/base/BaseSegmentationCamera.hh
Definition: gz/rendering/base/BaseSegmentationCamera.hh:34
virtual int BackgroundLabel() const override
Get label for background & unlabeled items in the semantic map.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:191
STL class.
virtual void SetBackgroundLabel(int _label) override
Set label for background & unlabeled items in the semantic map.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:177
virtual void EnableColoredMap(bool _enable) override
Enable Color map mode to generate colored semantics.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:148
Poseable Segmentation camera used for rendering the scene graph. This camera is designed to produce s...
Definition: gz/rendering/SegmentationCamera.hh:51
uint8_t * segmentationData
The buffer that contains segmentation data.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:88
bool isColoredMap
Whether a colored map is being generated (true) or label ID map is being generated (false)
Definition: gz/rendering/base/BaseSegmentationCamera.hh:95
virtual bool IsColoredMap() const override
Check if color map mode is enabled.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:162
void LabelMapFromColoredBuffer(uint8_t *_labelBuffer) const override=0
Convert the colored map stored in the internal buffer to label IDs map, so users get both the colored...
math::Color backgroundColor
The color of objects that are considered background (i.e., objects that have no label)
Definition: gz/rendering/base/BaseSegmentationCamera.hh:99
virtual ignition::common::ConnectionPtr ConnectNewSegmentationFrame(std::function< void(const uint8_t *, unsigned int, unsigned int, unsigned int, const std::string &)> _subscriber) override
Connect to the new Segmentation image event.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:132
virtual void SetSegmentationType(SegmentationType _type) override
Set Segmentation Type.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:141
virtual ~BaseSegmentationCamera()
Destructor.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:113
@ ST_SEMANTIC
Pixels of same label from different items have the same color & id.
BaseSegmentationCamera()
Constructor.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:107
virtual void CreateSegmentationTexture() override=0
Create a texture which will hold the segmentation data.
SegmentationType type
The segmentation type.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:91
int backgroundLabel
The label of background objects.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:102
virtual SegmentationType Type() const override
Get Segmentation Type.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:155
virtual const math::Color & BackgroundColor() const override
Get color for background & unlabeled items in the colored map.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:184
virtual uint8_t * SegmentationData() const override
Get the segmentation image data. If the segmentation type is panoptic, the first two channels are the...
Definition: gz/rendering/base/BaseSegmentationCamera.hh:124
virtual void SetBackgroundColor(const math::Color &_color) override
Set color for background & unlabeled items in the colored map.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:169
Definition: gz/rendering/base/BaseCamera.hh:44
SegmentationType
Segmentation types for Semantic / Panpoptic segmentation.
Definition: gz/rendering/SegmentationCamera.hh:34