This class encapsulates a lookup table for camera distortion offsets allowing for faster un-distortion of image points (which is than an approximated position only).
More...
#include <PinholeCamera.h>
|
| | DistortionLookup () |
| | Creates an invalid lookup object.
|
| | DistortionLookup (const PinholeCameraT< T > &camera, const unsigned int binSize) |
| | Creates an lookup object for a given camera.
|
| VectorT2< T > | undistortedImagePoint (const VectorT2< T > &distortedImagePoint) const |
| | Returns the undistorted image point for a given (distorted) image point (by application of a bilinear interpolation).
|
| VectorT2< T > | undistortionOffset (const VectorT2< T > &distortedImagePoint) const |
| | Returns the offset that needs to be added to an distorted image point so that it would be undistorted (by application of a bilinear interpolation).
|
| VectorT2< T > | undistortedImagePointBicubic (const VectorT2< T > &distortedImagePoint) const |
| | Returns the undistorted image point for a given (distorted) image point (by application of a bicubic interpolation).
|
| VectorT2< T > | undistortionOffsetBicubic (const VectorT2< T > &distortedImagePoint) const |
| | Returns the offset that needs to be added to an distorted image point so that it would be undistorted (by application of a bicubic interpolation).
|
template<typename T>
class Ocean::PinholeCameraT< T >::DistortionLookup
This class encapsulates a lookup table for camera distortion offsets allowing for faster un-distortion of image points (which is than an approximated position only).
◆ LookupTable
Definition of a lookup table for 2D vectors.
◆ DistortionLookup() [1/2]
Creates an invalid lookup object.
◆ DistortionLookup() [2/2]
Creates an lookup object for a given camera.
- Parameters
-
| camera | The camera profile for that the lookup table is determined |
| binSize | The size of the lookup bins for the camera distortion, horizontal and vertical in pixel, with range [1u, min(camera.width(), camera.height())] |
◆ undistortedImagePoint()
Returns the undistorted image point for a given (distorted) image point (by application of a bilinear interpolation).
- Parameters
-
| distortedImagePoint | The distorted image point for that the undistorted image point is returned |
- Returns
- The approximation of the undistorted image point
◆ undistortedImagePointBicubic()
Returns the undistorted image point for a given (distorted) image point (by application of a bicubic interpolation).
- Parameters
-
| distortedImagePoint | The distorted image point for that the undistorted image point is returned |
- Returns
- The approximation of the undistorted image point
◆ undistortionOffset()
Returns the offset that needs to be added to an distorted image point so that it would be undistorted (by application of a bilinear interpolation).
- Parameters
-
| distortedImagePoint | The distorted image point for that the offset is returned |
- Returns
- The approximation of the offset
◆ undistortionOffsetBicubic()
Returns the offset that needs to be added to an distorted image point so that it would be undistorted (by application of a bicubic interpolation).
- Parameters
-
| distortedImagePoint | The distorted image point for that the offset is returned |
- Returns
- The approximation of the offset
◆ distortionLookupTable
The distortion lookup table.
The documentation for this class was generated from the following file: