Navigation
API > API/Plugins > API/Plugins/OpenCVHelper
References
| Module | OpenCVHelper |
| Header | /Engine/Plugins/Runtime/OpenCV/Source/OpenCVHelper/Public/OpenCVHelper.h |
| Include | #include "OpenCVHelper.h" |
Syntax
class FOpenCVHelper
Functions
| Type | Name | Description | |
|---|---|---|---|
| double | ComputeReprojectionError
(
const TArray< FVector >& ObjectPoints, |
Project the 3D objects points to the 2D image plane represented by the input camera intrinsics and pose, and compute the reprojection error (euclidean distance) between the input image points and the reprojected points | |
| void | ConvertCoordinateSystem
(
FTransform& Transform, |
Converts in-place the coordinate system of the given FTransform by specifying the source axes in terms of the destination axes | |
| void | ConvertOpenCVToUnreal
(
FTransform& Transform |
Converts in-place an FTransform in OpenCV coordinates to Unreal coordinates | |
| FVector | ConvertOpenCVToUnreal
(
const FVector& Transform |
Converts an FTransform in OpenCV coordinates to Unreal coordinates | |
| void | ConvertUnrealToOpenCV
(
FTransform& Transform |
Converts in-place an FTransform in Unreal coordinates to OpenCV coordinates | |
| FVector | ConvertUnrealToOpenCV
(
const FVector& Transform |
Converts an FVector in Unreal coordinates to OpenCV coordinates | |
| bool | DrawArucoMarkers
(
const TArray< FArucoMarker >& Markers, |
Draw a debug view of the input aruco markers on top of the input texture | |
| bool | DrawCheckerboardCorners
(
const TArray< FVector2f >& Corners, |
Draw a debug view of the input checkerboard corners on top of the input texture | |
| bool | DrawCheckerboardCorners
(
const TArray< FVector2D >& Corners, |
Draw a debug view of the input checkerboard corners on top of the input texture | |
| bool | FitLine3D
(
const TArray< FVector >& InPoints, |
Find a 3D fit line that passes through the input points, as well as a point on that line | |
| bool | IdentifyArucoMarkers
(
TArray< FColor >& Image, |
Identify a set of aruco markers in the input image that belong to the input aruco dictionary, and output the marker IDs and the 2D coordinates of the 4 corners of each marker | |
| bool | IdentifyCheckerboard
(
TArray< FColor >& Image, |
Identify a checkerboard pattern in the input image with the given checkerboard dimensions (columns x rows), and output the 2D coordinates of the intersections between each checkerboard square | |
| bool | IdentifyCheckerboard
(
TArray< FColor >& Image, |
Identify a checkerboard pattern in a region of interest of the input image with the given checkerboard dimensions (columns x rows), and output the 2D coordinates of the intersections between each checkerboard square | |
| bool | ProjectPoints
(
const TArray< FVector >& ObjectPoints, |
Project the input object points to the 2D image plane defined by the input camera intrinsics and camera pose | |
| bool | ProjectPoints
(
const TArray< FVector >& ObjectPoints, |
Project the input object points to the 2D image plane defined by the input camera intrinsics and camera pose | |
| bool | SolvePnP
(
const TArray< FVector >& ObjectPoints, |
Compute the camera pose that minimizes the reprojection error of the input object points and image points | |
| const FVector & | UnitVectorFromAxisEnum
(
const EAxis Axis |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EAxis | Enumeration to specify any cartesian axis in positive or negative directions |
Constants
| Name | Description |
|---|---|
| UnitVectors | These axes must match the order in which they are declared in EAxis. |