OpenCV 5.0.0
Open Source Computer Vision
Loading...
Searching...
No Matches
Calib3d_hal_interface

Detailed Description

Note
Define your functions to override default implementations:
#undef hal_add8u
#define hal_add8u my_add8u

Classes

struct  cv_camera_intrinsics_pinhole_32f
 Camera intrinsics structure, see projectPoints() documentation for details. More...
struct  cv_camera_intrinsics_pinhole_64f
 Camera intrinsics structure, see projectPoints() documentation for details. More...

Functions

int hal_ni_imageMoments (const uchar *src_data, size_t src_step, int src_type, int width, int height, bool binary, double m[10])
 Calculates all of the moments up to the third order of a polygon or rasterized shape for image.
int hal_ni_polygonMoments (const uchar *src_data, size_t src_size, int src_type, double m[10])
 Calculates all of the moments up to the third order of a polygon of 2d points.
int hal_ni_project_points_pinhole32f (const float *src_data, size_t src_step, size_t src_size, float *dst_data, size_t dst_step, const float *rt_data, const cv_camera_intrinsics_pinhole_32f *intr_data)
 Project points from 3D world space to 2D screen space using rotation and translation matrix and camera intrinsic parameters.
int hal_ni_project_points_pinhole64f (const double *src_data, size_t src_step, size_t src_size, double *dst_data, size_t dst_step, const double *rt_data, const cv_camera_intrinsics_pinhole_64f *intr_data)
 Project points from 3D world space to 2D screen space using rotation and translation matrix and camera intrinsic parameters.

Function Documentation

◆ hal_ni_imageMoments()

int hal_ni_imageMoments ( const uchar * src_data,
size_t src_step,
int src_type,
int width,
int height,
bool binary,
double m[10] )
inline

#include <hal_replacement.hpp>

Calculates all of the moments up to the third order of a polygon or rasterized shape for image.

Parameters
src_dataSource image data
src_stepSource image step
src_typesource pints type
widthSource image width
heightSource image height
binaryIf it is true, all non-zero image pixels are treated as 1's
mOutput array of moments (10 values) in the following order: m00, m10, m01, m20, m11, m02, m30, m21, m12, m03.
See also
moments

◆ hal_ni_polygonMoments()

int hal_ni_polygonMoments ( const uchar * src_data,
size_t src_size,
int src_type,
double m[10] )
inline

#include <hal_replacement.hpp>

Calculates all of the moments up to the third order of a polygon of 2d points.

Parameters
src_dataSource points (Point 2x32f or 2x32s)
src_sizeSource points count
src_typesource pints type
mOutput array of moments (10 values) in the following order: m00, m10, m01, m20, m11, m02, m30, m21, m12, m03.
See also
moments

◆ hal_ni_project_points_pinhole32f()

int hal_ni_project_points_pinhole32f ( const float * src_data,
size_t src_step,
size_t src_size,
float * dst_data,
size_t dst_step,
const float * rt_data,
const cv_camera_intrinsics_pinhole_32f * intr_data )
inline

#include <hal_replacement.hpp>

Project points from 3D world space to 2D screen space using rotation and translation matrix and camera intrinsic parameters.

Parameters
src_dataPointer to 3D points array with coordinates interleaved as X, Y, Z, X, Y, Z,..
src_stepStep between consecutive 3D points
src_sizeAmount of points
dst_dataPointer to resulting projected 2D points with coordinates interleaved as u, v, u, v,..
dst_stepStep between consecutive projected 2D points
rt_dataPointer to 3x4 array containing rotation-then-translation matrix
intr_dataPointer to camera intrinsics structure

◆ hal_ni_project_points_pinhole64f()

int hal_ni_project_points_pinhole64f ( const double * src_data,
size_t src_step,
size_t src_size,
double * dst_data,
size_t dst_step,
const double * rt_data,
const cv_camera_intrinsics_pinhole_64f * intr_data )
inline

#include <hal_replacement.hpp>

Project points from 3D world space to 2D screen space using rotation and translation matrix and camera intrinsic parameters.

Parameters
src_dataPointer to 3D points array with coordinates interleaved as X, Y, Z, X, Y, Z,..
src_stepStep between consecutive 3D points
src_sizeAmount of points
dst_dataPointer to resulting projected 2D points with coordinates interleaved as u, v, u, v,..
dst_stepStep between consecutive projected 2D points
rt_dataPointer to 3x4 array containing rotation-then-translation matrix
intr_dataPointer to camera intrinsics structure