Ocean
Ocean::PinholeCameraT< T >::DistortionLookup Class Reference

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...

Public Member Functions

 DistortionLookup ()
 Creates an invalid lookup object. More...
 
 DistortionLookup (const PinholeCameraT< T > &camera, const unsigned int binSize)
 Creates an lookup object for a given camera. More...
 
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). More...
 
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). More...
 
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). More...
 
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). More...
 

Protected Types

typedef LookupCenter2< VectorT2< T >, T > LookupTable
 Definition of a lookup table for 2D vectors. More...
 

Protected Attributes

LookupTable distortionLookupTable
 The distortion lookup table. More...
 

Detailed Description

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).

Member Typedef Documentation

◆ LookupTable

template<typename T >
typedef LookupCenter2<VectorT2<T>, T> Ocean::PinholeCameraT< T >::DistortionLookup::LookupTable
protected

Definition of a lookup table for 2D vectors.

Constructor & Destructor Documentation

◆ DistortionLookup() [1/2]

template<typename T >
Ocean::PinholeCameraT< T >::DistortionLookup::DistortionLookup
inline

Creates an invalid lookup object.

◆ DistortionLookup() [2/2]

template<typename T >
Ocean::PinholeCameraT< T >::DistortionLookup::DistortionLookup ( const PinholeCameraT< T > &  camera,
const unsigned int  binSize 
)
explicit

Creates an lookup object for a given camera.

Parameters
cameraThe camera profile for that the lookup table is determined
binSizeThe size of the lookup bins for the camera distortion, horizontal and vertical in pixel, with range [1u, min(camera.width(), camera.height())]

Member Function Documentation

◆ undistortedImagePoint()

template<typename T >
VectorT2< T > Ocean::PinholeCameraT< T >::DistortionLookup::undistortedImagePoint ( const VectorT2< T > &  distortedImagePoint) const
inline

Returns the undistorted image point for a given (distorted) image point (by application of a bilinear interpolation).

Parameters
distortedImagePointThe distorted image point for that the undistorted image point is returned
Returns
The approximation of the undistorted image point

◆ undistortedImagePointBicubic()

template<typename T >
VectorT2< T > Ocean::PinholeCameraT< T >::DistortionLookup::undistortedImagePointBicubic ( const VectorT2< T > &  distortedImagePoint) const
inline

Returns the undistorted image point for a given (distorted) image point (by application of a bicubic interpolation).

Parameters
distortedImagePointThe distorted image point for that the undistorted image point is returned
Returns
The approximation of the undistorted image point

◆ undistortionOffset()

template<typename T >
VectorT2< T > Ocean::PinholeCameraT< T >::DistortionLookup::undistortionOffset ( const VectorT2< T > &  distortedImagePoint) const
inline

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
distortedImagePointThe distorted image point for that the offset is returned
Returns
The approximation of the offset

◆ undistortionOffsetBicubic()

template<typename T >
VectorT2< T > Ocean::PinholeCameraT< T >::DistortionLookup::undistortionOffsetBicubic ( const VectorT2< T > &  distortedImagePoint) const
inline

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
distortedImagePointThe distorted image point for that the offset is returned
Returns
The approximation of the offset

Field Documentation

◆ distortionLookupTable

template<typename T >
LookupTable Ocean::PinholeCameraT< T >::DistortionLookup::distortionLookupTable
protected

The distortion lookup table.


The documentation for this class was generated from the following file: