Navigation
API > API/Plugins > API/Plugins/OpenCVLensDistortion > API/Plugins/OpenCVLensDistortion/FOpenCVLensDistortionParameters
References
| Module | OpenCVLensDistortion |
| Header | /Engine/Plugins/Compositing/OpenCVLensDistortion/Source/OpenCVLensDistortion/Public/OpenCVLensDistortionParameters.h |
| Include | #include "OpenCVLensDistortionParameters.h" |
| Source | /Engine/Plugins/Compositing/OpenCVLensDistortion/Source/OpenCVLensDistortion/Private/OpenCVLensDistortionParameters.cpp |
UTexture2D &42; CreateUndistortUVDisplacementMap
&40;
const FIntPoint & InImageSize,
const float InCroppingFactor,
FOpenCVCameraViewInfo & OutCameraViewInfo
&41; const
Remarks
Creates a texture containing a DisplacementMap in the Red and the Green channel for undistorting a camera image. This call can take quite some time to process depending on the resolution.
Parameters
| Name | Description |
|---|---|
| InImageSize | The size of the camera image to be undistorted in pixels. Scaled down resolution will have an impact. |
| InCroppingFactor | One means OpenCV will attempt to crop out all empty pixels resulting from the process (essentially zooming the image). Zero will keep all pixels. |
| OutCameraViewInfo | Information computed by OpenCV about the undistorted space. Can be used with SceneCapture to adjust FOV. |