OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项

详细描述

注意
定义您的函数以覆盖默认实现
#undef hal_add8u
#define hal_add8u my_add8u

结构体  cvhalFilter2D
 存储过滤上下文的虚拟结构。 更多...
 

函数

int hal_ni_adaptiveThreshold (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
 计算自适应阈值。
 
int hal_ni_bilateralFilter (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, int d, double sigma_color, double sigma_space, int border_type)
 计算双边滤波器。请参阅 https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html
 
int hal_ni_boxFilter (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_depth, int dst_depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, size_t ksize_width, size_t ksize_height, int anchor_x, int anchor_y, bool normalize, int border_type)
 计算盒式滤波。
 
int hal_ni_calcHist (const uchar *src_data, size_t src_step, int src_type, int src_width, int src_height, float *hist_data, int hist_size, const float **ranges, bool uniform, bool accumulate)
 计算一组数组的直方图。
 
int hal_ni_canny (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int cn, double lowThreshold, double highThreshold, int ksize, bool L2gradient)
 Canny 边缘检测器。
 
int hal_ni_cvtBGR5x5toBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int dcn, bool swapBlue, int greenBits)
 hal_cvtBGR5x5toBGR
 
int hal_ni_cvtBGR5x5toGray (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int greenBits)
 hal_cvtBGR5x5toGray
 
int hal_ni_cvtBGRtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, int dcn, bool swapBlue)
 hal_cvtBGRtoBGR
 
int hal_ni_cvtBGRtoBGR5x5 (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int greenBits)
 hal_cvtBGRtoBGR5x5
 
int hal_ni_cvtBGRtoGray (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue)
 hal_cvtBGRtoGray
 
int hal_ni_cvtBGRtoHSV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isFullRange, bool isHSV)
 hal_cvtBGRtoHSV
 
int hal_ni_cvtBGRtoLab (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isLab, bool srgb)
 hal_cvtBGRtoLab
 
int hal_ni_cvtBGRtoThreePlaneYUV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx)
 hal_cvtBGRtoThreePlaneYUV
 
int hal_ni_cvtBGRtoThreePlaneYUVApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx)
 类似于 hal_cvtBGRtoThreePlaneYUV,但允许近似(非位精确)。
 
int hal_ni_cvtBGRtoTwoPlaneYUV (const uchar *src_data, size_t src_step, uchar *y_data, size_t y_step, uchar *uv_data, size_t uv_step, int width, int height, int scn, bool swapBlue, int uIdx)
 hal_cvtBGRtoTwoPlaneYUV
 
int hal_ni_cvtBGRtoXYZ (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue)
 hal_cvtBGRtoXYZ
 
int hal_ni_cvtBGRtoYUV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isCbCr)
 hal_cvtBGRtoYUV
 
int hal_ni_cvtBGRtoYUVApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int scn, bool swapBlue, bool isCbCr)
 类似于 hal_cvtBGRtoYUV,但允许近似(非位精确)。
 
int hal_ni_cvtGraytoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn)
 hal_cvtGraytoBGR
 
int hal_ni_cvtGraytoBGR5x5 (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int greenBits)
 hal_cvtGraytoBGR5x5
 
int hal_ni_cvtHSVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isFullRange, bool isHSV)
 hal_cvtHSVtoBGR
 
int hal_ni_cvtLabtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isLab, bool srgb)
 hal_cvtLabtoBGR
 
int hal_ni_cvtMultipliedRGBAtoRGBA (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height)
 hal_cvtMultipliedRGBAtoRGBA
 
int hal_ni_cvtOnePlaneBGRtoYUV (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx, int ycn)
 hal_cvtOnePlaneBGRtoYUV
 
int hal_ni_cvtOnePlaneBGRtoYUVApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int scn, bool swapBlue, int uIdx, int ycn)
 类似于 hal_cvtOnePlaneBGRtoYUV,但允许近似(非位精确)。
 
int hal_ni_cvtOnePlaneYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int dcn, bool swapBlue, int uIdx, int ycn)
 hal_cvtOnePlaneYUVtoBGR
 
int hal_ni_cvtOnePlaneYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int dcn, bool swapBlue, int uIdx, int ycn)
 类似于 hal_cvtOnePlaneYUVtoBGR,但允许近似(非位精确)。
 
int hal_ni_cvtRGBAtoMultipliedRGBA (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height)
 hal_cvtRGBAtoMultipliedRGBA
 
int hal_ni_cvtThreePlaneYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
 hal_cvtThreePlaneYUVtoBGR
 
int hal_ni_cvtThreePlaneYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
 类似于 hal_cvtThreePlaneYUVtoBGR,但允许近似(非位精确)。
 
int hal_ni_cvtTwoPlaneYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
 hal_cvtTwoPlaneYUVtoBGR
 
int hal_ni_cvtTwoPlaneYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
 类似于 hal_cvtTwoPlaneYUVtoBGR,但允许近似(非位精确)。
 
int hal_ni_cvtTwoPlaneYUVtoBGREx (const uchar *y_data, size_t y_step, const uchar *uv_data, size_t uv_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
 hal_cvtTwoPlaneYUVtoBGR 的扩展版本。
 
int hal_ni_cvtTwoPlaneYUVtoBGRExApprox (const uchar *y_data, size_t y_step, const uchar *uv_data, size_t uv_step, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int dcn, bool swapBlue, int uIdx)
 hal_cvtTwoPlaneYUVtoBGR 的扩展版本,允许近似(非位精确)。
 
int hal_ni_cvtXYZtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue)
 hal_cvtXYZtoBGR
 
int hal_ni_cvtYUVtoBGR (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isCbCr)
 hal_cvtYUVtoBGR
 
int hal_ni_cvtYUVtoBGRApprox (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int dcn, bool swapBlue, bool isCbCr)
 类似于 hal_cvtYUVtoBGR,但允许近似(非位精确)。
 
int hal_ni_equalize_hist (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height)
 均衡化灰度图像的直方图。
 
int hal_ni_filter (cvhalFilter2D *context, uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int full_width, int full_height, int offset_x, int offset_y)
 hal_filter
 
int hal_ni_filterFree (cvhalFilter2D *context)
 hal_filterFree
 
