gz/rendering/ogre2/Ogre2SegmentationCamera.hh
Go to the documentation of this file.
Definition: gz/rendering/base/BaseSegmentationCamera.hh:38
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:59
Segmentation camera used to label each pixel with a label id. Supports Semantic / Panoptic Segmentati...
Definition: gz/rendering/ogre2/Ogre2SegmentationCamera.hh:50
void LabelMapFromColoredBuffer(uint8_t *_labelBuffer) const override
Convert the colored map stored in the internal buffer to label IDs map, so users get both the colored...
virtual RenderTargetPtr RenderTarget() const override
Get a pointer to the render target.
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
virtual void PostRender() override
Preforms any necessary final rendering work. Once rendering is complete the camera will alert any lis...
Ogre2SegmentationCamera()
Constructor.
virtual ~Ogre2SegmentationCamera()
Destructor.
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
void SetBackgroundLabel(int _label) override
Set label for background & unlabeled items in the semantic map.
virtual void CreateSegmentationTexture() override
Create a texture which will hold the segmentation data.
virtual void Init() override
virtual void Render() override
Renders the current scene using this camera. This function assumes PreRender() has already been calle...
virtual void CreateRenderTexture()
Create render texture.
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.