gz/rendering/ogre/OgreDistortionPass.hh
Go to the documentation of this file.
Base distortion render pass.
Definition: gz/rendering/base/BaseDistortionPass.hh:36
Ogre implementation of the DistortionPass class.
Definition: gz/rendering/ogre/OgreDistortionPass.hh:46
void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
ignition::math::Vector2d DistortionMapValueClamped(int _x, int _y) const
get the distortion map value.
void CalculateAndApplyDistortionScale()
calculate the correct scale factor to "zoom" the render, cutting off black borders caused by distorti...
void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
void CreateRenderPass() override
Create the render pass using ogre compositor.
virtual ~OgreDistortionPass()
Destructor.
static ignition::math::Vector2d Distort(const ignition::math::Vector2d &_in, const ignition::math::Vector2d &_center, double _k1, double _k2, double _k3, double _p1, double _p2, unsigned int _width, double _f)
Apply distortion model using camera coordinates projection.