int hal_ni_filterInit (cvhalFilter2D **context, uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, int max_width, int max_height, int src_type, int dst_type, int borderType, double delta, int anchor_x, int anchor_y, bool allowSubmatrix, bool allowInplace)
 hal_filterInit
 
int hal_ni_gaussianBlur (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, size_t margin_left, size_t margin_top, size_t margin_right, size_t margin_bottom, size_t ksize_width, size_t ksize_height, double sigmaX, double sigmaY, int border_type)
 使用通用高斯滤波器模糊图像。
 
int hal_ni_gaussianBlurBinomial (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, size_t margin_left, size_t margin_top, size_t margin_right, size_t margin_bottom, size_t ksize, int border_type)
 使用方形核和 sigma=0 的对称高斯滤波器模糊图像。
 
int hal_ni_imageMoments (const uchar *src_data, size_t src_step, int src_type, int width, int height, bool binary, double m[10])
 计算图像的多边形或栅格化形状的三阶矩。
 
int hal_ni_integral (int depth, int sdepth, int sqdepth, const uchar *src_data, size_t src_step, uchar *sum_data, size_t sum_step, uchar *sqsum_data, size_t sqsum_step, uchar *tilted_data, size_t tilted_step, int width, int height, int cn)
 计算积分图像。
 
int hal_ni_medianBlur (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, int ksize)
 计算中值模糊滤波器。
 
int hal_ni_morph (cvhalFilter2D *context, uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_full_width, int src_full_height, int src_roi_x, int src_roi_y, int dst_full_width, int dst_full_height, int dst_roi_x, int dst_roi_y)
 hal_morph
 
int hal_ni_morphFree (cvhalFilter2D *context)
 hal_morphFree
 
int hal_ni_morphInit (cvhalFilter2D **context, int operation, int src_type, int dst_type, int max_width, int max_height, int kernel_type, uchar *kernel_data, size_t kernel_step, int kernel_width, int kernel_height, int anchor_x, int anchor_y, int borderType, const double borderValue[4], int iterations, bool allowSubmatrix, bool allowInplace)
 hal_morphInit
 
int hal_ni_polygonMoments (const uchar *src_data, size_t src_size, int src_type, double m[10])
 计算二维点多边形的三阶矩。
 
int hal_ni_pyrdown (const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int depth, int cn, int border_type)
 对输入图块执行高斯模糊和降采样。
 
int hal_ni_pyrdown_offset (const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, int border_type)
 对带有可选子矩阵边距的输入块执行高斯模糊和下采样。
 
int hal_ni_pyrup (const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, int depth, int cn, int border_type)
 对输入图块执行高斯模糊和升采样。
 
int hal_ni_remap16s (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 dst_width, int dst_height, short *mapx, size_t mapx_step, ushort *mapy, size_t mapy_step, int interpolation, int border_type, const double border_value[4])
 使用定点映射的 hal_remap
 
int hal_ni_remap32f (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 dst_width, int dst_height, float *mapx, size_t mapx_step, float *mapy, size_t mapy_step, int interpolation, int border_type, const double border_value[4])
 使用浮点映射的 hal_remap
 
int hal_ni_remap32fc2 (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 dst_width, int dst_height, float *map, size_t map_step, int interpolation, int border_type, const double border_value[4])
 使用浮点映射的 hal_remap
 
int hal_ni_resize (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 dst_width, int dst_height, double inv_scale_x, double inv_scale_y, int interpolation)
 hal_resize
 
int hal_ni_scharr (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_depth, int dst_depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, int dx, int dy, double scale, double delta, int border_type)
 计算 Scharr 滤波器。
 
int hal_ni_sepFilter (cvhalFilter2D *context, uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int full_width, int full_height, int offset_x, int offset_y)
 hal_sepFilter
 
int hal_ni_sepFilterFree (cvhalFilter2D *context)
 hal_sepFilterFree
 
int hal_ni_sepFilterInit (cvhalFilter2D **context, int src_type, int dst_type, int kernel_type, uchar *kernelx_data, int kernelx_length, uchar *kernely_data, int kernely_length, int anchor_x, int anchor_y, double delta, int borderType)
 hal_sepFilterInit
 
int hal_ni_sobel (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int src_depth, int dst_depth, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, int dx, int dy, int ksize, double scale, double delta, int border_type)
 计算 Sobel 导数。
 
int hal_ni_threshold (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, int cn, double thresh, double maxValue, int thresholdType)
 计算每个数组元素的固定级别阈值。
 
int hal_ni_threshold_otsu (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, int depth, double maxValue, int thresholdType, double *thresh)
 使用大津算法估算的阈值执行阈值滤波。
 
int hal_ni_warpAffine (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 dst_width, int dst_height, const double M[6], int interpolation, int borderType, const double borderValue[4])
 hal_warpAffine
 
int hal_ni_warpAffineBlockline (int *adelta, int *bdelta, short *xy, short *alpha, int X0, int Y0, int bw)
 hal_warpAffineBlockline 执行一行仿射变换
 
int hal_ni_warpAffineBlocklineNN (int *adelta, int *bdelta, short *xy, int X0, int Y0, int bw)
 hal_warpAffineBlocklineNN 执行一行仿射变换
 
int hal_ni_warpPerspective (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 dst_width, int dst_height, const double M[9], int interpolation, int borderType, const double borderValue[4])
 hal_warpPerspective
 
int hal_ni_warpPerspectiveBlockline (const double *M, short *xy, short *alpha, double X0, double Y0, double W0, int bw)
 hal_warpPerspectiveBlockline 执行一行透视变换
 
int hal_ni_warpPerspectiveBlocklineNN (const double *M, short *xy, double X0, double Y0, double W0, int bw)
 hal_warpPerspectiveBlocklineNN 执行一行透视变换
 

插值模式

另请参见
cv::InterpolationFlags
#define CV_HAL_INTER_NEAREST   0
 
#define CV_HAL_INTER_LINEAR   1
 
#define CV_HAL_INTER_CUBIC   2
 
#define CV_HAL_INTER_AREA   3
 
#define CV_HAL_INTER_LANCZOS4   4
 
#define CV_HAL_INTER_LINEAR_EXACT   5
 
#define CV_HAL_INTER_NEAREST_EXACT   6
 
#define CV_HAL_INTER_MAX   7
 
#define CV_HAL_WARP_FILL_OUTLIERS   8
 
