OpenCV 5.0.0-pre
Open Source Computer Vision
|
Classes | |
struct | cvhalDFT |
Dummy structure storing DFT/DCT context. More... | |
Functions | |
int | hal_ni_dct2D (cvhalDFT *context, const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step) |
int | hal_ni_dctFree2D (cvhalDFT *context) |
int | hal_ni_dctInit2D (cvhalDFT **context, int width, int height, int depth, int flags) |
int | hal_ni_dft1D (cvhalDFT *context, const uchar *src, uchar *dst) |
int | hal_ni_dft2D (cvhalDFT *context, const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step) |
int | hal_ni_dftFree1D (cvhalDFT *context) |
int | hal_ni_dftFree2D (cvhalDFT *context) |
int | hal_ni_dftInit1D (cvhalDFT **context, int len, int count, int depth, int flags, bool *needBuffer) |
int | hal_ni_dftInit2D (cvhalDFT **context, int width, int height, int depth, int src_channels, int dst_channels, int flags, int nonzero_rows) |
int | hal_ni_dotProduct (const uchar *a_data, size_t a_step, const uchar *b_data, size_t b_step, int width, int height, int type, double *dot_val) |
calculates dot product of two vectors (represented as 2d images) | |
int | hal_ni_flip (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int flip_mode) |
hal_flip | |
int | hal_ni_meanStdDev (const uchar *src_data, size_t src_step, int width, int height, int src_type, double *mean_val, double *stddev_val, uchar *mask, size_t mask_step) |
calculates the mean and the standard deviation of array elements independently for each channel | |
int | hal_ni_minMaxIdx (const uchar *src_data, size_t src_step, int width, int height, int depth, double *minVal, double *maxVal, int *minIdx, int *maxIdx, uchar *mask) |
Finds the global minimum and maximum in an array. | |
int | hal_ni_rotate90 (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int angle) |
rotate90 | |
int | hal_ni_transpose2d (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int src_width, int src_height, int element_size) |
Transpose2d. | |
Data types | |
primitive types
| |
typedef int8_t | schar |
typedef uint8_t | uchar |
typedef uint16_t | ushort |
typedef uint32_t | uint |
typedef int64_t | int64 |
typedef uint64_t | uint64 |
typedef int16_t | cv_hal_f16 |
typedef int16_t | cv_hal_bf16 |
#define | CV_BIG_INT(n) |
#define | CV_BIG_UINT(n) |
Return codes | |
#define | CV_HAL_ERROR_OK 0 |
#define | CV_HAL_ERROR_NOT_IMPLEMENTED 1 |
#define | CV_HAL_ERROR_UNKNOWN -1 |
Comparison operation | |
| |
#define | CV_HAL_CMP_EQ 0 |
#define | CV_HAL_CMP_GT 1 |
#define | CV_HAL_CMP_GE 2 |
#define | CV_HAL_CMP_LT 3 |
#define | CV_HAL_CMP_LE 4 |
#define | CV_HAL_CMP_NE 5 |
Border processing modes | |
| |
#define | CV_HAL_BORDER_CONSTANT 0 |
#define | CV_HAL_BORDER_REPLICATE 1 |
#define | CV_HAL_BORDER_REFLECT 2 |
#define | CV_HAL_BORDER_WRAP 3 |
#define | CV_HAL_BORDER_REFLECT_101 4 |
#define | CV_HAL_BORDER_TRANSPARENT 5 |
#define | CV_HAL_BORDER_ISOLATED 16 |
DFT flags | |
#define | CV_HAL_DFT_INVERSE 1 |
#define | CV_HAL_DFT_SCALE 2 |
#define | CV_HAL_DFT_ROWS 4 |
#define | CV_HAL_DFT_COMPLEX_OUTPUT 16 |
#define | CV_HAL_DFT_REAL_OUTPUT 32 |
#define | CV_HAL_DFT_TWO_STAGE 64 |
#define | CV_HAL_DFT_STAGE_COLS 128 |
#define | CV_HAL_DFT_IS_CONTINUOUS 512 |
#define | CV_HAL_DFT_IS_INPLACE 1024 |
SVD flags | |
#define | CV_HAL_SVD_NO_UV 1 |
#define | CV_HAL_SVD_SHORT_UV 2 |
#define | CV_HAL_SVD_MODIFY_A 4 |
#define | CV_HAL_SVD_FULL_UV 8 |
Gemm flags | |
#define | CV_HAL_GEMM_1_T 1 |
#define | CV_HAL_GEMM_2_T 2 |
#define | CV_HAL_GEMM_3_T 4 |
#define CV_16BF 8 |
#include <opencv2/core/hal/interface.h>
#define CV_16BFC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16BFC1 CV_MAKETYPE(CV_16BF,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16BFC2 CV_MAKETYPE(CV_16BF,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16BFC3 CV_MAKETYPE(CV_16BF,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16BFC4 CV_MAKETYPE(CV_16BF,4) |
#include <opencv2/core/hal/interface.h>
#define CV_16F 7 |
#include <opencv2/core/hal/interface.h>
#define CV_16FC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC1 CV_MAKETYPE(CV_16F,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC2 CV_MAKETYPE(CV_16F,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC3 CV_MAKETYPE(CV_16F,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC4 CV_MAKETYPE(CV_16F,4) |
#include <opencv2/core/hal/interface.h>
#define CV_16S 3 |
#define CV_16SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC1 CV_MAKETYPE(CV_16S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC2 CV_MAKETYPE(CV_16S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC3 CV_MAKETYPE(CV_16S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC4 CV_MAKETYPE(CV_16S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_16U 2 |
#include <opencv2/core/hal/interface.h>
#define CV_16UC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC1 CV_MAKETYPE(CV_16U,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC2 CV_MAKETYPE(CV_16U,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC3 CV_MAKETYPE(CV_16U,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC4 CV_MAKETYPE(CV_16U,4) |
#include <opencv2/core/hal/interface.h>
#define CV_32F 5 |
#define CV_32FC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_32FC1 CV_MAKETYPE(CV_32F,1) |
#define CV_32FC2 CV_MAKETYPE(CV_32F,2) |
#include <opencv2/core/hal/interface.h>
#define CV_32FC3 CV_MAKETYPE(CV_32F,3) |
#include <opencv2/core/hal/interface.h>
#define CV_32FC4 CV_MAKETYPE(CV_32F,4) |
#include <opencv2/core/hal/interface.h>
#define CV_32S 4 |
#define CV_32SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC1 CV_MAKETYPE(CV_32S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC2 CV_MAKETYPE(CV_32S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC3 CV_MAKETYPE(CV_32S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC4 CV_MAKETYPE(CV_32S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_32U 12 |
#include <opencv2/core/hal/interface.h>
#define CV_32UC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_32UC1 CV_MAKETYPE(CV_32U,1) |
#include <opencv2/core/hal/interface.h>
#define CV_32UC2 CV_MAKETYPE(CV_32U,2) |
#include <opencv2/core/hal/interface.h>
#define CV_32UC3 CV_MAKETYPE(CV_32U,3) |
#include <opencv2/core/hal/interface.h>
#define CV_32UC4 CV_MAKETYPE(CV_32U,4) |
#include <opencv2/core/hal/interface.h>
#define CV_64F 6 |
#include <opencv2/core/hal/interface.h>
#define CV_64FC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC1 CV_MAKETYPE(CV_64F,1) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC2 CV_MAKETYPE(CV_64F,2) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC3 CV_MAKETYPE(CV_64F,3) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC4 CV_MAKETYPE(CV_64F,4) |
#include <opencv2/core/hal/interface.h>
#define CV_64S 11 |
#include <opencv2/core/hal/interface.h>
#define CV_64SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_64SC1 CV_MAKETYPE(CV_64S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_64SC2 CV_MAKETYPE(CV_64S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_64SC3 CV_MAKETYPE(CV_64S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_64SC4 CV_MAKETYPE(CV_64S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_64U 10 |
#include <opencv2/core/hal/interface.h>
#define CV_64UC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_64UC1 CV_MAKETYPE(CV_64U,1) |
#include <opencv2/core/hal/interface.h>
#define CV_64UC2 CV_MAKETYPE(CV_64U,2) |
#include <opencv2/core/hal/interface.h>
#define CV_64UC3 CV_MAKETYPE(CV_64U,3) |
#include <opencv2/core/hal/interface.h>
#define CV_64UC4 CV_MAKETYPE(CV_64U,4) |
#include <opencv2/core/hal/interface.h>
#define CV_8S 1 |
#include <opencv2/core/hal/interface.h>
#define CV_8SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC1 CV_MAKETYPE(CV_8S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC2 CV_MAKETYPE(CV_8S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC3 CV_MAKETYPE(CV_8S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC4 CV_MAKETYPE(CV_8S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_8U 0 |
#define CV_8UC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC1 CV_MAKETYPE(CV_8U,1) |
#define CV_8UC2 CV_MAKETYPE(CV_8U,2) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC3 CV_MAKETYPE(CV_8U,3) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC4 CV_MAKETYPE(CV_8U,4) |
#include <opencv2/core/hal/interface.h>
#define CV_BIG_INT | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_BIG_UINT | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_Bool 9 |
#include <opencv2/core/hal/interface.h>
#define CV_BoolC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_BoolC1 CV_MAKETYPE(CV_Bool,1) |
#include <opencv2/core/hal/interface.h>
#define CV_BoolC2 CV_MAKETYPE(CV_Bool,2) |
#include <opencv2/core/hal/interface.h>
#define CV_BoolC3 CV_MAKETYPE(CV_Bool,3) |
#include <opencv2/core/hal/interface.h>
#define CV_BoolC4 CV_MAKETYPE(CV_Bool,4) |
#include <opencv2/core/hal/interface.h>
#define CV_CN_MAX 128 |
#include <opencv2/core/hal/interface.h>
#define CV_CN_SHIFT 5 |
#include <opencv2/core/hal/interface.h>
#define CV_DEPTH_CURR_MAX 13 |
#include <opencv2/core/hal/interface.h>
#define CV_DEPTH_MAX (1 << CV_CN_SHIFT) |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_CONSTANT 0 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_ISOLATED 16 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_REFLECT 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_REFLECT_101 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_REPLICATE 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_TRANSPARENT 5 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_WRAP 3 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_EQ 0 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_GE 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_GT 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_LE 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_LT 3 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_NE 5 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_COMPLEX_OUTPUT 16 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_INVERSE 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_IS_CONTINUOUS 512 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_IS_INPLACE 1024 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_REAL_OUTPUT 32 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_ROWS 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_SCALE 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_STAGE_COLS 128 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_TWO_STAGE 64 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_ERROR_NOT_IMPLEMENTED 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_ERROR_OK 0 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_ERROR_UNKNOWN -1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_GEMM_1_T 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_GEMM_2_T 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_GEMM_3_T 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_FULL_UV 8 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_MODIFY_A 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_NO_UV 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_SHORT_UV 2 |
#include <opencv2/core/hal/interface.h>
#define CV_IS_FLOAT_TYPE | ( | flags | ) |
#include <opencv2/core/hal/interface.h>
#define CV_IS_INT_TYPE | ( | flags | ) |
#include <opencv2/core/hal/interface.h>
#define CV_MAKE_TYPE CV_MAKETYPE |
#include <opencv2/core/hal/interface.h>
#define CV_MAKETYPE | ( | depth, | |
cn ) |
#include <opencv2/core/hal/interface.h>
#define CV_MAT_DEPTH | ( | flags | ) |
#include <opencv2/core/hal/interface.h>
#define CV_MAT_DEPTH_MASK (CV_DEPTH_MAX - 1) |
#include <opencv2/core/hal/interface.h>
#define CV_USRTYPE1 (void)"CV_USRTYPE1 support has been dropped in OpenCV 4.0" |
#include <opencv2/core/hal/interface.h>
typedef int16_t cv_hal_bf16 |
#include <opencv2/core/hal/interface.h>
typedef int16_t cv_hal_f16 |
#include <opencv2/core/hal/interface.h>
typedef int64_t int64 |
#include <opencv2/core/hal/interface.h>
typedef int8_t schar |
#include <opencv2/core/hal/interface.h>
typedef uint8_t uchar |
typedef uint32_t uint |
#include <opencv2/core/hal/interface.h>
typedef uint64_t uint64 |
#include <opencv2/core/hal/interface.h>
typedef uint16_t ushort |
#include <opencv2/core/hal/interface.h>
|
inline |
#include <core/src/hal_replacement.hpp>
context | pointer to context storing all necessary data |
src_data | source image data |
src_step | source image step |
dst_data | destination image data |
dst_step | destination image step |
|
inline |
#include <core/src/hal_replacement.hpp>
context | pointer to context storing all necessary data |
|
inline |
#include <core/src/hal_replacement.hpp>
context | double pointer to context storing all necessary data |
width | image width |
height | image height |
depth | image type (CV_32F or CV_64F) |
flags | algorithm options (combination of CV_HAL_DFT_INVERSE, ...) |
#include <core/src/hal_replacement.hpp>
context | pointer to context storing all necessary data |
src | source data |
dst | destination data |
|
inline |
#include <core/src/hal_replacement.hpp>
context | pointer to context storing all necessary data |
src_data | source image data |
src_step | source image step |
dst_data | destination image data |
dst_step | destination image step |
|
inline |
#include <core/src/hal_replacement.hpp>
context | pointer to context storing all necessary data |
|
inline |
#include <core/src/hal_replacement.hpp>
context | pointer to context storing all necessary data |
|
inline |
#include <core/src/hal_replacement.hpp>
context | double pointer to context storing all necessary data |
len | transformed array length |
count | estimated transformation count |
depth | array type (CV_32F or CV_64F) |
flags | algorithm options (combination of CV_HAL_DFT_INVERSE, CV_HAL_DFT_SCALE, ...) |
needBuffer | pointer to boolean variable, if valid pointer provided, then variable value should be set to true to signal that additional memory buffer is needed for operations |
|
inline |
#include <core/src/hal_replacement.hpp>
context | double pointer to context storing all necessary data |
width | image width |
height | image height |
depth | image type (CV_32F or CV_64F) |
src_channels | number of channels in input image |
dst_channels | number of channels in output image |
flags | algorithm options (combination of CV_HAL_DFT_INVERSE, ...) |
nonzero_rows | number of nonzero rows in image, can be used for optimization |
|
inline |
#include <core/src/hal_replacement.hpp>
calculates dot product of two vectors (represented as 2d images)
a_data | Pointer to 1st 2nd image data |
a_step | Stride of 1st 2nd image |
b_data | Pointer to 1st 2nd image data |
b_step | Stride of 1st 2nd image |
width | Width of both images |
height | Height of both images |
type | Data type of both images, for example CV_8U or CV_32F |
dot_val | Pointer to resulting dot product value |
|
inline |
#include <core/src/hal_replacement.hpp>
hal_flip
src_type | source and destination image type |
src_data | source image data |
src_step | source image step |
src_width | source and destination image width |
src_height | source and destination image height |
dst_data | destination image data |
dst_step | destination image step |
flip_mode | 0 flips around x-axis, positive around y-axis, negative both |
|
inline |
#include <core/src/hal_replacement.hpp>
calculates the mean and the standard deviation of array elements independently for each channel
src_data | Source image |
src_step | Source image |
width | Source image dimensions |
height | Source image dimensions |
src_type | Type of source image |
mean_val | Array of per-channel mean values. May be nullptr, if mean value is not required. |
stddev_val | Array of per-channel standard deviation values. May be nullptr, if stddev value is not required. |
mask | Specified array region. |
mask_step | Mask array step. |
|
inline |
#include <core/src/hal_replacement.hpp>
Finds the global minimum and maximum in an array.
src_data | Source image |
src_step | Source image |
width | Source image dimensions |
height | Source image dimensions |
depth | Depth of source image |
minVal | Pointer to the returned global minimum and maximum in an array. |
maxVal | Pointer to the returned global minimum and maximum in an array. |
minIdx | Pointer to the returned minimum and maximum location. |
maxIdx | Pointer to the returned minimum and maximum location. |
mask | Specified array region. |
|
inline |
#include <core/src/hal_replacement.hpp>
rotate90
src_type | source and destination image type |
src_data | source image data |
src_step | source image step |
src_width | source image width If angle has value [180] it is also destination image width If angle has values [90, 270] it is also destination image height |
src_height | source and destination image height (destination image width for angles [90, 270]) If angle has value [180] it is also destination image height If angle has values [90, 270] it is also destination image width |
dst_data | destination image data |
dst_step | destination image step |
angle | clockwise angle for rotation in degrees from set [90, 180, 270] |
|
inline |
#include <core/src/hal_replacement.hpp>
Transpose2d.
src_data,src_step | Source image |
dst_data,dst_step | Destination image |
src_width,src_height | Source image dimensions |
element_size | Size of an element in bytes |