esp::gfx::DoubleSphereCameraShader class

Base classes

class CubeMapShaderBase

Constructors, destructors, conversion operators

DoubleSphereCameraShader(CubeMapShaderBase::Flags flags = { CubeMapShaderBase::Flag::ColorTexture}) explicit
~DoubleSphereCameraShader() defaulted override
deconstructor

Public functions

auto setFocalLength(Magnum::Vector2 focalLength) -> DoubleSphereCameraShader&
Set the focal length of the fisheye camera.
auto setPrincipalPointOffset(Magnum::Vector2 offset) -> DoubleSphereCameraShader&
Set the offset of the principal point of the fisheye camera.
auto setAlpha(float alpha) -> DoubleSphereCameraShader&
Set the alpha value in the "Double Sphere Camera" model. See details in: Vladyslav Usenko, Nikolaus Demmel and Daniel Cremers: The Double Sphere Camera Model, The International Conference on 3D Vision (3DV), 2018.
auto setXi(float xi) -> DoubleSphereCameraShader&
Set the Xi value in the "Double Sphere Camera" model. See details in: Vladyslav Usenko, Nikolaus Demmel and Daniel Cremers: The Double Sphere Camera Model, The International Conference on 3D Vision (3DV), 2018.

Protected variables

int focalLengthUniform_
int principalPointOffsetUniform_
int alphaUniform_
int xiUniform_

Function documentation

DoubleSphereCameraShader& esp::gfx::DoubleSphereCameraShader::setFocalLength(Magnum::Vector2 focalLength)

Set the focal length of the fisheye camera.

Parameters
focalLength the focal length x, y directions
Returns Reference to self (for method chaining)

DoubleSphereCameraShader& esp::gfx::DoubleSphereCameraShader::setPrincipalPointOffset(Magnum::Vector2 offset)

Set the offset of the principal point of the fisheye camera.

Parameters
offset the offset of the principal point in pixels
Returns Reference to self (for method chaining)

DoubleSphereCameraShader& esp::gfx::DoubleSphereCameraShader::setAlpha(float alpha)

Set the alpha value in the "Double Sphere Camera" model. See details in: Vladyslav Usenko, Nikolaus Demmel and Daniel Cremers: The Double Sphere Camera Model, The International Conference on 3D Vision (3DV), 2018.

Parameters
alpha the alpha value (0.0 <= alpha < 1.0)
Returns Reference to self (for method chaining)

DoubleSphereCameraShader& esp::gfx::DoubleSphereCameraShader::setXi(float xi)

Set the Xi value in the "Double Sphere Camera" model. See details in: Vladyslav Usenko, Nikolaus Demmel and Daniel Cremers: The Double Sphere Camera Model, The International Conference on 3D Vision (3DV), 2018.

Parameters
xi the Xi value
Returns Reference to self (for method chaining)