#define CV_HAL_WARP_INVERSE_MAP   16
 
#define CV_HAL_WARP_RELATIVE_MAP   32
 

形态学操作

另请参见
cv::MorphTypes
#define CV_HAL_MORPH_ERODE   0
 
#define CV_HAL_MORPH_DILATE   1
 

阈值类型

另请参见
cv::ThresholdTypes
#define CV_HAL_THRESH_BINARY   0
 
#define CV_HAL_THRESH_BINARY_INV   1
 
#define CV_HAL_THRESH_TRUNC   2
 
#define CV_HAL_THRESH_TOZERO   3
 
#define CV_HAL_THRESH_TOZERO_INV   4
 
#define CV_HAL_THRESH_MASK   7
 
#define CV_HAL_THRESH_OTSU   8
 
#define CV_HAL_THRESH_TRIANGLE   16
 

自适应阈值算法

另请参见
cv::AdaptiveThresholdTypes
#define CV_HAL_ADAPTIVE_THRESH_MEAN_C   0
 
#define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C   1
 

宏定义文档

◆ CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C

#define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C   1

◆ CV_HAL_ADAPTIVE_THRESH_MEAN_C

#define CV_HAL_ADAPTIVE_THRESH_MEAN_C   0

◆ CV_HAL_INTER_AREA

#define CV_HAL_INTER_AREA   3

◆ CV_HAL_INTER_CUBIC

#define CV_HAL_INTER_CUBIC   2

◆ CV_HAL_INTER_LANCZOS4

#define CV_HAL_INTER_LANCZOS4   4

◆ CV_HAL_INTER_LINEAR

#define CV_HAL_INTER_LINEAR   1

◆ CV_HAL_INTER_LINEAR_EXACT

#define CV_HAL_INTER_LINEAR_EXACT   5

◆ CV_HAL_INTER_MAX

#define CV_HAL_INTER_MAX   7

◆ CV_HAL_INTER_NEAREST

#define CV_HAL_INTER_NEAREST   0

◆ CV_HAL_INTER_NEAREST_EXACT

#define CV_HAL_INTER_NEAREST_EXACT   6

◆ CV_HAL_MORPH_DILATE

#define CV_HAL_MORPH_DILATE   1

◆ CV_HAL_MORPH_ERODE

#define CV_HAL_MORPH_ERODE   0

◆ CV_HAL_THRESH_BINARY

#define CV_HAL_THRESH_BINARY   0

◆ CV_HAL_THRESH_BINARY_INV

#define CV_HAL_THRESH_BINARY_INV   1

◆ CV_HAL_THRESH_MASK

#define CV_HAL_THRESH_MASK   7

◆ CV_HAL_THRESH_OTSU

#define CV_HAL_THRESH_OTSU   8

◆ CV_HAL_THRESH_TOZERO

#define CV_HAL_THRESH_TOZERO   3

◆ CV_HAL_THRESH_TOZERO_INV

#define CV_HAL_THRESH_TOZERO_INV   4

◆ CV_HAL_THRESH_TRIANGLE

#define CV_HAL_THRESH_TRIANGLE   16

◆ CV_HAL_THRESH_TRUNC

#define CV_HAL_THRESH_TRUNC   2

◆ CV_HAL_WARP_FILL_OUTLIERS

#define CV_HAL_WARP_FILL_OUTLIERS   8

◆ CV_HAL_WARP_INVERSE_MAP

#define CV_HAL_WARP_INVERSE_MAP   16

◆ CV_HAL_WARP_RELATIVE_MAP

#define CV_HAL_WARP_RELATIVE_MAP   32

函数文档

◆ hal_ni_adaptiveThreshold()

int hal_ni_adaptiveThreshold ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C )
inline

#include <imgproc/src/hal_replacement.hpp>

计算自适应阈值。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
maxValue当条件满足时分配给像素的值
adaptiveMethod自适应阈值算法
thresholdType阈值类型
blockSize用于计算阈值像素邻域的大小
C从均值或加权均值中减去的常数

◆ hal_ni_bilateralFilter()

int hal_ni_bilateralFilter ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
int d,
double sigma_color,
double sigma_space,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

计算双边滤波器。请参阅 https://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
深度源图像和目标图像的深度。应支持 CV_8U 和 CV_32F
cn通道数
d过滤过程中使用的每个像素邻域的直径。如果非正,则从 sigmaSpace 计算。
sigma_color颜色空间中的滤波器 sigma
sigma_space坐标空间中的滤波器 sigma。当 d>0 时,它指定邻域大小,而与 sigmaSpace 无关。否则,d 与 sigmaSpace 成比例。
border_type用于推断图像外部像素的边界模式

◆ hal_ni_boxFilter()

int hal_ni_boxFilter ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int src_depth,
int dst_depth,
int cn,
int margin_left,
int margin_top,
int margin_right,
int margin_bottom,
size_t ksize_width,
size_t ksize_height,
int anchor_x,
int anchor_y,
bool normalize,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

计算盒式滤波。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
src_depth源图像的深度
dst_depth目标图像的深度
cn通道数
margin_left源图像的左边距
margin_top源图像的上边距
margin_right源图像的右边距
margin_bottom源图像的下边距
ksize_width核的宽度
ksize_height核的高度
anchor_x锚点 x 坐标
anchor_y锚点 y 坐标
normalize如果为真,则结果将被归一化
border_type边框类型

◆ hal_ni_calcHist()

int hal_ni_calcHist ( const uchar * src_data,
size_t src_step,
int src_type,
int src_width,
int src_height,
float * hist_data,
int hist_size,
const float ** ranges,
bool uniform,
bool accumulate )
inline

#include <imgproc/src/hal_replacement.hpp>

计算一组数组的直方图。

参数
src_data源图像数据
src_step源图像步长
src_type源图像类型
src_width源图像宽度
src_height源图像高度
hist_data直方图数据
hist_size直方图大小
ranges直方图 bin 边界的维度数组
uniform指示直方图是否均匀的标志
accumulate累积标志

◆ hal_ni_canny()

int hal_ni_canny ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int cn,
double lowThreshold,
double highThreshold,
int ksize,
bool L2gradient )
inline

#include <imgproc/src/hal_replacement.hpp>

Canny 边缘检测器。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
cn通道数
lowThreshold低阈值
highThreshold高阈值
ksizeSobel 算子的核大小。
L2gradient标志,指示使用 L2 或 L1 范数。

