Go to the documentation of this file.
18 #ifndef IGNITION_RENDERING_OGRE2_OGRE2SEGMENTATIONCAMERA_HH_
19 #define IGNITION_RENDERING_OGRE2_OGRE2SEGMENTATIONCAMERA_HH_
30 #include <ignition/common/Console.hh>
31 #include <ignition/common/Event.hh>
41 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
44 class Ogre2SegmentationCameraPrivate;
58 public:
virtual void Init()
override;
61 public:
virtual void Destroy()
override;
64 public:
virtual void PreRender()
override;
67 public:
virtual void PostRender()
override;
71 ConnectNewSegmentationFrame(
72 std::function<
void(
const uint8_t *,
unsigned int,
unsigned int,
73 unsigned int,
const std::string &)> _subscriber)
override;
76 public:
virtual void Render()
override;
83 public:
void SetBackgroundLabel(
int _label)
override;
86 public:
void LabelMapFromColoredBuffer(
87 uint8_t * _labelBuffer)
const override;
90 protected:
void CreateCamera();
93 protected:
virtual void CreateRenderTexture();
96 protected:
virtual void CreateSegmentationTexture()
override;
99 protected: Ogre::Camera *ogreCamera =
nullptr;
Definition: gz/rendering/base/BaseSegmentationCamera.hh:34
Segmentation camera used to label each pixel with a label id. Supports Semantic / Panoptic Segmentati...
Definition: gz/rendering/ogre2/Ogre2SegmentationCamera.hh:48
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:57
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37