AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
LensDistortion.h
Go to the documentation of this file.
1/*
2Copyright 2007-2026. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16#pragma once
17#include <agxSensor/export.h>
18
20
21#include <agx/Referenced.h>
22#include <agx/Vec2.h>
23
24namespace agxSensor
25{
26 class Camera;
27 class CameraLens;
28 struct CameraBackend;
29
31
36 : public agx::Referenced
38 {
39 public:
43 LensDistortion() = default;
44
50 virtual agx::Vec2 getDistortedPoint(const agx::Vec2& point) const = 0;
51
58 virtual agx::Vec2 getUndistortedPoint(const agx::Vec2& distortedPoint) const = 0;
59
61
62 public:
63 virtual void synchronizeParameters(Camera* camera, CameraLens* lens, const CameraBackend& backend) = 0;
64 virtual void resetSynchronizationState() = 0;
65
67
69 };
70}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Definition: Serializable.h:221
#define AGXSENSOR_EXPORT
Base type for a camera lens systems attached to a camera.
Definition: CameraLens.h:37
Camera instance class defined by a frame/transform and a model.
Base type for a lens distortion model specification.
LensDistortion()=default
Default constructor.
virtual agx::Vec2 getUndistortedPoint(const agx::Vec2 &distortedPoint) const =0
Calculate the undistorted point corresponding to the given distorted point in the normalized projecti...
virtual agx::Vec2 getDistortedPoint(const agx::Vec2 &point) const =0
Calculate the distorted point corresponding to the given point in the normalized projection plane.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
Base class providing referencing counted objects.
Definition: Referenced.h:120
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...