◆ hal_ni_cvtBGR5x5toBGR()

int hal_ni_cvtBGR5x5toBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int dcn,
bool swapBlue,
int greenBits )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGR5x5toBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
greenBits绿色通道的位数(5 或 6)从打包的 BGR 或 RGB(每像素 16 位,555 或 565)转换为 BGR、BGRA、RGB 和 RGBA。仅支持 CV_8U 图像(输入 2 通道,输出 3 或 4 通道)。

◆ hal_ni_cvtBGR5x5toGray()

int hal_ni_cvtBGR5x5toGray ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int greenBits )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGR5x5toGray

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
greenBits绿色通道的位数(5 或 6)从打包的 BGR(每像素 16 位,555 或 565)转换为 1 通道灰度图。仅支持 CV_8U 图像。

◆ hal_ni_cvtBGRtoBGR()

int hal_ni_cvtBGRtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
int dcn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U、CV_32F 之一)
scn源图像通道(3 或 4)
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 通道将交换(BGR->RGB 或 RGB->BGR)在 BGR、BGRA、RGB 和 RGBA 图像格式之间进行转换。

◆ hal_ni_cvtBGRtoBGR5x5()

int hal_ni_cvtBGRtoBGR5x5 ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int greenBits )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoBGR5x5

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
greenBits绿色通道的位数(5 或 6)从 BGR、BGRA、RGB 和 RGBA 转换为打包的 BGR 或 RGB(每像素 16 位,555 或 565)。仅支持 CV_8U 图像(输入 3 或 4 通道,输出 2 通道)。

◆ hal_ni_cvtBGRtoGray()

int hal_ni_cvtBGRtoGray ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoGray

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)从 BGR、BGRA、RGB 或 RGBA 转换为 1 通道灰度图。

◆ hal_ni_cvtBGRtoHSV()

int hal_ni_cvtBGRtoHSV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isFullRange,
bool isHSV )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoHSV

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U 或 CV_32F 之一)
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
isFullRange如果设置为 true,色调范围为 0-255(浮点数为 0-360),否则为 0-180
isHSV如果设置为 true,写入 HSV,否则写入 HSL 从 BGR、RGB、BGRA 或 RGBA 转换为 HSV 或 HSL。

◆ hal_ni_cvtBGRtoLab()

int hal_ni_cvtBGRtoLab ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isLab,
bool srgb )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoLab

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U 或 CV_32F 之一)
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
isLab如果设置为 true,写入 Lab,否则写入 Luv
srgb如果设置为 true,使用 sRGB 伽马校正 从 BGR、RGB、BGRA 或 RGBA 转换为 Lab 或 Luv。

◆ hal_ni_cvtBGRtoThreePlaneYUV()

int hal_ni_cvtBGRtoThreePlaneYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoThreePlaneYUV

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
uIdxU 通道平面索引(0 或 1)从 BGR、RGB、BGRA 或 RGBA 转换为 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面)。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtBGRtoThreePlaneYUVApprox()

int hal_ni_cvtBGRtoThreePlaneYUVApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtBGRtoThreePlaneYUV,但允许近似(非位精确)。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
uIdxU 通道平面索引(0 或 1)从 BGR、RGB、BGRA 或 RGBA 转换为 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面)。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtBGRtoTwoPlaneYUV()

int hal_ni_cvtBGRtoTwoPlaneYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * y_data,
size_t y_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * uv_data,
size_t uv_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoTwoPlaneYUV

参数
src_data源图像数据
src_step源图像步长
y_data目标图像数据(Y 平面)
y_step目标图像步长(Y 平面)
uv_data目标图像数据(UV 平面)
uv_step目标图像步长(UV 平面)
width图像宽度
height图像高度
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
uIdxU 通道平面索引(0 或 1)从 BGR、RGB、BGRA 或 RGBA 转换为 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面)。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtBGRtoXYZ()

int hal_ni_cvtBGRtoXYZ ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoXYZ

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)从 BGR、RGB、BGRA 或 RGBA 转换为 XYZ。

◆ hal_ni_cvtBGRtoYUV()

int hal_ni_cvtBGRtoYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtBGRtoYUV

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
isCbCr如果设置为 true,以 YCbCr 格式写入输出 从 BGR、RGB、BGRA 或 RGBA 转换为 YUV 或 YCbCr。

◆ hal_ni_cvtBGRtoYUVApprox()

int hal_ni_cvtBGRtoYUVApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int scn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtBGRtoYUV,但允许近似(非位精确)。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 源通道将交换(视为 RGB)
isCbCr如果设置为 true,以 YCbCr 格式写入输出 从 BGR、RGB、BGRA 或 RGBA 转换为 YUV 或 YCbCr。

◆ hal_ni_cvtGraytoBGR()

int hal_ni_cvtGraytoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtGraytoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目标图像通道(3 或 4)从 1 通道灰度图转换为 BGR、RGB、RGBA 或 BGRA。

◆ hal_ni_cvtGraytoBGR5x5()

int hal_ni_cvtGraytoBGR5x5 ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int greenBits )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtGraytoBGR5x5

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
greenBits绿色通道的位数(5 或 6)从 1 通道灰度图转换为打包的 BGR(每像素 16 位,555 或 565)。仅支持 CV_8U 图像。

◆ hal_ni_cvtHSVtoBGR()

int hal_ni_cvtHSVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isFullRange,
bool isHSV )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtHSVtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U 或 CV_32F 之一)
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
isFullRange如果设置为 true,读取色调范围为 0-255(浮点数为 0-360),否则为 0-180
isHSV如果设置为 true,源视为 HSV,否则视为 HSL 从 HSV 或 HSL 转换为 BGR、RGB、BGRA 或 RGBA。

◆ hal_ni_cvtLabtoBGR()

int hal_ni_cvtLabtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isLab,
bool srgb )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtLabtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U 或 CV_32F 之一)
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
isLab如果设置为 true,输入视为 Lab,否则视为 Luv
srgb如果设置为 true,使用 sRGB 伽马校正 从 Lab 或 Luv 转换为 BGR、RGB、BGRA 或 RGBA。

◆ hal_ni_cvtMultipliedRGBAtoRGBA()

