Navigation
API > API/Plugins > API/Plugins/OpenCVHelper
| Name | FOpenCVHelper |
| Type | class |
| Header File | /Engine/Plugins/Runtime/OpenCV/Source/OpenCVHelper/Public/OpenCVHelper.h |
| Include Path | #include "OpenCVHelper.h" |
Syntax
class FOpenCVHelper
Enums
Public
| Name | Remarks |
|---|---|
| EAxis | Enumeration to specify any cartesian axis in positive or negative directions |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| UnitVectors | const TArray< FVector > | These axes must match the order in which they are declared in EAxis. | OpenCVHelper.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| 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 | OpenCVHelper.h | ||
| Converts in-place the coordinate system of the given FTransform by specifying the source axes in terms of the destination axes | OpenCVHelper.h | ||
static void ConvertOpenCVToUnreal
(
FTransform& Transform |
Converts in-place an FTransform in OpenCV coordinates to Unreal coordinates | OpenCVHelper.h | |
static FVector ConvertOpenCVToUnreal
(
const FVector& Transform |
Converts an FTransform in OpenCV coordinates to Unreal coordinates | OpenCVHelper.h | |
static void ConvertUnrealToOpenCV
(
FTransform& Transform |
Converts in-place an FTransform in Unreal coordinates to OpenCV coordinates | OpenCVHelper.h | |
static FVector ConvertUnrealToOpenCV
(
const FVector& Transform |
Converts an FVector in Unreal coordinates to OpenCV coordinates | OpenCVHelper.h | |
static bool DrawArucoMarkers
(
const TArray< FArucoMarker >& Markers, |
Draw a debug view of the input aruco markers on top of the input texture | OpenCVHelper.h | |
static bool DrawCheckerboardCorners
(
const TArray< FVector2f >& Corners, |
Draw a debug view of the input checkerboard corners on top of the input texture | OpenCVHelper.h | |
static bool DrawCheckerboardCorners
(
const TArray< FVector2D >& Corners, |
Draw a debug view of the input checkerboard corners on top of the input texture | OpenCVHelper.h | |
static 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 | OpenCVHelper.h | |
static 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 | OpenCVHelper.h | |
static 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 | OpenCVHelper.h | |
static 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 | OpenCVHelper.h | |
static 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 | OpenCVHelper.h | |
static 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 | OpenCVHelper.h | |
| Compute the camera pose that minimizes the reprojection error of the input object points and image points | OpenCVHelper.h | ||
static const FVector & UnitVectorFromAxisEnum
(
const EAxis Axis |
OpenCVHelper.h |