Ocean
|
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... | |
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).
|
protected |
Definition of a lookup table for 2D vectors.
|
inline |
Creates an invalid lookup object.
|
explicit |
Creates an lookup object for a given camera.
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())] |
|
inline |
Returns the undistorted image point for a given (distorted) image point (by application of a bilinear interpolation).
distortedImagePoint | The distorted image point for that the undistorted image point is returned |
|
inline |
Returns the undistorted image point for a given (distorted) image point (by application of a bicubic interpolation).
distortedImagePoint | The distorted image point for that the undistorted image point is returned |
|
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).
distortedImagePoint | The distorted image point for that the offset is returned |
|
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).
distortedImagePoint | The distorted image point for that the offset is returned |
|
protected |
The distortion lookup table.