int hal_ni_cvtMultipliedRGBAtoRGBA ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtMultipliedRGBAtoRGBA

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度 从带乘法 Alpha 通道的格式转换为 BGRA 或 RGBA。仅适用于 CV_8U。

◆ hal_ni_cvtOnePlaneBGRtoYUV()

int hal_ni_cvtOnePlaneBGRtoYUV ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx,
int ycn )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtOnePlaneBGRtoYUV

参数
src_data,src_step源图像数据和步长
dst_data,dst_step目标图像数据和步长
width,height图像尺寸
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)从 BGR、RGB、BGRA 或 RGBA 转换为交错的 YUV 4:2:2 (UYVY, YUY2 或 YVYU)。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtOnePlaneBGRtoYUVApprox()

int hal_ni_cvtOnePlaneBGRtoYUVApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int scn,
bool swapBlue,
int uIdx,
int ycn )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtOnePlaneBGRtoYUV,但允许近似(非位精确)。

参数
src_data,src_step源图像数据和步长
dst_data,dst_step目标图像数据和步长
width,height图像尺寸
scn源图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)从 BGR、RGB、BGRA 或 RGBA 转换为交错的 YUV 4:2:2 (UYVY, YUY2 或 YVYU)。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtOnePlaneYUVtoBGR()

int hal_ni_cvtOnePlaneYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int dcn,
bool swapBlue,
int uIdx,
int ycn )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtOnePlaneYUVtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)从交错的 YUV 4:2:2 (UYVY, YUY2 或 YVYU) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtOnePlaneYUVtoBGRApprox()

int hal_ni_cvtOnePlaneYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int dcn,
bool swapBlue,
int uIdx,
int ycn )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtOnePlaneYUVtoBGR,但允许近似(非位精确)。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdxU 通道索引(0 或 1)
ycnY 通道索引(0 或 1)从交错的 YUV 4:2:2 (UYVY, YUY2 或 YVYU) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtRGBAtoMultipliedRGBA()

int hal_ni_cvtRGBAtoMultipliedRGBA ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtRGBAtoMultipliedRGBA

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度 从 BGRA 或 RGBA 转换为带乘法 Alpha 通道的格式。仅适用于 CV_8U。

◆ hal_ni_cvtThreePlaneYUVtoBGR()

int hal_ni_cvtThreePlaneYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtThreePlaneYUVtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdxU 通道平面索引(0 或 1)从 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtThreePlaneYUVtoBGRApprox()

int hal_ni_cvtThreePlaneYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtThreePlaneYUVtoBGR,但允许近似(非位精确)。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdxU 通道平面索引(0 或 1)从 YUV (YUV420p (或 YV12/YV21) - Y 平面后跟 U 和 V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtTwoPlaneYUVtoBGR()

int hal_ni_cvtTwoPlaneYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtTwoPlaneYUVtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdx交错 U/V 平面中的 U 通道索引(0 或 1)从 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtTwoPlaneYUVtoBGRApprox()

int hal_ni_cvtTwoPlaneYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtTwoPlaneYUVtoBGR,但允许近似(非位精确)。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdx交错 U/V 平面中的 U 通道索引(0 或 1)从 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtTwoPlaneYUVtoBGREx()

int hal_ni_cvtTwoPlaneYUVtoBGREx ( const uchar * y_data,
size_t y_step,
const uchar * uv_data,
size_t uv_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtTwoPlaneYUVtoBGR 的扩展版本。

参数
y_data源图像数据(Y 平面)
y_step源图像步长(Y 平面)
uv_data源图像数据(UV 平面)
uv_step源图像步长(UV 平面)
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdx交错 U/V 平面中的 U 通道索引(0 或 1)从 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

◆ hal_ni_cvtTwoPlaneYUVtoBGRExApprox()

int hal_ni_cvtTwoPlaneYUVtoBGRExApprox ( const uchar * y_data,
size_t y_step,
const uchar * uv_data,
size_t uv_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int dcn,
bool swapBlue,
int uIdx )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtTwoPlaneYUVtoBGR 的扩展版本,允许近似(非位精确)。

参数
y_data源图像数据(Y 平面)
y_step源图像步长(Y 平面)
uv_data源图像数据(UV 平面)
uv_step源图像步长(UV 平面)
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
uIdx交错 U/V 平面中的 U 通道索引(0 或 1)从 YUV (YUV420sp (或 NV12/NV21) - Y 平面后跟交错的 U/V 平面) 转换为 BGR、RGB、BGRA 或 RGBA。仅适用于 CV_8U。Y : [16, 235]; Cb, Cr: [16, 240] 居中于 128

如果设置为 true,B 和 R 目标通道将交换(写入 RGB)从 XYZ 转换为 BGR、RGB、BGRA 或 RGBA。

int hal_ni_cvtXYZtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtXYZtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目标图像通道(3 或 4)
swapBlueif set to true B and R destination channels will be swapped (write RGB) Convert from XYZ to BGR, RGB, BGRA or RGBA.

◆ hal_ni_cvtYUVtoBGR()

int hal_ni_cvtYUVtoBGR ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_cvtYUVtoBGR

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
isCbCr如果设置为 true,源视为 YCbCr 从 YUV 或 YCbCr 转换为 BGR、RGB、BGRA 或 RGBA。

◆ hal_ni_cvtYUVtoBGRApprox()

int hal_ni_cvtYUVtoBGRApprox ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int dcn,
bool swapBlue,
bool isCbCr )
inline

#include <imgproc/src/hal_replacement.hpp>

类似于 hal_cvtYUVtoBGR,但允许近似(非位精确)。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
深度图像深度(CV_8U、CV_16U 或 CV_32F 之一)
dcn目标图像通道(3 或 4)
swapBlue如果设置为 true,B 和 R 目标通道将交换(写入 RGB)
isCbCr如果设置为 true,源视为 YCbCr 从 YUV 或 YCbCr 转换为 BGR、RGB、BGRA 或 RGBA。

◆ hal_ni_equalize_hist()

int hal_ni_equalize_hist ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height )
inline

#include <imgproc/src/hal_replacement.hpp>

均衡化灰度图像的直方图。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度

◆ hal_ni_filter()

int hal_ni_filter ( cvhalFilter2D * context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int full_width,
int full_height,
int offset_x,
int offset_y )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_filter

参数
context用户定义上下文的指针
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
full_width源图像的完整宽度(ROI 之外)
full_height源图像的完整高度(ROI 之外)
offset_x源图像 ROI X 偏移
offset_y源图像 ROI Y 偏移
另请参见
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_filterFree()

int hal_ni_filterFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_filterFree

参数
context用户定义上下文的指针
另请参见
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_filterInit()

int hal_ni_filterInit ( cvhalFilter2D ** context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * kernel_data,
size_t kernel_step,
int kernel_type,
int kernel_width,
int kernel_height,
int max_width,
int max_height,
int src_type,
int dst_type,
int borderType,
double delta,
int anchor_x,
int anchor_y,
bool allowSubmatrix,
bool allowInplace )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_filterInit

参数
context指向用户定义上下文的双指针
kernel_data核数据指针
kernel_step核步长
kernel_type核类型(CV_8U 等)
kernel_width核宽度
kernel_height核高度
max_width最大可能图像宽度,可用于分配工作缓冲区
max_height最大可能图像高度
src_type源图像类型
dst_type目标图像类型
borderType边界处理模式(CV_HAL_BORDER_REFLECT 等)
delta添加到像素值
anchor_x核内中心点的相对 X 位置
anchor_y核内中心点的相对 Y 位置
allowSubmatrix指示是否允许子矩阵作为源图像
allowInplace指示是否可以进行原地操作
另请参见
cv::filter2D, cv::hal::Filter2D

◆ hal_ni_gaussianBlur()

int hal_ni_gaussianBlur ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
size_t margin_left,
size_t margin_top,
size_t margin_right,
size_t margin_bottom,
size_t ksize_width,
size_t ksize_height,
double sigmaX,
double sigmaY,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

使用通用高斯滤波器模糊图像。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
深度源图像和目标图像的深度
cn通道数
margin_left源图像的左边距
margin_top源图像的上边距
margin_right源图像的右边距
margin_bottom源图像的下边距
ksize_width核的宽度
ksize_height核的高度
sigmaX高斯核标准差。
sigmaY高斯核标准差。
border_type边框类型

◆ hal_ni_gaussianBlurBinomial()

int hal_ni_gaussianBlurBinomial ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
size_t margin_left,
size_t margin_top,
size_t margin_right,
size_t margin_bottom,
size_t ksize,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

使用方形核和 sigma=0 的对称高斯滤波器模糊图像。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
深度源图像和目标图像的深度
cn通道数
margin_left源图像的左边距
margin_top源图像的上边距
margin_right源图像的右边距
margin_bottom源图像的下边距
ksize核的宽度
border_type边框类型

◆ 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 <imgproc/src/hal_replacement.hpp>

计算图像的多边形或栅格化形状的三阶矩。

参数
src_data源图像数据
src_step源图像步长
src_type源点类型
width源图像宽度
height源图像高度
binary如果为真,所有非零图像像素都被视为 1
m按以下顺序输出矩数组(10 个值):m00, m10, m01, m20, m11, m02, m30, m21, m12, m03。
另请参见
moments

◆ hal_ni_integral()

int hal_ni_integral ( int 深度,
int sdepth,
int sqdepth,
const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * sum_data,
size_t sum_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * sqsum_data,
size_t sqsum_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * tilted_data,
size_t tilted_step,
int width,
int height,
int cn )
inline

#include <imgproc/src/hal_replacement.hpp>

计算积分图像。

参数
深度源图像的深度
sdepth和图像的深度
sqdepth平方和图像的深度
src_data源图像数据
src_step源图像步长
sum_data和图像数据
sum_step和图像步长
sqsum_data平方和图像数据
sqsum_step平方和图像步长
tilted_data倾斜和图像数据
tilted_step倾斜和图像步长
width源图像宽度
height源图像高度
cn通道数
注意
使用以下图像深度组合
来源Sum平方和
Definition interface.h:74Definition interface.h:73CV_64F
Definition interface.h:74Definition interface.h:73CV_32F
Definition interface.h:74Definition interface.h:73Definition interface.h:73
Definition interface.h:74CV_32FCV_64F
Definition interface.h:74CV_32FCV_32F
Definition interface.h:74CV_64FCV_64F
Definition interface.h:76CV_64FCV_64F
Definition interface.h:77CV_64FCV_64F
CV_32FCV_32FCV_64F
CV_32FCV_32FCV_32F
CV_32FCV_64FCV_64F
CV_64FCV_64FCV_64F
另请参见
cv::integral

◆ hal_ni_medianBlur()

int hal_ni_medianBlur ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
int ksize )
inline

#include <imgproc/src/hal_replacement.hpp>

计算中值模糊滤波器。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
深度源图像和目标图像的深度
cn通道数
ksize核大小

◆ hal_ni_morph()

int hal_ni_morph ( cvhalFilter2D * context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int src_full_width,
int src_full_height,
int src_roi_x,
int src_roi_y,
int dst_full_width,
int dst_full_height,
int dst_roi_x,
int dst_roi_y )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_morph

参数
context用户定义上下文的指针
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
src_full_width源图像的完整宽度(ROI 之外)
src_full_height源图像的完整高度(ROI 之外)
src_roi_x源图像 ROI X 偏移
src_roi_y源图像 ROI Y 偏移
dst_full_width目标图像的完整宽度
dst_full_height目标图像的完整高度
dst_roi_x目标图像 ROI X 偏移
dst_roi_y目标图像 ROI Y 偏移
另请参见
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_morphFree()

int hal_ni_morphFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_morphFree

参数
context用户定义上下文的指针
另请参见
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_morphInit()

int hal_ni_morphInit ( cvhalFilter2D ** context,
int 操作,
int src_type,
int dst_type,
int max_width,
int max_height,
int kernel_type,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * kernel_data,
size_t kernel_step,
int kernel_width,
int kernel_height,
int anchor_x,
int anchor_y,
int borderType,
const double borderValue[4],
int iterations,
bool allowSubmatrix,
bool allowInplace )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_morphInit

参数
context指向用户定义上下文的双指针
操作形态学操作 CV_HAL_MORPH_ERODE 或 CV_HAL_MORPH_DILATE
src_type源图像类型
dst_type目标图像类型
max_width最大可能图像宽度,可用于分配工作缓冲区
max_height最大可能图像高度
kernel_type核类型(CV_8U 等)
kernel_data核数据指针
kernel_step核步长
kernel_width核宽度
kernel_height核高度
anchor_x核内中心点的相对 X 位置
anchor_y核内中心点的相对 Y 位置
borderType边界处理模式(CV_HAL_BORDER_REFLECT 等)
borderValueCV_HAL_BORDER_CONSTANT 模式下使用的值
iterations迭代次数
allowSubmatrix指示是否允许子矩阵作为源图像
allowInplace指示是否可以进行原地操作
另请参见
cv::erode, cv::dilate, cv::morphologyEx, cv::hal::Morph

◆ hal_ni_polygonMoments()

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

#include <imgproc/src/hal_replacement.hpp>

计算二维点多边形的三阶矩。

参数
src_data源点(Point 2x32f 或 2x32s)
src_size源点计数
src_type源点类型
m按以下顺序输出矩数组(10 个值):m00, m10, m01, m20, m11, m02, m30, m21, m12, m03。
另请参见
moments

◆ hal_ni_pyrdown()

int hal_ni_pyrdown ( const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int 深度,
int cn,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

对输入图块执行高斯模糊和降采样。

参数
深度源图像和目标图像的深度
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
src_width源图像宽度
src_height源图像高度
dst_width目标图像宽度
dst_height目标图像高度
cn通道数
border_type边框类型

◆ hal_ni_pyrdown_offset()

int hal_ni_pyrdown_offset ( const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int 深度,
int cn,
int margin_left,
int margin_top,
int margin_right,
int margin_bottom,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

对带有可选子矩阵边距的输入块执行高斯模糊和下采样。

参数
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
深度源图像和目标图像的深度
cn通道数
margin_left源图像的左边距
margin_top源图像的上边距
margin_right源图像的右边距
margin_bottom源图像的下边距
border_type边框类型

◆ hal_ni_pyrup()

int hal_ni_pyrup ( const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
int 深度,
int cn,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

对输入图块执行高斯模糊和升采样。

参数
深度源图像和目标图像的深度
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
src_width源图像宽度
src_height源图像高度
dst_width目标图像宽度
dst_height目标图像高度
cn通道数
border_type边框类型

◆ hal_ni_remap16s()

int hal_ni_remap16s ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
short * mapx,
size_t mapx_step,
ushort * mapy,
size_t mapy_step,
int interpolation,
int border_type,
const double border_value[4] )
inline

#include <imgproc/src/hal_replacement.hpp>

使用定点映射的 hal_remap

参数
src_type源图像和目标图像类型
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
mapxx 值的映射
mapx_stepmapx 矩阵步长
mapyy 值的映射
mapy_stepmapy 矩阵步长
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
border_type边界处理模式(CV_HAL_BORDER_REFLECT 等)
border_valueCV_HAL_BORDER_CONSTANT 模式下使用的值
另请参见
cv::remap

◆ hal_ni_remap32f()

int hal_ni_remap32f ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
float * mapx,
size_t mapx_step,
float * mapy,
size_t mapy_step,
int interpolation,
int border_type,
const double border_value[4] )
inline

#include <imgproc/src/hal_replacement.hpp>

使用浮点映射的 hal_remap

参数
src_type源图像和目标图像类型
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
mapxx 值的映射
mapx_stepmapx 矩阵步长
mapyy 值的映射
mapy_stepmapy 矩阵步长
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
border_type边界处理模式(CV_HAL_BORDER_REFLECT 等)
border_valueCV_HAL_BORDER_CONSTANT 模式下使用的值
另请参见
cv::remap

◆ hal_ni_remap32fc2()

int hal_ni_remap32fc2 ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
float * map,
size_t map_step,
int interpolation,
int border_type,
const double border_value[4] )
inline

#include <imgproc/src/hal_replacement.hpp>

使用浮点映射的 hal_remap

参数
src_type源图像和目标图像类型
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
mapxy 值的映射
map_step映射矩阵步长
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
border_type边界处理模式(CV_HAL_BORDER_REFLECT 等)
border_valueCV_HAL_BORDER_CONSTANT 模式下使用的值
另请参见
cv::remap

◆ hal_ni_resize()

int hal_ni_resize ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
double inv_scale_x,
double inv_scale_y,
int interpolation )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_resize

参数
src_type源图像和目标图像类型
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
inv_scale_xX 逆尺度系数
inv_scale_yY 逆尺度系数
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
另请参见
cv::resize, cv::hal::resize

◆ hal_ni_scharr()

int hal_ni_scharr ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int src_depth,
int dst_depth,
int cn,
int margin_left,
int margin_top,
int margin_right,
int margin_bottom,
int dx,
int dy,
double scale,
double delta,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

计算 Scharr 滤波器。

参数
src_depth源图像的深度
dst_depth目标图像的深度
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
cn通道数
margin_left源图像的左边距
margin_top源图像的上边距
margin_right源图像的右边距
margin_bottom源图像的下边距
dx导数 x 的阶数
dy导数 y 的阶数
scale计算出的导数值的比例因子
delta在将结果存储到 dst 之前添加到结果中的 Delta 值
border_type边框类型

◆ hal_ni_sepFilter()

int hal_ni_sepFilter ( cvhalFilter2D * context,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int full_width,
int full_height,
int offset_x,
int offset_y )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilter

参数
context用户定义上下文的指针
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width图像宽度
height图像高度
full_width源图像的完整宽度(ROI 之外)
full_height源图像的完整高度(ROI 之外)
offset_x源图像 ROI X 偏移
offset_y源图像 ROI Y 偏移
另请参见
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sepFilterFree()

int hal_ni_sepFilterFree ( cvhalFilter2D * context)
inline

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilterFree

参数
context用户定义上下文的指针
另请参见
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sepFilterInit()

int hal_ni_sepFilterInit ( cvhalFilter2D ** context,
int src_type,
int dst_type,
int kernel_type,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * kernelx_data,
int kernelx_length,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * kernely_data,
int kernely_length,
int anchor_x,
int anchor_y,
double delta,
int borderType )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_sepFilterInit

参数
context指向用户定义上下文的双指针
src_type源图像类型
dst_type目标图像类型
kernel_type核类型
kernelx_datax-核数据指针
kernelx_lengthx-核向量长度
kernely_datay-核数据指针
kernely_lengthy-核向量长度
anchor_x核内中心点的相对 X 位置
anchor_y核内中心点的相对 Y 位置
delta添加到像素值
borderType边界处理模式(CV_HAL_BORDER_REFLECT 等)
另请参见
cv::sepFilter2D, cv::hal::SepFilter2D

◆ hal_ni_sobel()

int hal_ni_sobel ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int src_depth,
int dst_depth,
int cn,
int margin_left,
int margin_top,
int margin_right,
int margin_bottom,
int dx,
int dy,
int ksize,
double scale,
double delta,
int border_type )
inline

#include <imgproc/src/hal_replacement.hpp>

计算 Sobel 导数。

参数
src_depth源图像的深度
dst_depth目标图像的深度
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
cn通道数
margin_left源图像的左边距
margin_top源图像的上边距
margin_right源图像的右边距
margin_bottom源图像的下边距
dx导数 x 的阶数
dy导数 y 的阶数
ksize核大小
scale计算出的导数值的比例因子
delta在将结果存储到 dst 之前添加到结果中的 Delta 值
border_type边框类型

◆ hal_ni_threshold()

int hal_ni_threshold ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
int cn,
double thresh,
double maxValue,
int thresholdType )
inline

#include <imgproc/src/hal_replacement.hpp>

计算每个数组元素的固定级别阈值。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
深度源图像和目标图像的深度
cn通道数
thresh阈值
maxValue当条件满足时分配给像素的值
thresholdType阈值类型

◆ hal_ni_threshold_otsu()

int hal_ni_threshold_otsu ( const uchar * src_data,
size_t src_step,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int width,
int height,
int 深度,
double maxValue,
int thresholdType,
如果传入NULL,则假定尺度参数c为1.0。否则,指向的变量将被设置为最优尺度。 thresh )
inline

#include <imgproc/src/hal_replacement.hpp>

使用大津算法估算的阈值执行阈值滤波。

参数
src_data源图像数据
src_step源图像步长
dst_data目标图像数据
dst_step目标图像步长
width源图像宽度
height源图像高度
深度源图像和目标图像的深度
maxValue当条件满足时分配给像素的值
thresholdType阈值类型
thresh计算出的阈值

◆ hal_ni_warpAffine()

int hal_ni_warpAffine ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
const double M[6],
int interpolation,
int borderType,
const double borderValue[4] )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpAffine

参数
src_type源图像和目标图像类型
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
M包含变换系数的 2x3 矩阵
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
borderType边界处理模式(CV_HAL_BORDER_REFLECT 等)
borderValueCV_HAL_BORDER_CONSTANT 模式下使用的值
另请参见
cv::warpAffine, cv::hal::warpAffine

◆ hal_ni_warpAffineBlockline()

int hal_ni_warpAffineBlockline ( int * adelta,
int * bdelta,
short * xy,
short * alpha,
int X0,
int Y0,
int bw )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpAffineBlockline 执行一行仿射变换

参数
adelta输入 M0 * x 数组
bdelta输入 M3 * x 数组
xy输出 (x', y') 坐标
alpha用于插值的 (x', y') 坐标的最低有效位
X0输入 M1 * y + M2 值
Y0输入 M4 * y + M5 值
bw行的长度
另请参见
cv::warpAffineBlockline, cv::hal::warpAffineBlockline

◆ hal_ni_warpAffineBlocklineNN()

int hal_ni_warpAffineBlocklineNN ( int * adelta,
int * bdelta,
short * xy,
int X0,
int Y0,
int bw )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpAffineBlocklineNN 执行一行仿射变换

参数
adelta输入 M0 * x 数组
bdelta输入 M3 * x 数组
xy输出 (x', y') 坐标
X0输入 M1 * y + M2 值
Y0输入 M4 * y + M5 值
bw行的长度
另请参见
cv::warpAffineBlocklineNN, cv::hal::warpAffineBlocklineNN

◆ hal_ni_warpPerspective()

int hal_ni_warpPerspective ( int src_type,
const uchar * src_data,
size_t src_step,
int src_width,
int src_height,
I.at<uchar>(y, x) = saturate_cast<uchar>(r); * dst_data,
size_t dst_step,
int dst_width,
int dst_height,
const double M[9],
int interpolation,
int borderType,
const double borderValue[4] )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpPerspective

参数
src_type源图像和目标图像类型
src_data源图像数据
src_step源图像步长
src_width源图像宽度
src_height源图像高度
dst_data目标图像数据
dst_step目标图像步长
dst_width目标图像宽度
dst_height目标图像高度
M包含变换系数的 3x3 矩阵
interpolation插值模式(CV_HAL_INTER_NEAREST 等)
borderType边界处理模式(CV_HAL_BORDER_REFLECT 等)
borderValueCV_HAL_BORDER_CONSTANT 模式下使用的值
另请参见
cv::warpPerspective, cv::hal::warpPerspective

◆ hal_ni_warpPerspectiveBlockline()

int hal_ni_warpPerspectiveBlockline ( const double * M,
short * xy,
short * alpha,
double X0,
double Y0,
double W0,
int bw )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpPerspectiveBlockline 执行一行透视变换

参数
M包含变换系数的 3x3 矩阵
xy输出 (x', y') 坐标
alpha用于插值的 (x', y') 坐标的最低有效位
X0输入 M0 * x0 + M1 * y + M2 值
Y0输入 M3 * x0 + M4 * y + M5 值
W0输入 M6 * x0 + M7 * y + M8 值
bw行的长度
另请参见
cv::warpPerspectiveBlockline, cv::hal::warpPerspectiveBlockline

◆ hal_ni_warpPerspectiveBlocklineNN()

int hal_ni_warpPerspectiveBlocklineNN ( const double * M,
short * xy,
double X0,
double Y0,
double W0,
int bw )
inline

#include <imgproc/src/hal_replacement.hpp>

hal_warpPerspectiveBlocklineNN 执行一行透视变换

参数
M包含变换系数的 3x3 矩阵
xy输出 (x', y') 坐标
X0输入 M0 * x0 + M1 * y + M2 值
Y0输入 M3 * x0 + M4 * y + M5 值
W0输入 M6 * x0 + M7 * y + M8 值
bw行的长度
另请参见
cv::warpPerspectiveBlocklineNN, cv::hal::warpPerspectiveBlocklineNN